Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,171 @@
|
||||
/* Metro module 15873; source: modules/guild_settings/native/AssetChooser.tsx; dependencies: [153, 5, 6, 7, 15, 17, 18, 31, 27, 661, 33, 4501, 697, 4660, 5278, 1244, 15874, 15875, 1305, 3868, 2] */
|
||||
function _fun122179(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16081:6, offset: 0x0255d052, size: 627 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importDefault(153) /* metro dependency 153 */;
|
||||
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 value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_9 = value2.View;
|
||||
const env0_10 = value2.Image;
|
||||
const env0_11 = value2.ImageBackground;
|
||||
const env0_12 = value2.TouchableWithoutFeedback;
|
||||
const env0_13 = (require(661) /* metro dependency 661: Constants */).UPLOAD_MEDIUM_SIZE;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value3.jsx;
|
||||
const env0_15 = value3.Fragment;
|
||||
const env0_16 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
|
||||
object3 = {assetWrapper: {'width': '100%', 'alignItems': 'center'}};
|
||||
const object4 = {'width': '100%', 'height': 192, 'borderRadius': null, 'overflow': 'hidden'};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
object3.asset = object4;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
|
||||
object3.uploadIconWrapper = {'position': 'absolute', 'bottom': 10, 'right': 10, 'shadowColor': null,
|
||||
'shadowRadius': 10, 'shadowOffset': null, 'shadowOpacity': 0.2, shadowColor: BLACK, shadowOffset: {'height': 8,
|
||||
'width': 0}};
|
||||
object3.uploadIcon = {'width': 16, 'height': 16};
|
||||
const BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
|
||||
object3.remove = {'marginTop': 8, 'fontSize': 14, 'lineHeight': 18, color: BLUE_345};
|
||||
const env0_17 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [object3]);
|
||||
const PureComponent = value.PureComponent;
|
||||
value = _fun122183(PureComponent);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value.contextType = ThemeContext;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/AssetChooser.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_122180() { // fn#122180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16081:324, offset: 0x0255d2c5, 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_122180_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun122183(a0) { // fn#122183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16081:1039, offset: 0x0255d327, size: 97 bytes, params: 2, frame: 16
|
||||
const closure = AssetChooser;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'getSource', value: function() {
|
||||
var property = this.props;
|
||||
var rawSource = property.rawSource;
|
||||
var getSource = property.getSource;
|
||||
property = property.guild;
|
||||
var value = null;
|
||||
return value == rawSource ? value : rawSource.startsWith('data:') ? {uri: rawSource} : getSource(property, 192);
|
||||
}}, {key: 'render', value: value_122189}]);
|
||||
}
|
||||
|
||||
function AssetChooser(a0) { // fn#122184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16081:1051, offset: 0x0255d388, size: 167 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_4;
|
||||
binding(this, AssetChooser);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_7(AssetChooser);
|
||||
binding = env1_6;
|
||||
if (_isNativeReflectConstruct_122180()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_7(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.handleChooseAsset = env1_3(_fun122186);
|
||||
value.handleRemoveAsset = handleRemoveAsset;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_122189() { // fn#122189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16081:1777, offset: 0x0255d547, size: 487 bytes, params: 1, frame: 35
|
||||
const value = environment.__proto__;
|
||||
const value2 = env1_17(this.context);
|
||||
const disabled = this.props.disabled;
|
||||
const source = this.getSource();
|
||||
const jsxRuntimeEnv1_15Binding = jsxRuntimeEnv1_15;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const object = {accessibilityRole: 'button'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MsUY/S']);
|
||||
object.style = value2.assetWrapper;
|
||||
object.onPress = this.handleChooseAsset;
|
||||
object.disabled = disabled;
|
||||
const value4 = null;
|
||||
return (
|
||||
<>
|
||||
<PressableOpacity {...object}>
|
||||
<ImageBackground
|
||||
source={value4 != source ? source : importDefault(15874) /* metro dependency 15874 */}
|
||||
style={value2.asset}
|
||||
>
|
||||
{disabled ? value4 : <View style={value2.uploadIconWrapper}><Image style={value2.uploadIcon} source={importDefault(15875) /* metro dependency 15875 */} /></View>}
|
||||
</ImageBackground>
|
||||
</PressableOpacity>
|
||||
{value4 == source || disabled ? value4 : <TouchableWithoutFeedback accessibilityRole="button" onPress={this.handleRemoveAsset}>{((LegacyText) => <LegacyText style={value2.remove}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.N86XcP)}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText)}</TouchableWithoutFeedback>}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function* _fun122186() { // fn#122186, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16081:1296, offset: 0x0255d43a, size: 153 bytes, params: 1, frame: 17
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
var {size, onChooseAsset} = AssetChooser.props;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var value3 = env3_1(env3_2[13]);
|
||||
yield value3.openImagePicker(typeof size === 'number' ? {size: size} : size ?? ({size: env3_13}));
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
var base64 = value.base64;
|
||||
if (base64 != null) {
|
||||
if (onChooseAsset != null) {
|
||||
onChooseAsset(base64);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleRemoveAsset() { // fn#122187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16081:1487, owner: AssetChooser.handleRemoveAsset, offset: 0x0255d4d3, size: 35 bytes, params: 1, frame: 11
|
||||
const onChooseAsset = env0_0.props.onChooseAsset;
|
||||
if (onChooseAsset != null) {
|
||||
onChooseAsset(null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/* Metro module 12140; source: modules/guild_settings/native/DetailedGuildIdentityUserRow.tsx; dependencies: [31, 27, 1878, 33, 4501, 697, 4617, 3995, 9210, 1305, 566, 7972, 6238, 2] */
|
||||
function _fun93182(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12326:6, offset: 0x020a9e86, size: 344 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value2.jsx;
|
||||
const env0_6 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {mainIdentity: {'flexDirection': 'row', 'alignItems': 'center'}};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.primaryAvatar = {marginRight: PX_4};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object2.mainTag = {color: INTERACTIVE_TEXT_DEFAULT, fontSize: 12};
|
||||
const env0_7 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
const value4 = value.memo(_fun93183);
|
||||
value = value.memo(DetailedGuildIdentityUserRow);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/DetailedGuildIdentityUserRow.tsx');
|
||||
exports.default = value;
|
||||
exports.DetailedGuildIdentityUser = value4;
|
||||
}
|
||||
|
||||
function _fun93183({contentHeight, guildId, user}) { // fn#93183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12326:364, offset: 0x020a9fde, size: 392 bytes, params: 2, frame: 30
|
||||
var items2;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
let r5 = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getNickname(guildId, undefined,
|
||||
user) ?? (importDefault(3995) /* metro dependency 3995: UserUtils */).getGlobalName(user);
|
||||
const hasAvatarForGuild2 = user.hasAvatarForGuild(guildId);
|
||||
const object = {height: contentHeight};
|
||||
const value5 = ((Component) => <Component user={user} nick={r5} />)(importDefault(9210) /* metro dependency 9210: DiscordTag */);
|
||||
if (hasAvatarForGuild2) {
|
||||
var viewBinding2Props = {style: styles.mainIdentity};
|
||||
items2 = [hasAvatarForGuild2 ? ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SIZE_16} style={styles.primaryAvatar} user={user} guildId={undefined} />)((require(1305) /* metro dependency 1305: native */).Avatar) : null];
|
||||
value = importDefault(9210) /* metro dependency 9210: DiscordTag */;
|
||||
items2[1] = ((Component) => <Component user={user} usernameStyle={styles.mainTag} hideBotTag />)(value);
|
||||
value = <View {...viewBinding2Props}>{items2}</View>;
|
||||
r5 = value;
|
||||
} else if (r5 != null) {
|
||||
var viewBinding2Props = {style: styles.mainIdentity};
|
||||
items2 = [hasAvatarForGuild2 ? ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SIZE_16} style={styles.primaryAvatar} user={user} guildId={undefined} />)((require(1305) /* metro dependency 1305: native */).Avatar) : null];
|
||||
value = importDefault(9210) /* metro dependency 9210: DiscordTag */;
|
||||
items2[1] = ((Component) => <Component user={user} usernameStyle={styles.mainTag} hideBotTag />)(value);
|
||||
value = <View {...viewBinding2Props}>{items2}</View>;
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = null;
|
||||
}
|
||||
return (
|
||||
<View style={object}>
|
||||
{value5}
|
||||
{r5}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function DetailedGuildIdentityUserRow({accessibilityLabel, arrow, contentHeight, deprecatedFormRow, disabled, end, guildId, leading, onPress, trailing, userId, subLabel, start, accessibilityRole, accessibilityState}) { // fn#93184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12326:820, offset: 0x020aa166, size: 565 bytes, params: 2, frame: 38
|
||||
deprecatedFormRow = !(deprecatedFormRow === undefined) && deprecatedFormRow;
|
||||
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(userId);
|
||||
});
|
||||
if (user == null) {
|
||||
return null;
|
||||
} else if (deprecatedFormRow) {
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
return (
|
||||
<FormRow
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
disabled={disabled}
|
||||
leading={leading ?? ((Avatar) => <Avatar source={user.getAvatarSource(guildId)} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL} />)((require(1305) /* metro dependency 1305: native */).Avatar)}
|
||||
label={((Component) => <Component contentHeight={contentHeight} user={user} guildId={guildId} />)(env0_8)}
|
||||
onPress={onPress}
|
||||
subLabel={subLabel}
|
||||
trailing={trailing}
|
||||
accessibilityRole={accessibilityRole}
|
||||
accessibilityState={accessibilityState}
|
||||
/>
|
||||
);
|
||||
} else {
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
arrow={arrow}
|
||||
disabled={disabled}
|
||||
end={end}
|
||||
icon={leading ?? ((Avatar) => <Avatar source={user.getAvatarSource(guildId)} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL} />)((require(1305) /* metro dependency 1305: native */).Avatar)}
|
||||
label={((Component) => <Component contentHeight={contentHeight} user={user} guildId={guildId} />)(env0_8)}
|
||||
onPress={onPress}
|
||||
start={start}
|
||||
subLabel={subLabel}
|
||||
trailing={trailing}
|
||||
accessibilityRole={accessibilityRole}
|
||||
accessibilityState={accessibilityState}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,612 @@
|
||||
/* Metro module 15908; source: modules/guild_settings/native/EmojiOverflowActionSheet.tsx; dependencies: [5, 31, 27, 33, 4501, 6805, 1423, 4573, 6231, 6238, 4071, 1244, 8629, 9646, 4131, 3856, 5312, 2] */
|
||||
function _fun122746(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16116:6, offset: 0x02573047, size: 259 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.Image;
|
||||
const env0_5 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({header: {'paddingHorizontal': 8,
|
||||
'flexDirection': 'row', 'alignItems': 'center', 'gap': 16}, emojiImage: {'width': 30, 'height': 30,
|
||||
'resizeMode': 'contain'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/EmojiOverflowActionSheet.tsx');
|
||||
exports.default = EmojiOverflowActionSheet;
|
||||
}
|
||||
|
||||
function EmojiOverflowActionSheet({emoji, guildId, onSelectRolesForEmoji, onEdit, onClose}) { // fn#122747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16116:430, offset: 0x0257314a, size: 1005 bytes, params: 2, frame: 35
|
||||
const PencilIcon = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
|
||||
var r10;
|
||||
const styles = useStyles();
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const avatarUtilsModule = importAll(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getEmojiURL = avatarUtilsModule.getEmojiURL;
|
||||
const image = <Image style={styles.emojiImage} source={{uri: Reflect.apply(getEmojiURL, avatarUtilsModule,
|
||||
[{id: emoji.id, animated: emoji.animated, size: 48}])}} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const view = <View style={styles.header}>{image}<Text variant="text-md/semibold" color="mobile-text-heading-primary">{':' + emoji.name + ':'}</Text></View>;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object = {};
|
||||
const TrashIcon = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
|
||||
object.icon = <TrashIcon color="text-feedback-critical" />;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.label = <Text variant="text-md/semibold" color="text-feedback-critical">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oyYWHE)}</Text>;
|
||||
object.onPress = onPress_122748;
|
||||
const items3 = [<TableRow {...object} />];
|
||||
items3[1] = <TableRow icon={<PencilIcon />} label={<Text variant="text-md/semibold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bt75uw)}</Text>} onPress={function() {
|
||||
onEdit();
|
||||
onClose();
|
||||
}} />;
|
||||
if (onSelectRolesForEmoji != null) {
|
||||
r10 = <TableRow icon={<PencilIcon />} label={<Text variant="text-md/semibold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+riKdA'])}</Text>} onPress={onEdit(_fun122751)} />;
|
||||
} else {
|
||||
r10 = null;
|
||||
}
|
||||
items3[2] = r10;
|
||||
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
|
||||
items3[3] = <TableRow icon={<XSmallIcon />} label={<Text variant="text-md/semibold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}</Text>} onPress={onClose} />;
|
||||
return (
|
||||
<ActionSheet>
|
||||
{view}
|
||||
<TableRowGroup hasIcons>
|
||||
{items3}
|
||||
</TableRowGroup>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function EmojiOverflowActionSheetOnPress() { // fn#122748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16116:1079, owner: EmojiOverflowActionSheet.onPress, offset: 0x02573537, size: 63 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = require(8629) /* metro dependency 8629: EmojiActionCreators */;
|
||||
value.deleteEmoji(guildId, emoji.id);
|
||||
onClose();
|
||||
}
|
||||
|
||||
function* _fun122751() { // fn#122751, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16116:1468, offset: 0x02573598, size: 295 bytes, params: 1, frame: 18
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value7;
|
||||
var updateEmoji;
|
||||
var object2;
|
||||
var id;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var error;
|
||||
var value11;
|
||||
var APIError;
|
||||
var value12;
|
||||
var presentError;
|
||||
var anyErrorMessage;
|
||||
var binding3;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var R0RpRX;
|
||||
var value14;
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value3 = dependencyMap(require);
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
yield value3;
|
||||
try {
|
||||
value4 = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
if (value5) {
|
||||
return value4;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[12];
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
updateEmoji = value7.updateEmoji;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.guildId = importAll;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
id = require.id;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.emojiId = id;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.roles = value4;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(updateEmoji, value7, [object2]);
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
yield value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
if (error instanceof APIError) {
|
||||
binding = env2_0;
|
||||
value12 = binding(env2_2[15]);
|
||||
presentError = value12.presentError;
|
||||
anyErrorMessage = error.getAnyErrorMessage();
|
||||
if (anyErrorMessage != null) {
|
||||
r2 = anyErrorMessage;
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[11]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[11]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
value14 = Reflect.apply(string, intl, [R0RpRX]);
|
||||
r2 = value14;
|
||||
}
|
||||
Reflect.apply(presentError, value12, [r2]);
|
||||
}
|
||||
Image();
|
||||
return undefined;
|
||||
}
|
||||
if (value10) {
|
||||
return value9;
|
||||
}
|
||||
Image();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,472 @@
|
||||
/* Metro module 15857; source: modules/guild_settings/native/GuildSettingsModal.tsx; dependencies: [57, 31, 1867, 9113, 661, 33, 15858, 9112, 480, 1244, 5282, 15859, 15872, 15876, 15877, 15887, 15902, 15903, 15915, 15203, 15210, 15927, 15931, 15933, 15212, 15934, 15939, 15940, 15960, 15979, 15983, 15986, 10296, 10311, 10313, 15987, 15992, 15993, 16015, 16055, 16056, 16072, 16111, 16115, 16116, 16119, 16127, 1585, 6518, 566, 5280, 2] */
|
||||
function _fun121966(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:6, offset: 0x02555d70, size: 233 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = constantsModule.GuildSettingsSections;
|
||||
const env0_8 = constantsModule.WebhookTypes;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModal.tsx');
|
||||
exports.default = GuildSettingsModal;
|
||||
}
|
||||
|
||||
function close_121967() { // fn#121967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:203, offset: 0x02555e59, size: 59 bytes, params: 1, frame: 13
|
||||
(importDefault(15858) /* metro dependency 15858: GuildSettingsModalChannelsActionCreators */).terminate();
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).close();
|
||||
}
|
||||
|
||||
function GuildSettingsModal() { // fn#121968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:353, offset: 0x02555e94, size: 342 bytes, params: 1, frame: 20
|
||||
const value2 = undefined;
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const value3 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(function() {
|
||||
return GuildSettingsStore.getGuildId();
|
||||
});
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun121970);
|
||||
const binding = env0_4;
|
||||
const value4 = binding.useMemo(_fun121971, [bottom, value3]);
|
||||
binding.useEffect(_fun122012, [guild, value3]);
|
||||
const property = env0_3(binding.useState(function() {
|
||||
return GuildSettingsStore.getSavedRouteState();
|
||||
}), 1)[0];
|
||||
const value7 = binding.useCallback(_fun122014, []);
|
||||
const value8 = null;
|
||||
if (value8 != value4) {
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
return (
|
||||
<Navigator
|
||||
onWillFocus={value7}
|
||||
initialRouteName={value8 == property ? GuildSettingsSections.LANDING : value2}
|
||||
initialRouteState={value8 != property ? property : value2}
|
||||
screens={value4}
|
||||
/>
|
||||
);
|
||||
} else {
|
||||
return value8;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun121971() { // fn#121971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:508, offset: 0x02555fea, size: 45 bytes, params: 1, frame: 14
|
||||
return env0_1 != null ? getScreens_121972(env0_1, bottom) : undefined;
|
||||
}
|
||||
|
||||
function _fun122012() { // fn#122012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5896, offset: 0x0255757d, size: 66 bytes, params: 1, frame: 12
|
||||
var value;
|
||||
if (!(env0_1 != null && guild != null)) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.close();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun122014({navigation}) { // fn#122014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:6020, offset: 0x025575d4, size: 57 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
const saveRouteStack = value.saveRouteStack;
|
||||
const getState = navigation.getState;
|
||||
Reflect.apply(saveRouteStack, value, [Reflect.apply(getState, navigation, [])]);
|
||||
}
|
||||
|
||||
function getScreens_121972(a0, a1) { // fn#121972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:520, offset: 0x02556017, size: 3191 bytes, params: 3, frame: 22
|
||||
const env0_0 = a0;
|
||||
let object2 = {};
|
||||
object2.contentContainerStyle = {paddingBottom: 16 + a1};
|
||||
object2 = {};
|
||||
const LANDING = GuildSettingsSections.LANDING;
|
||||
const object6 = {};
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const GUILD_SETTINGS_LANDING = ImpressionNames.GUILD_SETTINGS_LANDING;
|
||||
object6.impressionName = GUILD_SETTINGS_LANDING;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object6.title = Reflect.apply(string, intl, [t['154/bL']]);
|
||||
object6.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(close_121967);
|
||||
object6.render = render_121973;
|
||||
object2[LANDING] = object6;
|
||||
const OVERVIEW = GuildSettingsSections.OVERVIEW;
|
||||
const object7 = {};
|
||||
const GUILD_SETTINGS_OVERVIEW = ImpressionNames.GUILD_SETTINGS_OVERVIEW;
|
||||
object7.impressionName = GUILD_SETTINGS_OVERVIEW;
|
||||
object7.title = intl.string(t['/dp6yY']);
|
||||
object7.render = render_121974;
|
||||
object2[OVERVIEW] = object7;
|
||||
const MODERATION = GuildSettingsSections.MODERATION;
|
||||
const object8 = {};
|
||||
const GUILD_SETTINGS_MODERATION = ImpressionNames.GUILD_SETTINGS_MODERATION;
|
||||
object8.impressionName = GUILD_SETTINGS_MODERATION;
|
||||
object8.title = intl.string(t['5tbTdV']);
|
||||
object8.render = render_121975;
|
||||
object2[MODERATION] = object8;
|
||||
const AUDIT_LOG = GuildSettingsSections.AUDIT_LOG;
|
||||
const GUILD_SETTINGS_AUDIT_LOG = ImpressionNames.GUILD_SETTINGS_AUDIT_LOG;
|
||||
string = intl.string;
|
||||
const SPWLyT = t.SPWLyT;
|
||||
object2[AUDIT_LOG] = {impressionName: GUILD_SETTINGS_AUDIT_LOG, title: Reflect.apply(string, intl, [SPWLyT]),
|
||||
postponeRender: true, render: render_121976};
|
||||
const AUDIT_LOG_FILTER = GuildSettingsSections.AUDIT_LOG_FILTER;
|
||||
object2[AUDIT_LOG_FILTER] = {title: intl.string(t.pEasFX), render: render_121977};
|
||||
const INTEGRATIONS = GuildSettingsSections.INTEGRATIONS;
|
||||
let GUILD_SETTINGS_INTEGRATION = ImpressionNames.GUILD_SETTINGS_INTEGRATION;
|
||||
string = intl.string;
|
||||
let CIsNZw = t.CIsNZw;
|
||||
object2[INTEGRATIONS] = {impressionName: GUILD_SETTINGS_INTEGRATION, title: Reflect.apply(string, intl, [CIsNZw]),
|
||||
render: render_121978};
|
||||
const EMOJI = GuildSettingsSections.EMOJI;
|
||||
const GUILD_SETTINGS_EMOJI = ImpressionNames.GUILD_SETTINGS_EMOJI;
|
||||
object2[EMOJI] = {impressionName: GUILD_SETTINGS_EMOJI, title: intl.string(t.sMOuuS), postponeRender: true,
|
||||
render: render_121979};
|
||||
const STICKERS = GuildSettingsSections.STICKERS;
|
||||
const GUILD_SETTINGS_STICKERS = ImpressionNames.GUILD_SETTINGS_STICKERS;
|
||||
string = intl.string;
|
||||
const R5nQkS = t.R5nQkS;
|
||||
object2[STICKERS] = {impressionName: GUILD_SETTINGS_STICKERS, title: Reflect.apply(string, intl, [R5nQkS]),
|
||||
postponeRender: true, render: render_121980};
|
||||
const WEBHOOKS = GuildSettingsSections.WEBHOOKS;
|
||||
let GUILD_SETTINGS_WEBHOOKS = ImpressionNames.GUILD_SETTINGS_WEBHOOKS;
|
||||
object2[WEBHOOKS] = {impressionName: GUILD_SETTINGS_WEBHOOKS, title: intl.string(t.jp25Id), render: render_121981};
|
||||
const EDIT_WEBHOOK = GuildSettingsSections.EDIT_WEBHOOK;
|
||||
const object9 = {};
|
||||
object9.title = intl.string(t['6SE3L3']);
|
||||
object9.render = render_121982;
|
||||
object2[EDIT_WEBHOOK] = object9;
|
||||
const CHANNELS_FOLLOWED = GuildSettingsSections.CHANNELS_FOLLOWED;
|
||||
GUILD_SETTINGS_WEBHOOKS = ImpressionNames.GUILD_SETTINGS_WEBHOOKS;
|
||||
string = intl.string;
|
||||
const OrV60r = t.OrV60r;
|
||||
object2[CHANNELS_FOLLOWED] = {impressionName: GUILD_SETTINGS_WEBHOOKS, title: Reflect.apply(string, intl, [OrV60r]),
|
||||
render: render_121983};
|
||||
const INTEGRATION_SETTINGS = GuildSettingsSections.INTEGRATION_SETTINGS;
|
||||
GUILD_SETTINGS_INTEGRATION = ImpressionNames.GUILD_SETTINGS_INTEGRATION;
|
||||
object2[INTEGRATION_SETTINGS] = {impressionName: GUILD_SETTINGS_INTEGRATION, title: intl.string(t.sE5hSZ),
|
||||
render: render_121984};
|
||||
const INTEGRATION_PLATFORM = GuildSettingsSections.INTEGRATION_PLATFORM;
|
||||
string = intl.string;
|
||||
CIsNZw = t.CIsNZw;
|
||||
object2[INTEGRATION_PLATFORM] = {title: Reflect.apply(string, intl, [CIsNZw]), render: render_121985};
|
||||
const LOBBIES_LINKED = GuildSettingsSections.LOBBIES_LINKED;
|
||||
object2[LOBBIES_LINKED] = {title: intl.string(t.tqtDXC), render: render_121986};
|
||||
const EDIT_LINKED_LOBBY = GuildSettingsSections.EDIT_LINKED_LOBBY;
|
||||
string = intl.string;
|
||||
const OJknhi = t.OJknhi;
|
||||
object2[EDIT_LINKED_LOBBY] = {title: Reflect.apply(string, intl, [OJknhi]), render: render_121987};
|
||||
const CHANNELS = GuildSettingsSections.CHANNELS;
|
||||
const GUILD_SETTINGS_CHANNELS = ImpressionNames.GUILD_SETTINGS_CHANNELS;
|
||||
string = intl.string;
|
||||
const OGiMXJ = t.OGiMXJ;
|
||||
object2[CHANNELS] = {impressionName: GUILD_SETTINGS_CHANNELS, title: Reflect.apply(string, intl, [OGiMXJ]),
|
||||
postponeRender: true, render: render_121988};
|
||||
const SECURITY = GuildSettingsSections.SECURITY;
|
||||
const GUILD_SETTINGS_SECURITY = ImpressionNames.GUILD_SETTINGS_SECURITY;
|
||||
string = intl.string;
|
||||
const Am9YHi = t.Am9YHi;
|
||||
object2[SECURITY] = {impressionName: GUILD_SETTINGS_SECURITY, title: Reflect.apply(string, intl, [Am9YHi]),
|
||||
render: render_121989};
|
||||
const ROLES = GuildSettingsSections.ROLES;
|
||||
const object10 = {};
|
||||
const GUILD_SETTINGS_ROLES = ImpressionNames.GUILD_SETTINGS_ROLES;
|
||||
object10.impressionName = GUILD_SETTINGS_ROLES;
|
||||
object10.title = intl.string(t['LPJmL/']);
|
||||
object10.render = render_121990;
|
||||
object2[ROLES] = object10;
|
||||
const ROLE_EDIT_REFRESH = GuildSettingsSections.ROLE_EDIT_REFRESH;
|
||||
const object11 = {};
|
||||
object11.title = intl.string(t['LPJmL/']);
|
||||
object11.render = render_121991;
|
||||
object2[ROLE_EDIT_REFRESH] = object11;
|
||||
const VANITY_URL = GuildSettingsSections.VANITY_URL;
|
||||
const object13 = {};
|
||||
object13.title = intl.string(t['5XZKy/']);
|
||||
object13.render = render_121992;
|
||||
object2[VANITY_URL] = object13;
|
||||
const INSTANT_INVITES = GuildSettingsSections.INSTANT_INVITES;
|
||||
const GUILD_SETTINGS_INVITES = ImpressionNames.GUILD_SETTINGS_INVITES;
|
||||
object2[INSTANT_INVITES] = {impressionName: GUILD_SETTINGS_INVITES, title: intl.string(t.ngRFjZ),
|
||||
postponeRender: true, render: render_121993};
|
||||
const MEMBERS = GuildSettingsSections.MEMBERS;
|
||||
const object14 = {};
|
||||
const GUILD_SETTINGS_MEMBERS = ImpressionNames.GUILD_SETTINGS_MEMBERS;
|
||||
object14.impressionName = GUILD_SETTINGS_MEMBERS;
|
||||
object14.title = intl.string(t['9Oq93m']);
|
||||
object14.postponeRender = true;
|
||||
object14.render = render_121994;
|
||||
object2[MEMBERS] = object14;
|
||||
const MEMBER_EDIT = GuildSettingsSections.MEMBER_EDIT;
|
||||
object2[MEMBER_EDIT] = {render: render_121995};
|
||||
const MEMBER_KICK = GuildSettingsSections.MEMBER_KICK;
|
||||
object2[MEMBER_KICK] = {headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_121997};
|
||||
const MEMBER_BAN = GuildSettingsSections.MEMBER_BAN;
|
||||
object2[MEMBER_BAN] = {headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_121999};
|
||||
const BANS = GuildSettingsSections.BANS;
|
||||
const GUILD_SETTINGS_BANS = ImpressionNames.GUILD_SETTINGS_BANS;
|
||||
string = intl.string;
|
||||
const ZbeITS = t.ZbeITS;
|
||||
object2[BANS] = {impressionName: GUILD_SETTINGS_BANS, title: Reflect.apply(string, intl, [ZbeITS]),
|
||||
postponeRender: true, render: render_122000};
|
||||
const COMMUNITY = GuildSettingsSections.COMMUNITY;
|
||||
const GUILD_SETTINGS_COMMUNITY_OVERVIEW = ImpressionNames.GUILD_SETTINGS_COMMUNITY_OVERVIEW;
|
||||
object2[COMMUNITY] = {impressionName: GUILD_SETTINGS_COMMUNITY_OVERVIEW, title: intl.string(t.nRtNqn),
|
||||
postponeRender: true, render: render_122001};
|
||||
const COMMUNITY_INTRO = GuildSettingsSections.COMMUNITY_INTRO;
|
||||
const GUILD_SETTINGS_COMMUNITY_WELCOME = ImpressionNames.GUILD_SETTINGS_COMMUNITY_WELCOME;
|
||||
string = intl.string;
|
||||
const ElKTeb = t.ElKTeb;
|
||||
object2[COMMUNITY_INTRO] = {impressionName: GUILD_SETTINGS_COMMUNITY_WELCOME, title: Reflect.apply(string, intl,
|
||||
[ElKTeb]), render: render_122002};
|
||||
const ROLE_SUBSCRIPTIONS = GuildSettingsSections.ROLE_SUBSCRIPTIONS;
|
||||
const object15 = {};
|
||||
object15.title = intl.string(t['KzCF/6']);
|
||||
object15.render = render_122003;
|
||||
object2[ROLE_SUBSCRIPTIONS] = object15;
|
||||
const ROLE_SUBSCRIPTIONS_ENABLE_MONETIZATION = GuildSettingsSections.ROLE_SUBSCRIPTIONS_ENABLE_MONETIZATION;
|
||||
const object16 = {};
|
||||
object16.title = intl.string(t['KzCF/6']);
|
||||
object16.render = render_122004;
|
||||
object2[ROLE_SUBSCRIPTIONS_ENABLE_MONETIZATION] = object16;
|
||||
const ROLE_SUBSCRIPTIONS_BASIC = GuildSettingsSections.ROLE_SUBSCRIPTIONS_BASIC;
|
||||
const object17 = {};
|
||||
object17.title = intl.string(t['/CfKoD']);
|
||||
object17.render = render_122005;
|
||||
object2[ROLE_SUBSCRIPTIONS_BASIC] = object17;
|
||||
const ROLE_SUBSCRIPTIONS_TIERS = GuildSettingsSections.ROLE_SUBSCRIPTIONS_TIERS;
|
||||
object2[ROLE_SUBSCRIPTIONS_TIERS] = {title: intl.string(t.pXbGYc), render: render_122006};
|
||||
const ROLE_SUBSCRIPTIONS_TIER_EDIT = GuildSettingsSections.ROLE_SUBSCRIPTIONS_TIER_EDIT;
|
||||
const object18 = {};
|
||||
object18.title = intl.string(t['KzCF/6']);
|
||||
object18.render = render_122007;
|
||||
object2[ROLE_SUBSCRIPTIONS_TIER_EDIT] = object18;
|
||||
const ROLE_SUBSCRIPTIONS_PAYMENTS = GuildSettingsSections.ROLE_SUBSCRIPTIONS_PAYMENTS;
|
||||
object2[ROLE_SUBSCRIPTIONS_PAYMENTS] = {title: intl.string(t.p2Rsdl), render: render_122008};
|
||||
const ROLE_SUBSCRIPTIONS_EMOJIS = GuildSettingsSections.ROLE_SUBSCRIPTIONS_EMOJIS;
|
||||
string = intl.string;
|
||||
const C5Dbwn = t.C5Dbwn;
|
||||
object2[ROLE_SUBSCRIPTIONS_EMOJIS] = {title: Reflect.apply(string, intl, [C5Dbwn]), render: render_122009};
|
||||
const ROLE_SUBSCRIPTIONS_TIER_TEMPLATE_SELECTION = GuildSettingsSections.ROLE_SUBSCRIPTIONS_TIER_TEMPLATE_SELECTION;
|
||||
const object19 = {};
|
||||
object19.title = intl.string(t['KzCF/6']);
|
||||
object19.render = render_122010;
|
||||
object2[ROLE_SUBSCRIPTIONS_TIER_TEMPLATE_SELECTION] = object19;
|
||||
const OFFICIAL_MESSAGES = GuildSettingsSections.OFFICIAL_MESSAGES;
|
||||
object2[OFFICIAL_MESSAGES] = {title: intl.string(t.xHEzFh), render: render_122011};
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getScreens_121972Render() { // fn#121973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:780, owner: getScreens_121972.render, offset: 0x02556c8e, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15859) /* metro dependency 15859: GuildSettingsModalLanding */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121974() { // fn#121974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:945, owner: getScreens_121972.render, offset: 0x02556ccb, size: 53 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...env0_1} />)(importDefault(15872) /* metro dependency 15872: GuildSettingsModalOverview */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121975() { // fn#121975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:1104, owner: getScreens_121972.render, offset: 0x02556d00, size: 53 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...env0_1} />)(importDefault(15876) /* metro dependency 15876: GuildSettingsModalModeration */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121976() { // fn#121976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:1276, owner: getScreens_121972.render, offset: 0x02556d35, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15877) /* metro dependency 15877: GuildSettingsModalAuditLog */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121977(a0) { // fn#121977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:1383, owner: getScreens_121972.render, offset: 0x02556d72, size: 71 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...a0} {...env0_1} />)(importDefault(15887) /* metro dependency 15887: GuildSettingsModalAuditLogFilter */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121978() { // fn#121978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:1556, owner: getScreens_121972.render, offset: 0x02556db9, size: 53 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...env0_1} />)(importDefault(15902) /* metro dependency 15902: GuildSettingsModalIntegrations */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121979() { // fn#121979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:1720, owner: getScreens_121972.render, offset: 0x02556dee, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15903) /* metro dependency 15903: GuildSettingsModalEmoji */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121980() { // fn#121980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:1900, owner: getScreens_121972.render, offset: 0x02556e2b, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15915) /* metro dependency 15915: GuildSettingsModalStickers */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121981() { // fn#121981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:2062, owner: getScreens_121972.render, offset: 0x02556e68, size: 76 bytes, params: 1, frame: 16
|
||||
const IntegrationsSettingsWebhooksOverview = importDefault(15203) /* metro dependency 15203: IntegrationsSettingsWebhooksOverview */;
|
||||
const binding = env0_0;
|
||||
const INCOMING = WebhookTypes.INCOMING;
|
||||
return (
|
||||
<IntegrationsSettingsWebhooksOverview
|
||||
guildId={binding}
|
||||
webhookType={INCOMING}
|
||||
{...env0_1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121982(a0) { // fn#121982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:2191, owner: getScreens_121972.render, offset: 0x02556eb4, size: 63 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...a0} {...env0_1} />)(importDefault(15210) /* metro dependency 15210: IntegrationsSettingsEditWebhook */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121983() { // fn#121983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:2356, owner: getScreens_121972.render, offset: 0x02556ef3, size: 76 bytes, params: 1, frame: 16
|
||||
const IntegrationsSettingsWebhooksOverview = importDefault(15203) /* metro dependency 15203: IntegrationsSettingsWebhooksOverview */;
|
||||
const binding = env0_0;
|
||||
const CHANNEL_FOLLOWER = WebhookTypes.CHANNEL_FOLLOWER;
|
||||
return (
|
||||
<IntegrationsSettingsWebhooksOverview
|
||||
guildId={binding}
|
||||
webhookType={CHANNEL_FOLLOWER}
|
||||
{...env0_1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121984(a0) { // fn#121984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:2564, owner: getScreens_121972.render, offset: 0x02556f3f, size: 63 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...a0} {...env0_1} />)(importDefault(15927) /* metro dependency 15927: GuildSettingsModalIntegrationSettings */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121985(a0) { // fn#121985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:2669, owner: getScreens_121972.render, offset: 0x02556f7e, size: 78 bytes, params: 2, frame: 15
|
||||
const GuildSettingsModalIntegrationPlatform = importDefault(15931) /* metro dependency 15931: GuildSettingsModalIntegrationPlatform */;
|
||||
const defaultImportProps = {...a0};
|
||||
const close_121967Binding = close_121967;
|
||||
defaultImportProps['closeGuildSettings'] = close_121967Binding;
|
||||
copyDataProperties(defaultImportProps, env0_1, close_121967Binding);
|
||||
return <GuildSettingsModalIntegrationPlatform {...defaultImportProps} />;
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121986() { // fn#121986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:2793, owner: getScreens_121972.render, offset: 0x02556fcc, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15933) /* metro dependency 15933: GuildSettingsModalLobbiesLinked */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121987(a0) { // fn#121987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:2901, owner: getScreens_121972.render, offset: 0x02557009, size: 63 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...a0} {...env0_1} />)(importDefault(15212) /* metro dependency 15212: IntegrationsSettingsEditLinkedLobby */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121988() { // fn#121988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:3075, owner: getScreens_121972.render, offset: 0x02557048, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15934) /* metro dependency 15934: GuildSettingsModalChannels */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121989() { // fn#121989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:3237, owner: getScreens_121972.render, offset: 0x02557085, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15939) /* metro dependency 15939: GuildSettingsModalSecurity */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121990() { // fn#121990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:3396, owner: getScreens_121972.render, offset: 0x025570c2, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15940) /* metro dependency 15940: GuildSettingsRoles */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121991(a0) { // fn#121991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:3507, owner: getScreens_121972.render, offset: 0x025570ff, size: 71 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...a0} {...env0_1} />)(importDefault(15960) /* metro dependency 15960: GuildSettingsRoleEdit */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121992() { // fn#121992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:3615, owner: getScreens_121972.render, offset: 0x02557146, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15979) /* metro dependency 15979: GuildSettingsModalVanityURL */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121993() { // fn#121993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:3801, owner: getScreens_121972.render, offset: 0x02557183, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15983) /* metro dependency 15983: GuildSettingsModalInstantInvites */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121994() { // fn#121994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:3982, owner: getScreens_121972.render, offset: 0x025571c0, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15986) /* metro dependency 15986: GuildSettingsModalMembersWrapper */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121995(a0) { // fn#121995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:4040, owner: getScreens_121972.render, offset: 0x025571fd, size: 77 bytes, params: 2, frame: 15
|
||||
const GuildSettingsModalMemberEditScene = (require(10296) /* metro dependency 10296: GuildSettingsModalMemberEdit */).GuildSettingsModalMemberEditScene;
|
||||
return (
|
||||
<GuildSettingsModalMemberEditScene
|
||||
guildId={env0_0}
|
||||
{...a0}
|
||||
{...env0_1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121997(a0) { // fn#121997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:4157, owner: getScreens_121972.render, offset: 0x0255724a, size: 71 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...a0} {...env0_1} />)(importDefault(10311) /* metro dependency 10311: KickConfirm */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_121999(a0) { // fn#121999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:4239, owner: getScreens_121972.render, offset: 0x02557291, size: 71 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...a0} {...env0_1} />)(importDefault(10313) /* metro dependency 10313: BanConfirm */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122000() { // fn#122000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:4415, owner: getScreens_121972.render, offset: 0x025572d8, size: 61 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...env0_1} />)(importDefault(15987) /* metro dependency 15987: GuildSettingsModalBans */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122001(a0) { // fn#122001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:4606, owner: getScreens_121972.render, offset: 0x02557315, size: 65 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...a0} {...{['guildId']: env0_0}} />)(importDefault(15992) /* metro dependency 15992: GuildSettingsModalCommunity */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122002(a0) { // fn#122002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:4783, owner: getScreens_121972.render, offset: 0x02557356, size: 71 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} {...a0} {...env0_1} />)(importDefault(15993) /* metro dependency 15993: GuildSettingsModalCommunityIntro */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122003() { // fn#122003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:4899, owner: getScreens_121972.render, offset: 0x0255739d, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} />)(importDefault(16015) /* metro dependency 16015: GuildSettingsRoleSubscriptionsEmpty */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122004() { // fn#122004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5026, owner: getScreens_121972.render, offset: 0x025573cf, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} />)(importDefault(16055) /* metro dependency 16055: GuildSettingsRoleSubscriptionsEnableMonetization */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122005() { // fn#122005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5139, owner: getScreens_121972.render, offset: 0x02557401, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} />)(importDefault(16056) /* metro dependency 16056: GuildSettingsRoleSubscriptionsGroupEdit */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122006() { // fn#122006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5249, owner: getScreens_121972.render, offset: 0x02557433, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} />)(importDefault(16072) /* metro dependency 16072: GuildSettingsRoleSubscriptionTiers */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122007(a0) { // fn#122007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5366, owner: getScreens_121972.render, offset: 0x02557465, size: 65 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...a0} {...{['guildId']: env0_0}} />)(importDefault(16111) /* metro dependency 16111: GuildSettingsRoleSubscriptionTierEdit */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122008() { // fn#122008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5483, owner: getScreens_121972.render, offset: 0x025574a6, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} />)(importDefault(16115) /* metro dependency 16115: GuildSettingsRoleSubscriptionsPayments */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122009() { // fn#122009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5594, owner: getScreens_121972.render, offset: 0x025574d8, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} />)(importDefault(16116) /* metro dependency 16116: GuildSettingsRoleSubscriptionEmojis */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122010(a0) { // fn#122010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5725, owner: getScreens_121972.render, offset: 0x0255750a, size: 65 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...a0} {...{['guildId']: env0_0}} />)(importDefault(16119) /* metro dependency 16119: GuildSettingsRoleSubscriptionTierTemplateSelection */);
|
||||
}
|
||||
|
||||
function getScreens_121972Render_122011() { // fn#122011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:5832, owner: getScreens_121972.render, offset: 0x0255754b, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guildId={env0_0} />)(importDefault(16127) /* metro dependency 16127: GuildSettingsModalOfficialMessages */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,817 @@
|
||||
/* Metro module 15934; source: modules/guild_settings/native/GuildSettingsModalChannels.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 1379, 1867, 3784, 3793, 1878, 15860, 661, 33, 4501, 6597, 697, 1244, 4002, 673, 7972, 1305, 15935, 3868, 566, 6647, 4805, 5278, 1585, 4578, 6802, 9087, 10083, 15936, 15937, 15858, 11427, 13761, 3789, 6593, 4647, 5277, 15938, 5462, 8148, 1484, 44, 4584, 2] */
|
||||
function _fun122895(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:6, offset: 0x02579a95, size: 996 bytes, params: 8, frame: 33
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
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 */;
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_10 = value2.View;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_11 = value2.TouchableHighlight;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const guildSettingsModalChannelsStore = importDefault(15860) /* metro dependency 15860: GuildSettingsModalChannelsStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_18 = constantsModule.ChannelTypes;
|
||||
const env0_19 = constantsModule.Permissions;
|
||||
const Fonts = constantsModule.Fonts;
|
||||
const env0_20 = constantsModule.NULL_STRING_CHANNEL_ID;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_21 = value4.jsx;
|
||||
const env0_22 = value4.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
|
||||
object3 = {};
|
||||
const object5 = {};
|
||||
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
|
||||
let PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
copyDataProperties(object5, textStyles(PRIMARY_SEMIBOLD, MOBILE_TEXT_HEADING_PRIMARY, 16), undefined);
|
||||
object5['textTransform'] = 'capitalize';
|
||||
object3.headerRight = object5;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object3.containerView = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const object6 = {};
|
||||
const value7 = textStyles;
|
||||
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
|
||||
let TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
copyDataProperties(object6, value7(DISPLAY_EXTRABOLD, TEXT_SUBTLE, 12, {uppercase: true}), 12);
|
||||
object3.categoryText = object6;
|
||||
object3.categoryView = {'paddingTop': 36, 'paddingBottom': 8};
|
||||
object3.sortingCategoryView = {paddingTop: 16};
|
||||
const object8 = {};
|
||||
const value8 = textStyles;
|
||||
PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
copyDataProperties(object8, value8(PRIMARY_SEMIBOLD, TEXT_SUBTLE, 14), 12);
|
||||
object3.edit = object8;
|
||||
object3.row = {marginTop: -StyleSheet.hairlineWidth};
|
||||
object3.formRowStyle = {paddingVertical: 12};
|
||||
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
|
||||
object3.dropHighlight = {backgroundColor: GREEN_360, opacity: 0.3};
|
||||
object3.floatingActionButtonContainer = {'position': 'absolute', 'bottom': 16, 'right': 0, 'left': 0,
|
||||
'flexDirection': 'row', 'justifyContent': 'center'};
|
||||
const env0_23 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [object3]);
|
||||
let PureComponent = value.PureComponent;
|
||||
const value9 = _fun122909(PureComponent);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value9.contextType = ThemeContext;
|
||||
PureComponent = value.PureComponent;
|
||||
_fun122914(PureComponent).contextType = ThemeContext;
|
||||
PureComponent = value.PureComponent;
|
||||
_fun122917(PureComponent).contextType = ThemeContext;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalChannels.tsx');
|
||||
exports.default = GuildSettingsModalChannelsConnected;
|
||||
}
|
||||
|
||||
function _callSuper_122896(a0, a1, a2) { // fn#122896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:387, offset: 0x02579e79, size: 100 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = a2;
|
||||
const value3 = env0_7(a1);
|
||||
const binding = env0_6;
|
||||
if (_isNativeReflectConstruct_122897()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value3, value || [], env0_7(a0).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value3.apply(a0, value);
|
||||
r0 = value;
|
||||
}
|
||||
return binding(a0, r0);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_122897() { // fn#122897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:518, offset: 0x02579edd, 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_122897_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function ChannelItem({style, channelIconStyle, actionIconStyle, channel, sortingEnabled, onPress, sortHandlers}) { // fn#122900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:2482, offset: 0x02579f3f, size: 783 bytes, params: 2, frame: 38
|
||||
var object2;
|
||||
const value3 = (require(4501) /* metro dependency 4501: createStyles */).useLegacyClassComponentStyles(env0_23);
|
||||
const sharedModule = require(4002) /* metro dependency 4002: shared */;
|
||||
const useThemeContext = sharedModule.useThemeContext;
|
||||
const theme = Reflect.apply(useThemeContext, sharedModule, []).theme;
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun122901,
|
||||
[channel]);
|
||||
sortHandlers = !value4 ? undefined : sortHandlers;
|
||||
const channelIcon = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIcon(channel);
|
||||
const channelIconComponent = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponent(channel);
|
||||
object2 = {accessibilityRole: 'button'};
|
||||
const isThemeDark2 = sharedModule.isThemeDark(theme);
|
||||
const colorUtilsModule = require(673) /* metro dependency 673: ColorUtils */;
|
||||
const hex2rgb = colorUtilsModule.hex2rgb;
|
||||
const unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
|
||||
let r7 = isThemeDark2 ? Reflect.apply(hex2rgb, colorUtilsModule, [unsafe_rawColors.PRIMARY_700,
|
||||
0.6]) : Reflect.apply(hex2rgb, colorUtilsModule, [unsafe_rawColors.PRIMARY_200, 0.6]);
|
||||
object2.underlayColor = r7 ?? undefined;
|
||||
object2.style = style;
|
||||
copyDataProperties(object2, sortHandlers, undefined);
|
||||
r7 = sortingEnabled ? value4 ? null : {opacity: 0.3} : null;
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const formRowProps = {leading: channelIconComponent != null ? ((Component) => <Component style={channelIconStyle} size="sm" />)(channelIconComponent) : ((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL_20} source={channelIcon} style={channelIconStyle} />)((require(7972) /* metro dependency 7972: native */).FormRow.Icon),
|
||||
style: value3.formRowStyle};
|
||||
const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
formRowProps.label = useChannelNameModule.computeChannelName(channel, UserStore, RelationshipStore);
|
||||
formRowProps.onPress = sortingEnabled ? undefined : function() {
|
||||
return onPress(channel.id);
|
||||
};
|
||||
formRowProps.trailing = value4 && sortingEnabled ? ((Icon) => <Icon source={importDefault(15935) /* metro dependency 15935 */} style={actionIconStyle} />)((require(7972) /* metro dependency 7972: native */).FormRow.Icon) : null;
|
||||
formRowProps.numberOfLines = sortingEnabled ? 1 : undefined;
|
||||
return (
|
||||
<TouchableHighlight {...object2}>
|
||||
<View style={r7}>
|
||||
<FormRow {...formRowProps} />
|
||||
</View>
|
||||
</TouchableHighlight>
|
||||
);
|
||||
}
|
||||
|
||||
function isValidDrop(a0, a1) { // fn#122903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:4048, offset: 0x0257a2be, size: 110 bytes, params: 3, frame: 16
|
||||
return a0 != null && (a0.parentId == null ? PermissionStore.can(Permissions.MANAGE_CHANNELS,
|
||||
a1) : PermissionStore.can(Permissions.MANAGE_CHANNELS, ChannelStore.getChannel(a0.parentId)));
|
||||
}
|
||||
|
||||
function CreateButton({guild}) { // fn#122904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:4186, offset: 0x0257a32c, size: 332 bytes, params: 2, frame: 24
|
||||
var r0;
|
||||
var Button;
|
||||
var intl;
|
||||
const value2 = (require(4501) /* metro dependency 4501: createStyles */).useLegacyClassComponentStyles(env0_23);
|
||||
const value3 = env0_9.useMemo(function() {
|
||||
return {bottom: 16 + bottom};
|
||||
}, [(importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom]);
|
||||
const can = PermissionStore.can;
|
||||
const MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS;
|
||||
if (Reflect.apply(can, PermissionStore, [MANAGE_CHANNELS, guild])) {
|
||||
var viewBindingProps = {style: [value2.floatingActionButtonContainer, value3]};
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <View {...viewBindingProps}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CumH4u)} onPress={onPress_122906} icon={((PlusSmallIcon) => <PlusSmallIcon color="white" />)((require(10083) /* metro dependency 10083: PlusSmallIcon */).PlusSmallIcon)} /></View>;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun122909(a0) { // fn#122909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:1475, offset: 0x0257a608, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = Category;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'render', value: value_122911}]);
|
||||
}
|
||||
|
||||
function _fun122914(a0) { // fn#122914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:3620, offset: 0x0257a912, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = SectionEditAction;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'render', value: value_122916}]);
|
||||
}
|
||||
|
||||
function _fun122917(a0) { // fn#122917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:4937, offset: 0x0257a9fe, size: 199 bytes, params: 2, frame: 16
|
||||
const closure = GuildSettingsModalChannels;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'componentDidMount', value: function() {
|
||||
this.updateNavigation();
|
||||
}}, {key: 'componentDidUpdate', value: function(a0) {
|
||||
this.updateNavigation(a0);
|
||||
}}, {key: 'updateNavigation', value: value_122934}, {key: 'render', value: value_122938},
|
||||
{key: 'handleChannelPress', value: value_122942}, {key: 'handleSortStop', value: value_122943}]);
|
||||
}
|
||||
|
||||
function GuildSettingsModalChannelsConnected({guildId, contentContainerStyle}) { // fn#122944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:10252, offset: 0x0257baa9, size: 485 bytes, params: 2, frame: 26
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const channels = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsModalChannelsStore],
|
||||
function() {
|
||||
return GuildSettingsModalChannelsStore.channels;
|
||||
});
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun122947);
|
||||
const channelList = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsModalChannelsStore],
|
||||
function() {
|
||||
return GuildSettingsModalChannelsStore.channelList;
|
||||
});
|
||||
const order = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsModalChannelsStore],
|
||||
function() {
|
||||
return GuildSettingsModalChannelsStore.order;
|
||||
});
|
||||
const sortingType = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsModalChannelsStore],
|
||||
function() {
|
||||
return GuildSettingsModalChannelsStore.sortingType;
|
||||
});
|
||||
const value3 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
const binding = env0_9;
|
||||
const useMemo = binding.useMemo;
|
||||
return order == null || channelList == null || (channels == null || guild == null) || currentUser == null ? null : ((Component) => <Component navigation={value2} guild={guild} channels={channels} user={currentUser} channelList={channelList} order={order} sortingType={sortingType} contentContainerStyle={Reflect.apply(useMemo,
|
||||
binding, [_fun122951, [contentContainerStyle, value3.bottom,
|
||||
sortingType]])} fontScale={(require(4584) /* metro dependency 4584: useFontScale */).useFontScale()} />)(env0_26);
|
||||
}
|
||||
|
||||
function _fun122901() { // fn#122901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:2723, offset: 0x0257a24e, size: 112 bytes, params: 1, frame: 15
|
||||
return channel.parent_id == null ? PermissionStore.canWithPartialContext(Permissions.MANAGE_CHANNELS,
|
||||
{guildId: channel.guild_id}) : PermissionStore.canWithPartialContext(Permissions.MANAGE_CHANNELS,
|
||||
{channelId: channel.parent_id});
|
||||
}
|
||||
|
||||
function CreateButtonOnPress() { // fn#122906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:4488, owner: CreateButton.onPress, offset: 0x0257a48e, size: 254 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
|
||||
const showSimpleActionSheet = value.showSimpleActionSheet;
|
||||
const object2 = {key: 'GuildSettingsChannelsCreate'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const CumH4u = t.CumH4u;
|
||||
object2.header = {title: Reflect.apply(string, intl, [CumH4u])};
|
||||
string = intl.string;
|
||||
const GK18KJ = t.GK18KJ;
|
||||
object2.options = [{label: intl.string(t.vHCZwr), onPress: function() {
|
||||
var defaultImport = importDefault(dependencyMap[32]);
|
||||
var GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
||||
defaultImport.open(GUILD_CATEGORY, guild.id, null, null);
|
||||
}}, {label: Reflect.apply(string, intl, [GK18KJ]), onPress: onPress_122908}];
|
||||
object2.hasIcons = false;
|
||||
Reflect.apply(showSimpleActionSheet, value, [object2]);
|
||||
}
|
||||
|
||||
function Category() { // fn#122910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:1487, offset: 0x0257a650, size: 42 bytes, params: 1, frame: 16
|
||||
env1_4(this, Category);
|
||||
return _callSuper_122896(this, Category, arguments);
|
||||
}
|
||||
|
||||
function value_122911() { // fn#122911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:1620, offset: 0x0257a67a, size: 596 bytes, params: 1, frame: 30
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_23;
|
||||
const context = this.context;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(context);
|
||||
const {category, onPress, sortingEnabled, editStyle, actionIconStyle} = this.props;
|
||||
const value4 = null;
|
||||
const sortHandlers = sortingEnabled ? this.props.sortHandlers : value4;
|
||||
const object3 = {accessibilityRole: 'button'};
|
||||
const object4 = {name: 'activate'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object4.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bt75uw);
|
||||
object3.accessibilityActions = [object4];
|
||||
object3.onAccessibilityAction = function(a0) {
|
||||
return a0.nativeEvent.actionName !== 'activate' || onPress == null ? undefined : onPress(category.id);
|
||||
};
|
||||
const sharedModule = require(4002) /* metro dependency 4002: shared */;
|
||||
const isThemeDark2 = sharedModule.isThemeDark(this.context.theme);
|
||||
const colorUtilsModule = require(673) /* metro dependency 673: ColorUtils */;
|
||||
const hex2rgb = colorUtilsModule.hex2rgb;
|
||||
const unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
|
||||
const r5 = isThemeDark2 ? Reflect.apply(hex2rgb, colorUtilsModule, [unsafe_rawColors.PRIMARY_700,
|
||||
0.6]) : Reflect.apply(hex2rgb, colorUtilsModule, [unsafe_rawColors.PRIMARY_200, 0.6]);
|
||||
object3.underlayColor = value4 != r5 ? r5 : value2;
|
||||
copyDataProperties(object3, sortHandlers, intl);
|
||||
const FormTitle = (require(7972) /* metro dependency 7972: native */).FormTitle;
|
||||
return (
|
||||
<TouchableHighlight {...object3}>
|
||||
<View>
|
||||
<FormTitle
|
||||
title={category.name}
|
||||
numberOfLines={1}
|
||||
textStyle={value3.categoryText}
|
||||
viewStyle={[value3.categoryView, sortingEnabled ? value3.sortingCategoryView : value4]}
|
||||
icon={value4 != onPress ? ((Component) => <Component style={editStyle} onPress={function() {
|
||||
return onPress(category.id);
|
||||
}} />)(env1_25) : value4 != sortHandlers ? ((Icon) => <Icon source={importDefault(15935) /* metro dependency 15935 */} style={actionIconStyle} />)((require(1305) /* metro dependency 1305: native */).Icon) : value4}
|
||||
/>
|
||||
</View>
|
||||
</TouchableHighlight>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122916() { // fn#122916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:3810, offset: 0x0257a95a, size: 164 bytes, params: 1, frame: 21
|
||||
const {style, onPress} = this.props;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<PressableOpacity accessibilityRole="button" onPress={onPress}>
|
||||
<LegacyText style={style}>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bt75uw)}
|
||||
</LegacyText>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildSettingsModalChannels(a0) { // fn#122918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:4949, offset: 0x0257aac5, size: 159 bytes, params: 2, frame: 18
|
||||
let value = copyRestArgs(0, undefined);
|
||||
env1_4(this, GuildSettingsModalChannels);
|
||||
const _callSuper_122896Binding = _callSuper_122896;
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, undefined);
|
||||
value = _callSuper_122896Binding(this, GuildSettingsModalChannels, items);
|
||||
value.state = {hovering: null};
|
||||
value.renderActiveDivider = renderActiveDivider;
|
||||
value.renderSectionHeader = renderSectionHeader_122920;
|
||||
value.renderItem = renderItem_122921;
|
||||
value.handleHoverChange = handleHoverChange;
|
||||
value.handleSortStart = handleSortStart;
|
||||
value.handleDrop = handleDrop;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_122934(a0) { // fn#122934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:8356, offset: 0x0257b54e, size: 311 bytes, params: 2, frame: 24
|
||||
var environment;
|
||||
var r7;
|
||||
var r4;
|
||||
var setOptions;
|
||||
var object2;
|
||||
var moduleValue;
|
||||
var intl;
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_23;
|
||||
const context = this.context;
|
||||
const value2 = undefined;
|
||||
const env0_1 = binding(context);
|
||||
const {sortingType, order, navigation, guild, channels, user} = this.props;
|
||||
let r1 = a0 != null && sortingType === a0.sortingType && order === a0.order;
|
||||
r1 = r1 && guild === a0.guild && channels === a0.channels;
|
||||
if (!r1) {
|
||||
setOptions = navigation.setOptions;
|
||||
object2 = {};
|
||||
object2.headerLeft = sortingType != null ? function() {
|
||||
return null;
|
||||
} : value2;
|
||||
if (sortingType != null) {
|
||||
r7 = _fun122936;
|
||||
} else {
|
||||
moduleValue = importAll(3789) /* metro dependency 3789: PermissionUtils */;
|
||||
r7 = moduleValue.canManageACategory(user, guild, channels._categories) ? _fun122937 : value2;
|
||||
}
|
||||
object2.headerRight = r7;
|
||||
if (sortingType != null) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OGiMXJ);
|
||||
} else {
|
||||
r4 = value2;
|
||||
}
|
||||
object2.headerTitle = r4;
|
||||
Reflect.apply(setOptions, navigation, [object2]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function value_122938() { // fn#122938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:9032, offset: 0x0257b787, size: 355 bytes, params: 1, frame: 25
|
||||
const value2 = env1_23(this.context);
|
||||
const {channels, order, sortingType, guild} = this.props;
|
||||
const value3 = ((a0, a1, a2) => {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = a2;
|
||||
if (a0 != null) {
|
||||
var env0_4 = -1;
|
||||
a0._categories.forEach(_fun122940);
|
||||
}
|
||||
return [];
|
||||
})(channels, sortingType, this.state.hovering);
|
||||
const containerView = value2.containerView;
|
||||
const SortableChannels = importDefault(15938) /* metro dependency 15938: SortableChannels */;
|
||||
const renderSectionHeader = this.renderSectionHeader;
|
||||
const renderItem = this.renderItem;
|
||||
const handleDrop = this.handleDrop;
|
||||
const items2 = [NULL_STRING_CHANNEL_ID];
|
||||
arraySpread(items2, order, 1, order);
|
||||
const sortableChannels = <SortableChannels sections={value3} sortingEnabled={sortingType != null} renderSectionHeader={renderSectionHeader} renderItem={renderItem} onRowMoved={handleDrop} order={items2} onHoverChange={this.handleHoverChange} renderActiveDivider={this.renderActiveDivider} contentContainerStyle={this.props.contentContainerStyle} fontScale={this.props.fontScale} />;
|
||||
const r6 = sortingType == null && <CreateButton guild={guild} />;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<View style={containerView}>
|
||||
{sortableChannels}
|
||||
{r6}
|
||||
<NavScrim />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122942(a0) { // fn#122942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:9992, offset: 0x0257ba5b, size: 41 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
(require(8148) /* metro dependency 8148: ChannelSettingsActionCreators */).open(a0);
|
||||
}
|
||||
|
||||
function value_122943() { // fn#122943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:10051, offset: 0x0257ba84, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(15858) /* metro dependency 15858: GuildSettingsModalChannelsActionCreators */).stopReordering();
|
||||
}
|
||||
|
||||
function _fun122947() { // fn#122947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:10507, offset: 0x0257bcb8, size: 58 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
(importDefault(44) /* metro dependency 44 */)(currentUser != null,
|
||||
'GuildSettingsModalChannelsConnected: currentUser cannot be undefined');
|
||||
return currentUser;
|
||||
}
|
||||
|
||||
function _fun122951() { // fn#122951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:10823, offset: 0x0257bd1f, size: 70 bytes, params: 1, frame: 5
|
||||
return sortingType == null ? [contentContainerStyle,
|
||||
{paddingBottom: env0_3.bottom + 32 + 44}] : contentContainerStyle;
|
||||
}
|
||||
|
||||
function onPressOnPress_body_122908() { // fn#122908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:4776, owner: CreateButton.onPress.body, offset: 0x0257a5ce, size: 58 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(9087) /* metro dependency 9087: CreateChannelModalActionCreators */;
|
||||
value.open(null, guild.id, null, null);
|
||||
}
|
||||
|
||||
function GuildSettingsModalChannelsRenderActiveDivider(a0, a1, a2) { // fn#122919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:5138, owner: GuildSettingsModalChannels.renderActiveDivider, offset: 0x0257ab64, size: 268 bytes, params: 4, frame: 26
|
||||
const value = environment.__proto__.__proto__;
|
||||
const binding = env2_23;
|
||||
const binding2 = env0_0;
|
||||
const value3 = binding(binding2.context);
|
||||
const {sortingType, order, channelList, guild} = binding2.props;
|
||||
const value4 = null;
|
||||
if (value4 == sortingType) {
|
||||
return value4;
|
||||
}
|
||||
if (value4 == order) {
|
||||
return value4;
|
||||
}
|
||||
if (value4 == channelList) {
|
||||
return value4;
|
||||
}
|
||||
const localChannel = GuildSettingsModalChannelsStore.getLocalChannel(a1);
|
||||
const r10 = value4 != a2 ? GuildSettingsModalChannelsStore.getLocalChannel(a2) : value4;
|
||||
const r9 = value4 != a2 ? order.indexOf(a2) : -1;
|
||||
const value9 = order.indexOf(a1);
|
||||
const isValidDropBinding = isValidDrop;
|
||||
const channelSortingUtilsModule = require(15936) /* metro dependency 15936: ChannelSortingUtils */;
|
||||
const getDropData = channelSortingUtilsModule.getDropData;
|
||||
return isValidDropBinding(Reflect.apply(getDropData, channelSortingUtilsModule, [r10, r9, localChannel, value9,
|
||||
channelList]), guild) ? <View style={[value3.dropHighlight, {height: a0}]} /> : value4;
|
||||
}
|
||||
|
||||
function GuildSettingsModalChannelsRenderSectionHeader(a0) { // fn#122920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:5498, owner: GuildSettingsModalChannels.renderSectionHeader, offset: 0x0257ac70, size: 246 bytes, params: 2, frame: 22
|
||||
var r0;
|
||||
var object2;
|
||||
const id = a0.section.category.id;
|
||||
const value = environment.__proto__.__proto__;
|
||||
let binding = env2_23;
|
||||
const binding2 = env0_0;
|
||||
const context = binding2.context;
|
||||
const value3 = undefined;
|
||||
const value4 = binding(context);
|
||||
const {sortingType, channels} = binding2.props;
|
||||
const value5 = null;
|
||||
let r9 = id === 'null' ? value5 : GuildSettingsModalChannelsStore.getLocalChannel(id);
|
||||
if (value5 != r9) {
|
||||
binding = env2_24;
|
||||
object2 = {category: r9};
|
||||
r9 = value5 != sortingType && sortingType.has(ChannelTypes.GUILD_CATEGORY);
|
||||
object2.sortingEnabled = r9;
|
||||
object2.editStyle = value4.edit;
|
||||
object2.onPress = value5 == sortingType ? env0_0.handleChannelPress : value3;
|
||||
r0 = ((Component) => <Component {...object2} />)(binding);
|
||||
} else {
|
||||
r0 = <View style={value5 == sortingType && channels.null.length > 0 ? {marginTop: 36} : value5} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function GuildSettingsModalChannelsRenderItem(a0) { // fn#122921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:5841, owner: GuildSettingsModalChannels.renderItem, offset: 0x0257ad66, size: 124 bytes, params: 2, frame: 19
|
||||
const {channel, sortingType} = a0.item;
|
||||
const value = environment.__proto__.__proto__;
|
||||
return channel != null ? <ChannelItem channel={channel} sortingEnabled={sortingType != null} onPress={env0_0.handleChannelPress} style={env2_23(env0_0.context).row} /> : <View />;
|
||||
}
|
||||
|
||||
function handleHoverChange(a0) { // fn#122922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:6032, owner: GuildSettingsModalChannels.handleHoverChange, offset: 0x0257ade2, size: 32 bytes, params: 2, frame: 12
|
||||
env0_0.setState({hovering: a0});
|
||||
}
|
||||
|
||||
function handleSortStart() { // fn#122923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:6080, owner: GuildSettingsModalChannels.handleSortStart, offset: 0x0257ae02, size: 452 bytes, params: 1, frame: 21
|
||||
var environment;
|
||||
var push;
|
||||
var object4;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const guild = env0_0.props.guild;
|
||||
const items2 = [];
|
||||
let value = environment.__proto__.__proto__;
|
||||
const can = PermissionStore.can;
|
||||
const MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS;
|
||||
if (Reflect.apply(can, PermissionStore, [MANAGE_CHANNELS, guild])) {
|
||||
push = items2.push;
|
||||
object4 = {};
|
||||
object4.label = intl.string(t.ffgJrs);
|
||||
object4.icon = importDefault(15937) /* metro dependency 15937 */;
|
||||
object4.onPress = function() {
|
||||
importDefault(dependencyMap[36]).startReordering(ChannelTypes.GUILD_CATEGORY);
|
||||
};
|
||||
Reflect.apply(push, items2, [object4]);
|
||||
}
|
||||
push = items2.push;
|
||||
const object6 = {};
|
||||
object6.label = intl.string(t.nIfr0Y);
|
||||
object6.icon = importDefault(11427) /* metro dependency 11427 */;
|
||||
object6.onPress = function() {
|
||||
var defaultImport = importDefault(dependencyMap[36]);
|
||||
var GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
||||
var GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
||||
var GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
||||
defaultImport.startReordering(GUILD_TEXT, GUILD_ANNOUNCEMENT, GUILD_FORUM, ChannelTypes.GUILD_MEDIA);
|
||||
};
|
||||
Reflect.apply(push, items2, [object6]);
|
||||
push = items2.push;
|
||||
const object7 = {};
|
||||
const string = intl.string;
|
||||
const CYnO4s = t.CYnO4s;
|
||||
object7.label = Reflect.apply(string, intl, [CYnO4s]);
|
||||
object7.icon = importDefault(13761) /* metro dependency 13761 */;
|
||||
object7.onPress = function() {
|
||||
var defaultImport = importDefault(dependencyMap[36]);
|
||||
var GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
||||
defaultImport.startReordering(GUILD_VOICE, ChannelTypes.GUILD_STAGE_VOICE);
|
||||
};
|
||||
Reflect.apply(push, items2, [object7]);
|
||||
value = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
|
||||
const showSimpleActionSheet = value.showSimpleActionSheet;
|
||||
const object8 = {};
|
||||
object8.title = intl.string(t['0dOFq+']);
|
||||
Reflect.apply(showSimpleActionSheet, value, [{key: 'GuildSettingsChannelsSort', header: object8, options: items2,
|
||||
hasIcons: true}]);
|
||||
}
|
||||
|
||||
function handleDrop(a0) { // fn#122927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:6732, owner: GuildSettingsModalChannels.handleDrop, offset: 0x0257b081, size: 735 bytes, params: 2, frame: 33
|
||||
var r3;
|
||||
var referenceId;
|
||||
var moduleValue2;
|
||||
var getDnDUpdates;
|
||||
var parentId;
|
||||
var value8;
|
||||
var parent_id;
|
||||
var closure;
|
||||
var value9;
|
||||
var defaultImport;
|
||||
var show;
|
||||
var object3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var format;
|
||||
var property;
|
||||
var object4;
|
||||
const {order, channels, channelList, guild} = env0_0.props;
|
||||
const localChannel = GuildSettingsModalChannelsStore.getLocalChannel(order[a0.from]);
|
||||
const localChannel2 = GuildSettingsModalChannelsStore.getLocalChannel(order[a0.to]);
|
||||
const dropData = (require(15936) /* metro dependency 15936: ChannelSortingUtils */).getDropData(localChannel,
|
||||
a0.from, localChannel2, a0.to, channelList);
|
||||
const value5 = null;
|
||||
if (value5 != dropData) {
|
||||
if (localChannel2 !== localChannel) {
|
||||
if (value5 != localChannel) {
|
||||
if (value5 != localChannel2) {
|
||||
if (isValidDrop(dropData, guild)) {
|
||||
referenceId = dropData.referenceId;
|
||||
moduleValue2 = require(15936) /* metro dependency 15936: ChannelSortingUtils */;
|
||||
getDnDUpdates = moduleValue2.getDnDUpdates;
|
||||
r3 = value5 != referenceId ? GuildSettingsModalChannelsStore.getLocalChannel(referenceId) : value5;
|
||||
parentId = dropData.parentId;
|
||||
value8 = Reflect.apply(getDnDUpdates, moduleValue2, [localChannel, r3, parentId,
|
||||
channels]).filter(_fun122928);
|
||||
parent_id = localChannel.parent_id;
|
||||
parentId = dropData.parentId;
|
||||
if (parent_id !== parentId) {
|
||||
value8.find(_fun122929);
|
||||
}
|
||||
closure = onCancel_122930;
|
||||
if (value5 != env0_2) {
|
||||
value9 = ChannelStore.getChannel(env0_2.parent_id);
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object3 = {};
|
||||
object3.title = intl.string(t.YWMtRe);
|
||||
format = intl.format;
|
||||
property = t['iKW+jY'];
|
||||
object4 = {};
|
||||
object4.channelName = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(localChannel,
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
UserStore, RelationshipStore, true);
|
||||
object4.categoryName = value5 != value9 ? (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(value9,
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
UserStore, RelationshipStore) : '';
|
||||
object3.body = Reflect.apply(format, intl, [property, object4]);
|
||||
object3.confirmText = intl.string(t.eW8Gy4);
|
||||
object3.cancelText = intl.string(t.s4uM3b);
|
||||
object3.onConfirm = onConfirm_122931;
|
||||
object3.onCancel = closure;
|
||||
Reflect.apply(show, defaultImport, [object3]);
|
||||
} else {
|
||||
closure();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun122936() { // fn#122936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:8615, offset: 0x0257b685, size: 130 bytes, params: 1, frame: 19
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerRight = env0_1.headerRight;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
textStyle={headerRight}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR)}
|
||||
onPress={env0_0.handleSortStop}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun122937() { // fn#122937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:8796, offset: 0x0257b707, size: 128 bytes, params: 1, frame: 19
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerRight = env0_1.headerRight;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
textStyle={headerRight}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0dOFq+'])}
|
||||
onPress={env0_0.handleSortStart}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function getListViewData(a0, a1, a2) { // fn#122939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:9129, owner: value_122938.getListViewData, offset: 0x0257b8ea, size: 74 bytes, params: 4, frame: 12
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
if (a0 != null) {
|
||||
a0._categories.forEach(_fun122940);
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
function _fun122928({id}) { // fn#122928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:7061, offset: 0x0257b360, size: 141 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
const channel = ChannelStore.getChannel(id);
|
||||
if (channel == null) {
|
||||
return false;
|
||||
}
|
||||
const channel2 = ChannelStore.getChannel(channel.parent_id);
|
||||
const type = channel.type;
|
||||
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
||||
return type === GUILD_CATEGORY || channel2 == null ? PermissionStore.can(Permissions.MANAGE_CHANNELS,
|
||||
guild) : PermissionStore.can(Permissions.MANAGE_CHANNELS, channel2);
|
||||
}
|
||||
|
||||
function _fun122929(a0) { // fn#122929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:7279, offset: 0x0257b3ed, size: 244 bytes, params: 2, frame: 21
|
||||
var r2;
|
||||
var moduleValue;
|
||||
var areChannelsLocked;
|
||||
var binding;
|
||||
var value4;
|
||||
var moduleValue2;
|
||||
var value5;
|
||||
if (a0.id !== env0_1.id) {
|
||||
return false;
|
||||
}
|
||||
let getChannel = ChannelStore.getChannel;
|
||||
let parent_id = a0.parent_id;
|
||||
const value3 = Reflect.apply(getChannel, ChannelStore, [parent_id]);
|
||||
if (value3 != null) {
|
||||
var can = PermissionStore.can;
|
||||
var MANAGE_ROLES = Permissions.MANAGE_ROLES;
|
||||
if (Reflect.apply(can, PermissionStore, [MANAGE_ROLES, env0_1])) {
|
||||
if (PermissionStore.can(Permissions.MANAGE_ROLES, value3)) {
|
||||
moduleValue = importAll(3789) /* metro dependency 3789: PermissionUtils */;
|
||||
areChannelsLocked = moduleValue.areChannelsLocked;
|
||||
binding = env0_1;
|
||||
value4 = Reflect.apply(areChannelsLocked, moduleValue, [binding, value3]);
|
||||
moduleValue2 = importAll(3789) /* metro dependency 3789: PermissionUtils */;
|
||||
areChannelsLocked = moduleValue2.areChannelsLocked;
|
||||
getChannel = ChannelStore.getChannel;
|
||||
parent_id = binding.parent_id;
|
||||
value5 = Reflect.apply(areChannelsLocked, moduleValue2, [binding, Reflect.apply(getChannel,
|
||||
ChannelStore,
|
||||
[parent_id])]);
|
||||
parent_id = binding.parent_id;
|
||||
r2 = parent_id == null && !value4;
|
||||
r2 = !r2 ? value5 && !value4 : r2;
|
||||
if (r2) {
|
||||
env0_2 = a0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function handleDropOnCancel() { // fn#122930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:7574, owner: GuildSettingsModalChannels.handleDrop.onCancel, offset: 0x0257b4e1, size: 82 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
(importDefault(15858) /* metro dependency 15858: GuildSettingsModalChannelsActionCreators */).localChannelUpdate(env0_3);
|
||||
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
value.batchChannelUpdate(env0_1.guild_id, env0_3);
|
||||
}
|
||||
|
||||
function handleDropOnConfirm() { // fn#122931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:8030, owner: GuildSettingsModalChannels.handleDrop.onConfirm, offset: 0x0257b533, size: 27 bytes, params: 1, frame: 10
|
||||
env0_2.lock_permissions = true;
|
||||
onCancel_122930();
|
||||
}
|
||||
|
||||
function _fun122940({channel}) { // fn#122940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:9229, offset: 0x0257b934, size: 160 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
var value;
|
||||
var value2;
|
||||
var object2;
|
||||
var binding;
|
||||
let id = channel.id;
|
||||
if (id === 'null') {
|
||||
value2 = env0_4 + 1;
|
||||
object2 = {data: [], category: channel};
|
||||
id = channel.id;
|
||||
object2.key = id;
|
||||
object2.index = value2;
|
||||
binding = object2;
|
||||
id = channel.id;
|
||||
binding[id].forEach(_fun122941);
|
||||
binding = env0_3;
|
||||
binding.push(object2);
|
||||
} else {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
if (PermissionStore.can(Permissions.VIEW_CHANNEL, channel)) {
|
||||
value2 = env0_4 + 1;
|
||||
object2 = {data: [], category: channel};
|
||||
id = channel.id;
|
||||
object2.key = id;
|
||||
object2.index = value2;
|
||||
binding = object2;
|
||||
id = channel.id;
|
||||
binding[id].forEach(_fun122941);
|
||||
binding = env0_3;
|
||||
binding.push(object2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun122941({channel}) { // fn#122941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16142:9354, offset: 0x0257b9d4, size: 135 bytes, params: 2, frame: 14
|
||||
var binding;
|
||||
var value4;
|
||||
var data;
|
||||
var push;
|
||||
var object2;
|
||||
var id;
|
||||
if (require == null || require.has(channel.type)) {
|
||||
binding = env1_4;
|
||||
value4 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
||||
data = env0_0.data;
|
||||
push = data.push;
|
||||
object2 = {};
|
||||
id = channel.id;
|
||||
object2.key = id;
|
||||
object2.channel = channel;
|
||||
object2.sortingType = require;
|
||||
id = channel.id;
|
||||
object2.isHovered = importDefault === id;
|
||||
object2.index = value4;
|
||||
Reflect.apply(push, data, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,285 @@
|
||||
/* Metro module 15903; source: modules/guild_settings/native/GuildSettingsModalEmoji.tsx; dependencies: [57, 31, 27, 1867, 15904, 33, 22, 8629, 4501, 697, 1244, 6545, 8249, 566, 9077, 4573, 15906, 15910, 1305, 15911, 5461, 5462, 1484, 5282, 2] */
|
||||
function _fun122689(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:6, offset: 0x02571329, size: 520 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = ManageEmojisModal;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.FlatList;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const guildSettingsEmojiStore = importDefault(15904) /* metro dependency 15904: GuildSettingsEmojiStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
const env0_11 = value.Fragment;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
const env0_12 = value.throttle((require(8629) /* metro dependency 8629: EmojiActionCreators */).fetchEmoji, 1000);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {loadingContainer: {'flex': 1, 'paddingTop': 40}};
|
||||
object2.emptyState = {paddingTop: 30};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.list = {paddingHorizontal: PX_12};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.section = {paddingVertical: PX_16};
|
||||
object2.titleContainer = {'paddingLeft': 16, 'paddingRight': 16};
|
||||
const env0_13 = Reflect.apply(createStyles, value, [object2]);
|
||||
const closure2 = computeSectionItem;
|
||||
const closure3 = function(a0) {
|
||||
return {type: 'EMOJI', key: a0.id, emoji: a0};
|
||||
};
|
||||
const env0_16 = (importDefault(22) /* metro dependency 22 */).memoize(_fun122700);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalEmoji.tsx');
|
||||
exports.default = GuildSettingsModalEmoji;
|
||||
exports.computeSectionItem = closure2;
|
||||
exports.computeEmojiItem = closure3;
|
||||
exports.ManageEmojisModal = closure;
|
||||
}
|
||||
|
||||
function ManageEmojisModal({computeEmojiItems, contentContainerStyle, disabled, guild, headerDescription, onSelectRolesForEmoji}) { // fn#122690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:1150, offset: 0x02571531, size: 689 bytes, params: 2, frame: 27
|
||||
var r0;
|
||||
disabled = !(disabled === undefined) && disabled;
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsEmojiStore],
|
||||
function() {
|
||||
var object = {};
|
||||
var guildBinding = guild;
|
||||
object.emojis = GuildSettingsEmojiStore.getEmojis(guildBinding.id);
|
||||
object.revision = GuildSettingsEmojiStore.getEmojiRevision(guildBinding.id);
|
||||
return object;
|
||||
});
|
||||
const emojis = value4.emojis;
|
||||
const env0_4 = emojis;
|
||||
const revision = value4.revision;
|
||||
const useManageResourcePermissionsModule = require(9077) /* metro dependency 9077: useManageResourcePermissions */;
|
||||
const useManageResourcePermissions = useManageResourcePermissionsModule.useManageResourcePermissions;
|
||||
const canManageGuildExpression = Reflect.apply(useManageResourcePermissions, useManageResourcePermissionsModule,
|
||||
[guild]).canManageGuildExpression;
|
||||
const emojiItems = computeEmojiItems(emojis ?? [], guild);
|
||||
const styles = useStyles();
|
||||
let binding = env0_4;
|
||||
const env0_9 = binding.useRef(revision);
|
||||
env0_4.useEffect(_fun122692, [guild.id]);
|
||||
env0_4.useEffect(_fun122693, [guild.id, revision]);
|
||||
binding = env0_4;
|
||||
let useCallback = binding.useCallback;
|
||||
const value5 = Reflect.apply(useCallback, binding, [_fun122694, [guild.id, disabled, emojiItems, styles,
|
||||
onSelectRolesForEmoji, canManageGuildExpression]]);
|
||||
binding = env0_4;
|
||||
useCallback = binding.useCallback;
|
||||
items = [guild];
|
||||
items[1] = emojis?.length;
|
||||
items[2] = headerDescription;
|
||||
items[3] = onSelectRolesForEmoji;
|
||||
items[4] = disabled;
|
||||
const value6 = Reflect.apply(useCallback, binding, [_fun122695, items]);
|
||||
binding = env0_4;
|
||||
useCallback = binding.useCallback;
|
||||
if (emojis == null) {
|
||||
r0 = <View style={styles.loadingContainer}>{((ActivityIndicator) => <ActivityIndicator />)((require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator)}{((NavScrim) => <NavScrim />)((require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim)}</View>;
|
||||
} else {
|
||||
r0 = <FlatList initialNumToRender={12} ListHeaderComponent={value6} ListEmptyComponent={Reflect.apply(useCallback,
|
||||
|
||||
binding, [_fun122696,
|
||||
[styles]])} windowSize={4} data={emojiItems} keyExtractor={env0_4.useCallback(function(a0) {
|
||||
return a0.key;
|
||||
}, [])} renderItem={value5} contentContainerStyle={[contentContainerStyle, styles.list]} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function computeSectionItem(a0, a1, a2) { // fn#122698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:502, offset: 0x02571b11, size: 162 bytes, params: 4, frame: 18
|
||||
const Math = global.Math;
|
||||
let value = Math.max(a2 - a1, 0);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
value = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.sgL8sI, {count: value});
|
||||
value = '' + a0 + ' - ' + value;
|
||||
value = value.toUpperCase();
|
||||
return {type: 'SECTION', key: value, section: value};
|
||||
}
|
||||
|
||||
function _fun122700(a0, a1) { // fn#122700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:738, offset: 0x02571bd0, size: 380 bytes, params: 3, frame: 23
|
||||
var r1;
|
||||
var items2;
|
||||
var items3;
|
||||
const env0_0 = a1;
|
||||
let value = a0.filter(_fun122701);
|
||||
value = value.map(computeEmojiItem);
|
||||
value = value.reverse();
|
||||
const maxEmojiSlots = require(dependencyMap[12]).getMaxEmojiSlots(a1);
|
||||
value = importDefault(dependencyMap[6]).partition(value, function(a0) {
|
||||
return !a0.emoji.animated;
|
||||
});
|
||||
value = env0_3(value, 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
const computeSectionItemBinding = computeSectionItem;
|
||||
const intl = require(dependencyMap[10]).intl;
|
||||
const string = intl.string;
|
||||
const t = require(dependencyMap[10]).t;
|
||||
value = Reflect.apply(string, intl, [t.sMOuuS]);
|
||||
value = computeSectionItemBinding(value, property.length, maxEmojiSlots);
|
||||
const sectionItem = computeSectionItemBinding(intl.string(t.wWjQye), property2.length, maxEmojiSlots);
|
||||
if (property.length > 0) {
|
||||
items2 = [value];
|
||||
arraySpread(items2, property, 1, dependencyMap);
|
||||
r1 = items2;
|
||||
} else {
|
||||
r1 = [];
|
||||
}
|
||||
items2 = [];
|
||||
value = arraySpread(items2, r1, 0, dependencyMap);
|
||||
if (property2.length > 0) {
|
||||
items3 = [sectionItem];
|
||||
arraySpread(items3, property2, 1, dependencyMap);
|
||||
r1 = items3;
|
||||
} else {
|
||||
r1 = [];
|
||||
}
|
||||
arraySpread(items2, r1, value, dependencyMap);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function GuildSettingsModalEmoji({guildId, contentContainerStyle, isLandingScreen}) { // fn#122703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:2954, offset: 0x02571d99, size: 373 bytes, params: 2, frame: 23
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const styles = useStyles();
|
||||
styles.useLayoutEffect(_fun122705, [value2, guild, isLandingScreen, styles]);
|
||||
if (guild == null) {
|
||||
return null;
|
||||
}
|
||||
const maxEmojiSlots = (require(8249) /* metro dependency 8249: GuildBoostingUtils */).getMaxEmojiSlots(guild);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const TA1BR0 = (require(1244) /* metro dependency 1244: indexNative */).t.TA1BR0;
|
||||
const value4 = Reflect.apply(formatToPlainString, intl, [TA1BR0, {count: maxEmojiSlots}]);
|
||||
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
|
||||
const manageEmojisModal = <ManageEmojisModal guild={guild} headerDescription={value4} computeEmojiItems={env0_16} contentContainerStyle={contentContainerStyle} />;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{manageEmojisModal}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun122692() { // fn#122692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:1549, offset: 0x02571826, size: 28 bytes, params: 1, frame: 11
|
||||
env1_12(guild.id);
|
||||
}
|
||||
|
||||
function _fun122693() { // fn#122693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:1585, offset: 0x02571842, size: 61 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
if (env0_9.current < revision) {
|
||||
value2 = environment.__proto__;
|
||||
env1_12(guild.id);
|
||||
}
|
||||
env0_9.current = revision;
|
||||
}
|
||||
|
||||
function _fun122694({item, index}) { // fn#122694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:1656, offset: 0x0257187f, size: 347 bytes, params: 2, frame: 21
|
||||
var r5;
|
||||
var r9;
|
||||
var value;
|
||||
var binding;
|
||||
var property;
|
||||
var value2;
|
||||
var value5;
|
||||
var EmojiRow;
|
||||
var object2;
|
||||
var Text;
|
||||
var section;
|
||||
let type = item.type;
|
||||
if (type === 'SECTION') {
|
||||
value = environment.__proto__;
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
object2 = {'style': null, 'variant': 'text-xs/bold', 'color': 'text-default'};
|
||||
section = styles.section;
|
||||
object2.style = section;
|
||||
section = item.section;
|
||||
return (
|
||||
<Text {...object2}>
|
||||
{section}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
if (type === 'EMOJI') {
|
||||
binding = env0_7;
|
||||
property = binding[index - 1];
|
||||
value2 = undefined;
|
||||
type = property == null ? value2 : property.type;
|
||||
binding = env0_7;
|
||||
property = binding[index + 1];
|
||||
r5 = (property == null ? value2 : property.type) === 'SECTION' || index === env0_7.length - 1;
|
||||
value5 = environment.__proto__;
|
||||
EmojiRow = (require(15906) /* metro dependency 15906: EmojiRow */).EmojiRow;
|
||||
var emojiRowProps = {emoji: item.emoji, guildId: guild.id};
|
||||
r9 = disabled || !item.emoji.available;
|
||||
r9 = !r9 ? !canManageGuildExpression(item.emoji) : r9;
|
||||
emojiRowProps.disabled = r9;
|
||||
emojiRowProps.onSelectRolesForEmoji = onSelectRolesForEmoji;
|
||||
emojiRowProps.start = type === 'SECTION';
|
||||
emojiRowProps.end = r5;
|
||||
return <EmojiRow {...emojiRowProps} />;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun122695() { // fn#122695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:2142, offset: 0x025719da, size: 123 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
const ConnectedHeaderRow = (require(15910) /* metro dependency 15910: HeaderRow */).ConnectedHeaderRow;
|
||||
return (
|
||||
<ConnectedHeaderRow
|
||||
guild={guild}
|
||||
emojisLength={(emojis == null ? value : emojis.length) ?? 0}
|
||||
description={headerDescription}
|
||||
onSelectRolesForEmoji={onSelectRolesForEmoji}
|
||||
uploadDisabled={disabled}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun122696() { // fn#122696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:2361, offset: 0x02571a55, size: 188 bytes, params: 1, frame: 19
|
||||
const EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
|
||||
const object2 = {};
|
||||
const EmptyServerSettingsEmoji = (require(15911) /* metro dependency 15911: EmptyServerSettingsEmoji */).EmptyServerSettingsEmoji;
|
||||
object2.Illustration = EmptyServerSettingsEmoji;
|
||||
object2.style = styles.emptyState;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object2.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.lxsmBd]);
|
||||
string = intl.string;
|
||||
const RBbtMy = (require(1244) /* metro dependency 1244: indexNative */).t.RBbtMy;
|
||||
object2.body = Reflect.apply(string, intl, [RBbtMy]);
|
||||
return <EmptyState {...object2} />;
|
||||
}
|
||||
|
||||
function _fun122701(a0) { // fn#122701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:762, offset: 0x02571d4c, size: 57 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(6545) /* metro dependency 6545: RoleSubscriptionEmojiUtils */;
|
||||
return !value.isRoleSubscriptionEmoji(a0, require.id);
|
||||
}
|
||||
|
||||
function _fun122705() { // fn#122705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:3156, offset: 0x02571f0e, size: 58 bytes, params: 1, frame: 12
|
||||
var binding;
|
||||
if (isLandingScreen && guild !== undefined) {
|
||||
binding = env0_3;
|
||||
binding.setOptions({headerTitle: headerTitle_122706});
|
||||
}
|
||||
}
|
||||
|
||||
function headerTitle_122706() { // fn#122706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16111:3202, offset: 0x02571f48, size: 95 bytes, params: 1, frame: 17
|
||||
const NavigatorHeader = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).NavigatorHeader;
|
||||
return (
|
||||
<View style={styles.titleContainer}>
|
||||
<NavigatorHeader title={guild.name} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,192 @@
|
||||
/* Metro module 15906; source: modules/guild_settings/native/GuildSettingsModalEmoji/EmojiRow.tsx; dependencies: [57, 31, 27, 1867, 33, 4501, 697, 477, 566, 9077, 8629, 3801, 15907, 4559, 4573, 1305, 6238, 3857, 1244, 1423, 4617, 3995, 5278, 15909, 2] */
|
||||
function _fun122733(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16114:6, offset: 0x02572623, size: 611 bytes, params: 8, frame: 28
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = 0;
|
||||
const value2 = undefined;
|
||||
const env0_3 = importDefault(dependencyMap[value]);
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const value3 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value3.View;
|
||||
const env0_6 = value3.Image;
|
||||
const env0_7 = value3.Pressable;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const value4 = 4;
|
||||
const value5 = require(dependencyMap[value4]);
|
||||
const env0_9 = value5.jsx;
|
||||
const env0_10 = value5.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
object2.flex = {flex: 1};
|
||||
object2.flexCenterRow = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const object6 = {'paddingVertical': 4, 'borderRadius': null, 'alignItems': 'center', 'flexDirection': 'row'};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object2.nameContainer = object6;
|
||||
const object7 = {};
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
object7.padding = platformUtilsModule.isAndroid() ? value : value4;
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object7.alignItems = 'center';
|
||||
object7.flexDirection = 'row';
|
||||
object2.activeNameContainer = object7;
|
||||
object2.usernameContainer = {'marginRight': 8, 'maxWidth': 150, 'flexShrink': 1};
|
||||
const object8 = {fontSize: 16};
|
||||
const value8 = platformUtilsModule;
|
||||
object8.padding = value8.isAndroid() ? value : value2;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object8.color = MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.emojiText = object8;
|
||||
object2.colon = {width: value4};
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object2.username = {fontSize: 13, color: TEXT_MUTED};
|
||||
object2.emojiImage = {'width': 30, 'height': 30, 'resizeMode': 'contain'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.overflowIcon = {'paddingLeft': null, 'alignItems': 'center', 'flexDirection': 'row', 'height': '100%',
|
||||
paddingLeft: PX_8};
|
||||
const env0_11 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalEmoji/EmojiRow.tsx');
|
||||
exports.EmojiRow = EmojiRow;
|
||||
return value2;
|
||||
}
|
||||
|
||||
function EmojiRow({guildId, emoji, disabled, start, end, onSelectRolesForEmoji}) { // fn#122734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16114:1026, offset: 0x02572886, size: 1341 bytes, params: 2, frame: 44
|
||||
var object2;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
var r9;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var colon;
|
||||
var items3;
|
||||
disabled = !(disabled === undefined) && disabled;
|
||||
let env0_4 = undefined;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [emoji.name]);
|
||||
const binding2 = undefined;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
env0_4 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value4[0];
|
||||
const env0_5 = value4[1];
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const useManageResourcePermissionsModule = require(9077) /* metro dependency 9077: useManageResourcePermissions */;
|
||||
const useManageResourcePermissions = useManageResourcePermissionsModule.useManageResourcePermissions;
|
||||
const canManageGuildExpression2 = Reflect.apply(useManageResourcePermissions, useManageResourcePermissionsModule,
|
||||
[guild]).canManageGuildExpression(emoji);
|
||||
const value5 = binding.useCallback(_fun122737, [guildId, emoji, onSelectRolesForEmoji]);
|
||||
const value6 = binding.useCallback(_fun122739, [value5]);
|
||||
const value7 = binding.useCallback(_fun122740, [value5]);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
object2 = {};
|
||||
const available = emoji.available;
|
||||
let defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getEmojiURL = defaultImport.getEmojiURL;
|
||||
object2.icon = <Pressable onPress={function() {
|
||||
var defaultImport = importDefault(dependencyMap[17]);
|
||||
var object = {key: 'EMOJI_DISABLED'};
|
||||
object.content = require(dependencyMap[18]).intl.string(require(dependencyMap[18]).t.KUzI73);
|
||||
defaultImport.open(object);
|
||||
}} disabled={available}><Image style={styles.emojiImage} source={{uri: Reflect.apply(getEmojiURL, defaultImport,
|
||||
[{id: emoji.id, animated: emoji.animated, size: 48}])}} /></Pressable>;
|
||||
const defaultImport2 = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
|
||||
const getNickname = defaultImport2.getNickname;
|
||||
let user = emoji.user;
|
||||
const value8 = Reflect.apply(getNickname, defaultImport2, [guildId, undefined, user]);
|
||||
const r17 = value8 != null ? <LegacyText numberOfLines={1} style={styles.username}>{value8}</LegacyText> : null;
|
||||
const defaultImport3 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
const getUserTag = defaultImport3.getUserTag;
|
||||
user = emoji.user;
|
||||
const items2 = [<View style={styles.usernameContainer}>{r17}<LegacyText numberOfLines={1} style={styles.username}>{Reflect.apply(getUserTag,
|
||||
defaultImport3, [user])}</LegacyText></View>];
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
user = emoji.user;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const XSMALL = AvatarSizes.XSMALL;
|
||||
items2[1] = <Avatar user={user} guildId={guildId} size={XSMALL} />;
|
||||
items2[2] = disabled ? null : ((PressableOpacity) => <PressableOpacity style={styles.overflowIcon} onPress={value5} hitSlop={8}>{((Icon) => <Icon source={importDefault(15909) /* metro dependency 15909 */} size={(require(1305) /* metro dependency 1305: native */).IconSizes.REFRESH_SMALL_16} />)((require(1305) /* metro dependency 1305: native */).Icon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity);
|
||||
object2.trailing = <View style={styles.flexCenterRow}>{items2}</View>;
|
||||
if (property2) {
|
||||
if (canManageGuildExpression2) {
|
||||
r9 = <View style={styles.activeNameContainer}>{((TextInput) => <TextInput autoCorrect={false} numberOfLines={1} returnKeyType="done" autoCapitalize="none" autoFocus onBlur={onBlur_122736} style={[styles.emojiText,
|
||||
|
||||
|
||||
styles.flex]} onChangeText={onChangeText} value={property} />)((require(1305) /* metro dependency 1305: native */).TextInput)}</View>;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.nameContainer};
|
||||
colon = styles.colon;
|
||||
value = <Text style={colon} variant="text-md/medium" color="text-muted">{':'}</Text>;
|
||||
items3 = [value];
|
||||
items3[1] = <Text lineClamp={1} style={styles.emojiText} variant="text-md/medium" color="mobile-text-heading-primary">{property}</Text>;
|
||||
colon = styles.colon;
|
||||
items3[2] = <Text style={colon} variant="text-md/medium" color="text-muted">{':'}</Text>;
|
||||
value = <View {...viewBindingProps}>{items3}</View>;
|
||||
r9 = value;
|
||||
}
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.nameContainer};
|
||||
colon = styles.colon;
|
||||
value = <Text style={colon} variant="text-md/medium" color="text-muted">{':'}</Text>;
|
||||
items3 = [value];
|
||||
items3[1] = <Text lineClamp={1} style={styles.emojiText} variant="text-md/medium" color="mobile-text-heading-primary">{property}</Text>;
|
||||
colon = styles.colon;
|
||||
items3[2] = <Text style={colon} variant="text-md/medium" color="text-muted">{':'}</Text>;
|
||||
value = <View {...viewBindingProps}>{items3}</View>;
|
||||
r9 = value;
|
||||
}
|
||||
object2.label = r9;
|
||||
object2.disabled = disabled;
|
||||
object2.onPress = value6;
|
||||
object2.onLongPress = value7;
|
||||
object2.start = start;
|
||||
object2.end = end;
|
||||
return <TableRow {...object2} />;
|
||||
}
|
||||
|
||||
function EmojiRowOnBlur() { // fn#122736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16114:1356, owner: EmojiRow.onBlur, offset: 0x02572dc3, size: 130 bytes, params: 1, frame: 16
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var updateEmoji;
|
||||
var object2;
|
||||
if (env0_3 !== emoji.name) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(8629) /* metro dependency 8629: EmojiActionCreators */;
|
||||
updateEmoji = moduleValue.updateEmoji;
|
||||
object2 = {};
|
||||
object2.guildId = guildId;
|
||||
object2.emojiId = emoji.id;
|
||||
object2.name = (importDefault(3801) /* metro dependency 3801: EmojiUtils */).sanitizeEmojiName(env0_3);
|
||||
Reflect.apply(updateEmoji, moduleValue, [object2]);
|
||||
}
|
||||
env0_5(false);
|
||||
}
|
||||
|
||||
function _fun122737() { // fn#122737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16114:1479, offset: 0x02572e45, size: 77 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(15907) /* metro dependency 15907: showEmojiOverflowActionSheet */)({guildId: guildId, emoji: emoji,
|
||||
onEdit: onEdit_122738, onSelectRolesForEmoji: onSelectRolesForEmoji});
|
||||
}
|
||||
|
||||
function _fun122739() { // fn#122739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16114:1585, offset: 0x02572e92, size: 64 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */;
|
||||
value = value.getIsScreenReaderEnabled();
|
||||
if (value) {
|
||||
env0_6();
|
||||
} else {
|
||||
env0_5(true);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun122740() { // fn#122740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16114:1660, offset: 0x02572ed2, size: 15 bytes, params: 1, frame: 9
|
||||
env0_6();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,456 @@
|
||||
/* Metro module 15910; source: modules/guild_settings/native/GuildSettingsModalEmoji/HeaderRow.tsx; dependencies: [5, 57, 31, 27, 15904, 661, 1881, 33, 4501, 697, 9077, 8629, 683, 1244, 491, 4660, 4578, 4573, 566, 2] */
|
||||
function _fun122753(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:6, offset: 0x02573705, size: 513 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.FlatList;
|
||||
const guildSettingsEmojiStore = importDefault(15904) /* metro dependency 15904: GuildSettingsEmojiStore */;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = value.AbortCodes;
|
||||
const env0_10 = value.AnalyticEvents;
|
||||
const env0_11 = value.UPLOAD_SMALL_SIZE;
|
||||
const env0_12 = (require(1881) /* metro dependency 1881: EmojiConstants */).EMOJI_MAX_FILESIZE_KB;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsxs;
|
||||
const env0_14 = value.jsx;
|
||||
const env0_15 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.uploadInstructionsContainer = {marginTop: PX_12};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.uploadInstructionsHeading = {marginVertical: PX_12};
|
||||
object2.uploadInstructionsList = {marginLeft: 8};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.headerContainer = {paddingTop: PX_16};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.errorText = {marginTop: PX_8};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.uploadListItem = {paddingRight: PX_8};
|
||||
const env0_16 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalEmoji/HeaderRow.tsx');
|
||||
exports.ConnectedHeaderRow = ConnectedHeaderRow;
|
||||
}
|
||||
|
||||
function HeaderRow({isUploading, guild, emojisLength, description, onSelectRolesForEmoji, uploadDisabled}) { // fn#122754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:632, offset: 0x02573906, size: 1055 bytes, params: 2, frame: 33
|
||||
var r9;
|
||||
var Button;
|
||||
uploadDisabled = !(uploadDisabled === undefined) && uploadDisabled;
|
||||
var env0_4Binding = undefined;
|
||||
const styles = useStyles();
|
||||
var [property, env0_4] = env0_4Binding(undefined.useState(false), 2);
|
||||
const value5 = env0_4Binding(undefined.useState(null), 2);
|
||||
const property2 = value5[0];
|
||||
const [env0_6, env0_7] = env0_4Binding(value5[1].useState(''), 2);
|
||||
const useManageResourcePermissionsModule = require(9077) /* metro dependency 9077: useManageResourcePermissions */;
|
||||
const useManageResourcePermissions = useManageResourcePermissionsModule.useManageResourcePermissions;
|
||||
const canCreateExpressions = Reflect.apply(useManageResourcePermissions, useManageResourcePermissionsModule,
|
||||
[guild]).canCreateExpressions;
|
||||
const value8 = _fun122755();
|
||||
const closure = function(a0, a1) {
|
||||
return {id: 'GUILD_SETTINGS_EMOJI_UPLOAD_REQUIREMENTS_' + a1, text: a0};
|
||||
};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const N2qTQ3 = (require(1244) /* metro dependency 1244: indexNative */).t.N2qTQ3;
|
||||
const items2 = [closure(Reflect.apply(string, intl, [N2qTQ3]), 1)];
|
||||
items2[1] = closure(intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.gfAXoR,
|
||||
{maxSize: EMOJI_MAX_FILESIZE_KB}), 2);
|
||||
items2[2] = closure(intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rnwKPH), 3);
|
||||
items2[3] = closure(intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8Vr5Qd']), 4);
|
||||
const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15;
|
||||
if (canCreateExpressions) {
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
r9 = <Button size="sm" loading={property || isUploading} onPress={value8} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['DU0dy/'])} disabled={uploadDisabled} />;
|
||||
} else {
|
||||
r9 = canCreateExpressions;
|
||||
}
|
||||
const r8 = property2 != null && <Text style={styles.errorText} variant="text-sm/medium" color="text-feedback-critical">{property2}</Text>;
|
||||
var Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items3 = [<Text variant="text-sm/medium" color="text-muted">{description}</Text>];
|
||||
items3[1] = <Text variant="text-xs/bold" color="text-muted" style={styles.uploadInstructionsHeading}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jrXfyw).toUpperCase()}</Text>;
|
||||
items3[2] = <FlatList style={styles.uploadInstructionsList} data={items2} keyExtractor={function(a0) {
|
||||
return a0.id;
|
||||
}} renderItem={renderItem_122764} />;
|
||||
return (
|
||||
<>
|
||||
<View style={styles.headerContainer}>
|
||||
{r9}
|
||||
{r8}
|
||||
<View style={styles.uploadInstructionsContainer}>
|
||||
{items3}
|
||||
</View>
|
||||
</View>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function ConnectedHeaderRow(a0) { // fn#122765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:3222, offset: 0x025741a7, size: 127 bytes, params: 2, frame: 18
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
|
||||
throw undefined;
|
||||
}
|
||||
return (
|
||||
<HeaderRow
|
||||
isUploading={(require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsEmojiStore],
|
||||
function() {
|
||||
return GuildSettingsEmojiStore.isUploadingEmoji();
|
||||
})}
|
||||
{...copyDataProperties({}, a0, undefined, undefined)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun122755() { // fn#122755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:947, offset: 0x02573d25, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun122757);
|
||||
return _fun122761;
|
||||
}
|
||||
|
||||
function HeaderRowRenderItem({item}) { // fn#122764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:2937, owner: HeaderRow.renderItem, offset: 0x02574134, size: 115 bytes, params: 2, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
style={styles.uploadListItem}
|
||||
variant="text-xs/medium"
|
||||
color="text-muted"
|
||||
accessibilityLabel={item.text}
|
||||
>
|
||||
{'•'}
|
||||
{' '}
|
||||
{item.text}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function* _fun122757() { // fn#122757, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:967, offset: 0x02573d54, size: 323 bytes, params: 1, frame: 24
|
||||
var r3;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var track;
|
||||
var binding3;
|
||||
var EMOJI_UPLOAD_STARTED;
|
||||
var object2;
|
||||
var id;
|
||||
var value7;
|
||||
var openImagePicker;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var base64;
|
||||
var originalMd5;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var value15;
|
||||
var closure;
|
||||
var error;
|
||||
let value = undefined;
|
||||
if (true) {
|
||||
value = undefined;
|
||||
env2_4(true);
|
||||
env2_5(null);
|
||||
var binding = env3_0;
|
||||
var value5 = binding(env3_2[14]);
|
||||
FlatList(value5.v4());
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[12];
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
track = value6.track;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_10;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
EMOJI_UPLOAD_STARTED = binding3.EMOJI_UPLOAD_STARTED;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
id = require.id;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.guild_id = id;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.upload_id = View;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(track, value6, [EMOJI_UPLOAD_STARTED, object2]);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[15];
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
openImagePicker = value7.openImagePicker;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env3_11;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.size = binding;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(openImagePicker, value7, [object2]);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
yield value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
if (value10) {
|
||||
env2_4(false);
|
||||
return value9;
|
||||
}
|
||||
try {
|
||||
base64 = value9.base64;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
originalMd5 = value9.originalMd5;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value11 = base64 == null;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
if (value11) {
|
||||
env2_4(false);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value12 = dependencyMap == null;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
if (value12) {
|
||||
r3 = value;
|
||||
} else {
|
||||
try {
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value13 = dependencyMap();
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
r3 = value13;
|
||||
}
|
||||
yield r3;
|
||||
try {
|
||||
value14 = undefined;
|
||||
value15 = false;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
if (value15) {
|
||||
env2_4(false);
|
||||
return value14;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
closure = _fun122758;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
closure(base64, originalMd5, value14);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
throw error;
|
||||
}
|
||||
env2_4(false);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun122758(a0, a1, a2) { // fn#122758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:1167, offset: 0x02573e97, size: 160 bytes, params: 4, frame: 16
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
value = Reflect.apply(env4_0(env4_2[11]).uploadEmoji, value, [{guildId: require.id, image: a0,
|
||||
name: 'emoji_' + (importDefault + 1), roles: a2, originalMd5: a1}]);
|
||||
value = value.then(_fun122759);
|
||||
value.catch(_fun122760);
|
||||
}
|
||||
|
||||
function _fun122759() { // fn#122759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:1270, offset: 0x02573f37, size: 75 bytes, params: 1, frame: 15
|
||||
const value2 = env5_1(env5_2[12]);
|
||||
const track = value2.track;
|
||||
const EMOJI_UPLOAD_COMPLETED = env5_10.EMOJI_UPLOAD_COMPLETED;
|
||||
return Reflect.apply(track, value2, [EMOJI_UPLOAD_COMPLETED, {guild_id: require.id, upload_id: View}]);
|
||||
}
|
||||
|
||||
function _fun122760({body}) { // fn#122760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:1352, offset: 0x02573f82, size: 392 bytes, params: 2, frame: 23
|
||||
var r3;
|
||||
var r2;
|
||||
var code;
|
||||
var value2;
|
||||
var binding;
|
||||
var binding2;
|
||||
var value3;
|
||||
var track;
|
||||
var EMOJI_UPLOAD_FILE_SIZE_LIMIT_EXCEEDED;
|
||||
var object2;
|
||||
var value4;
|
||||
var intl;
|
||||
var binding3;
|
||||
var binding4;
|
||||
var value9;
|
||||
if (body != null) {
|
||||
code = body.code;
|
||||
value2 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
if (code === env5_9.TOO_MANY_EMOJI) {
|
||||
binding = env5_0;
|
||||
binding4 = env5_2;
|
||||
intl = binding(binding4[13]).intl;
|
||||
r3 = intl.string(binding(binding4[13]).t['jP/Rqm']);
|
||||
} else if (body.code === env5_9.TOO_MANY_ANIMATED_EMOJI) {
|
||||
binding = env5_0;
|
||||
binding3 = env5_2;
|
||||
intl = binding(binding3[13]).intl;
|
||||
r3 = intl.string(binding(binding3[13]).t['6v5dP/']);
|
||||
} else if (body.image != null) {
|
||||
binding = env5_1;
|
||||
binding2 = env5_2;
|
||||
value3 = binding(binding2[12]);
|
||||
track = value3.track;
|
||||
EMOJI_UPLOAD_FILE_SIZE_LIMIT_EXCEEDED = env5_10.EMOJI_UPLOAD_FILE_SIZE_LIMIT_EXCEEDED;
|
||||
object2 = {};
|
||||
value4 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
object2.guild_id = require.id;
|
||||
object2.file_size = global.Buffer.byteLength(env0_0);
|
||||
object2.upload_id = View;
|
||||
Reflect.apply(track, value3, [EMOJI_UPLOAD_FILE_SIZE_LIMIT_EXCEEDED, object2]);
|
||||
binding = env5_0;
|
||||
intl = binding(binding2[13]).intl;
|
||||
r3 = intl.formatToPlainString(binding(binding2[13]).t.kIO9jy, {maxSize: env5_12});
|
||||
} else {
|
||||
r3 = undefined;
|
||||
}
|
||||
r2 = r3;
|
||||
} else {
|
||||
r2 = undefined;
|
||||
}
|
||||
if (r2 != null) {
|
||||
value9 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
env4_5(r2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,300 @@
|
||||
/* Metro module 15983; source: modules/guild_settings/native/GuildSettingsModalInstantInvites.tsx; dependencies: [57, 31, 27, 10906, 8150, 1379, 1867, 9113, 661, 33, 4501, 1244, 1948, 8950, 6766, 6242, 8947, 11838, 566, 22, 8277, 8275, 4080, 11445, 1962, 3857, 12132, 5460, 1305, 15984, 5462, 2] */
|
||||
function _fun123633(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:6, offset: 0x02595bda, size: 462 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = InvitesDisabledRow;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
value.Platform;
|
||||
const env0_5 = value.FlatList;
|
||||
const guildIncidentsStore = importDefault(10906) /* metro dependency 10906: GuildIncidentsStore */;
|
||||
value = importDefault(8150) /* metro dependency 8150: InviteRecord */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_10 = constantsModule.GuildFeatures;
|
||||
const env0_11 = constantsModule.HelpdeskArticles;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value3.jsx;
|
||||
const env0_13 = value3.Fragment;
|
||||
const env0_14 = value3.jsxs;
|
||||
const env0_15 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({list: {paddingTop: 8},
|
||||
content: {'padding': 16, 'gap': 24}, listWithPause: {paddingTop: 0}});
|
||||
value = new value({code: 'pause_invites'});
|
||||
const env0_18 = {};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalInstantInvites.tsx');
|
||||
exports.default = ConnectedGuildSettingsModalInstantInvites;
|
||||
exports.InvitesDisabledRow = closure;
|
||||
}
|
||||
|
||||
function InvitesDisabledRow({onPauseInvites, invitesDisabled}) { // fn#123634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:438, offset: 0x02595da8, size: 390 bytes, params: 2, frame: 24
|
||||
var r9;
|
||||
var format;
|
||||
var IFBHag;
|
||||
var defaultImport;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Uwsjn6 = (require(1244) /* metro dependency 1244: indexNative */).t.Uwsjn6;
|
||||
const value2 = Reflect.apply(string, intl, [Uwsjn6]);
|
||||
if (invitesDisabled) {
|
||||
r9 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2LLbj9']);
|
||||
} else {
|
||||
format = intl.format;
|
||||
IFBHag = (require(1244) /* metro dependency 1244: indexNative */).t.IFBHag;
|
||||
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
r9 = Reflect.apply(format, intl, [IFBHag,
|
||||
{helpArticleUrl: defaultImport.getArticleURL(HelpdeskArticles.INVITE_DISABLED)}]);
|
||||
}
|
||||
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
return (
|
||||
<TableCheckboxRow
|
||||
label={value2}
|
||||
subLabel={<TextWithIOSLinkWorkaround variant="text-xs/medium">{r9}</TextWithIOSLinkWorkaround>}
|
||||
icon={invitesDisabled ? ((TableRowIcon) => <TableRowIcon source={importDefault(8947) /* metro dependency 8947 */} />)((require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon) : null}
|
||||
checked={invitesDisabled}
|
||||
onPress={onPauseInvites}
|
||||
start
|
||||
end
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildSettingsModalInstantInvites({invites, guild, showChannel, contentContainerStyle}) { // fn#123635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:918, offset: 0x02595f2e, size: 1031 bytes, params: 2, frame: 28
|
||||
var invitesDisabledUntil;
|
||||
var r2;
|
||||
var r10;
|
||||
var r0;
|
||||
var value6;
|
||||
var Date;
|
||||
var prototype;
|
||||
var value7;
|
||||
var date;
|
||||
var value8;
|
||||
var value9;
|
||||
var jsxRuntimeEnv0_13Binding;
|
||||
var items3;
|
||||
var EmptyState;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
showChannel = !(showChannel === undefined) && showChannel;
|
||||
const styles = useStyles();
|
||||
const value4 = (require(11838) /* metro dependency 11838: GuildInvitesDisabledUtils */).useInvitesDisabledPermission(guild);
|
||||
const env0_3 = value4;
|
||||
const guildIncident = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildIncidentsStore],
|
||||
function() {
|
||||
return GuildIncidentsStore.getGuildIncident(guild.id);
|
||||
});
|
||||
const env0_4 = guildIncident;
|
||||
const features = guild.features;
|
||||
const has = features.has;
|
||||
const INVITES_DISABLED = GuildFeatures.INVITES_DISABLED;
|
||||
const value5 = Reflect.apply(has, features, [INVITES_DISABLED]);
|
||||
if (value5) {
|
||||
r10 = value5;
|
||||
} else {
|
||||
invitesDisabledUntil = guildIncident?.invitesDisabledUntil;
|
||||
value6 = invitesDisabledUntil != null;
|
||||
if (value6) {
|
||||
Date = global.Date;
|
||||
invitesDisabledUntil = guildIncident.invitesDisabledUntil;
|
||||
prototype = Date.prototype;
|
||||
value7 = Object.create(prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
value8 = date instanceof Object ? date : value7;
|
||||
Date = global.Date;
|
||||
prototype = Date.prototype;
|
||||
value9 = Object.create(prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
r2 = value8 > (date instanceof Object ? date : value9);
|
||||
} else {
|
||||
r2 = value6;
|
||||
}
|
||||
r10 = r2;
|
||||
}
|
||||
let binding = env0_4;
|
||||
const [property, env0_7] = env0_3(binding.useState(false), 2);
|
||||
const [property2, env0_8] = env0_3(env0_4.useState(21), 2);
|
||||
const value18 = env0_4.useMemo(_fun123640, [env0_4.useMemo(_fun123637, [invites, value4, showChannel]),
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ChannelStore], function() {
|
||||
return ChannelStore.getSortedLinkedChannelsForGuild(guild.id);
|
||||
})]);
|
||||
env0_4.useEffect(_fun123643, []);
|
||||
binding = env0_4;
|
||||
let useCallback = binding.useCallback;
|
||||
const value19 = Reflect.apply(useCallback, binding, [function(a0) {
|
||||
return a0.type === 'invite' ? a0.data.code : a0.data.id;
|
||||
}, []]);
|
||||
const value20 = env0_4.useCallback(_fun123645, [property, guildIncident, guild]);
|
||||
binding = env0_4;
|
||||
useCallback = binding.useCallback;
|
||||
if (invites == null) {
|
||||
const SceneLoadingIndicator = (require(5460) /* metro dependency 5460: SceneLoadingIndicatorNative */).SceneLoadingIndicator;
|
||||
r0 = <SceneLoadingIndicator />;
|
||||
} else if (value18.length === 0) {
|
||||
jsxRuntimeEnv0_13Binding = jsxRuntimeEnv0_13;
|
||||
items3 = [<InvitesDisabledRow onPauseInvites={value20} invitesDisabled={r10} invitesDisabledLoading={property} />];
|
||||
EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
|
||||
items3[1] = <EmptyState Illustration={(require(15984) /* metro dependency 15984: InviteEmpty */).InviteEmpty} title={intl.string(t['+nLJkZ'])} body={intl.string(t.F53CAc)} />;
|
||||
r0 = <>{items3}</>;
|
||||
} else {
|
||||
r0 = <FlatList style={[value4 ? styles.listWithPause : styles.list]} data={value18} keyExtractor={value19} renderItem={Reflect.apply(useCallback,
|
||||
|
||||
binding, [_fun123646, [r10, value20,
|
||||
property]])} initialNumToRender={10} windowSize={property2} contentContainerStyle={[contentContainerStyle,
|
||||
styles.content]} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function ConnectedGuildSettingsModalInstantInvites({guildId, contentContainerStyle}) { // fn#123647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:3055, offset: 0x0259668e, size: 232 bytes, params: 2, frame: 21
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
return guild != null ? <><GuildSettingsModalInstantInvites guild={guild} invites={(require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsStore],
|
||||
_fun123649)} contentContainerStyle={contentContainerStyle} showChannel />{((NavScrim) => <NavScrim />)((require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim)}</> : null;
|
||||
}
|
||||
|
||||
function _fun123637() { // fn#123637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:1361, offset: 0x02596355, size: 77 bytes, params: 1, frame: 15
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
const value3 = defaultImport.sortBy(invites, _fun123638);
|
||||
if (env0_3) {
|
||||
value3.unshift(env1_17);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun123640() { // fn#123640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:1680, offset: 0x0259642d, size: 69 bytes, params: 1, frame: 15
|
||||
let binding = env0_9;
|
||||
const value2 = binding.map(function(a0) {
|
||||
return {type: 'invite', data: a0};
|
||||
});
|
||||
const items2 = [];
|
||||
const value3 = arraySpread(items2, value2, 0, binding);
|
||||
binding = env0_10;
|
||||
arraySpread(items2, binding.map(function(a0) {
|
||||
return {type: 'channel', data: a0};
|
||||
}), value3, binding);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun123643() { // fn#123643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:1788, offset: 0x02596472, size: 19 bytes, params: 1, frame: 11
|
||||
env0_8(21);
|
||||
}
|
||||
|
||||
function _fun123645() { // fn#123645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:1891, offset: 0x025964ad, size: 286 bytes, params: 1, frame: 19
|
||||
var object2;
|
||||
var value2;
|
||||
var property;
|
||||
var moduleValue;
|
||||
var GuildIncidentActionSources;
|
||||
var MESSAGE;
|
||||
var moduleValue2;
|
||||
var incidentAlertType;
|
||||
var defaultImport;
|
||||
var openLazy;
|
||||
var moduleValue3;
|
||||
var paths;
|
||||
var value4;
|
||||
var error;
|
||||
var value5;
|
||||
var defaultImport2;
|
||||
var open;
|
||||
var defaultImport3;
|
||||
var message;
|
||||
if (!env0_6) {
|
||||
env0_7(true);
|
||||
try {
|
||||
try {
|
||||
object2 = {};
|
||||
value2 = environment.__proto__;
|
||||
property = dependencyMap[20];
|
||||
moduleValue = require(property);
|
||||
GuildIncidentActionSources = moduleValue.GuildIncidentActionSources;
|
||||
MESSAGE = GuildIncidentActionSources.MESSAGE;
|
||||
object2.source = MESSAGE;
|
||||
property = dependencyMap[21];
|
||||
moduleValue2 = require(property);
|
||||
incidentAlertType = moduleValue2.getIncidentAlertType(guildIncident);
|
||||
object2.alertType = incidentAlertType;
|
||||
property = dependencyMap[22];
|
||||
defaultImport = importDefault(property);
|
||||
openLazy = defaultImport.openLazy;
|
||||
property = dependencyMap[24];
|
||||
moduleValue3 = require(property);
|
||||
property = dependencyMap[23];
|
||||
paths = dependencyMap.paths;
|
||||
value4 = moduleValue3(property, paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value4, 'GuildIncidentActionsActionSheet', {guild: guild,
|
||||
analyticsData: object2}]);
|
||||
} catch (error) {
|
||||
value5 = environment.__proto__;
|
||||
property = dependencyMap[25];
|
||||
defaultImport2 = importDefault(property);
|
||||
open = defaultImport2.open;
|
||||
property = dependencyMap[16];
|
||||
defaultImport3 = importDefault(property);
|
||||
message = error.message;
|
||||
Reflect.apply(open, defaultImport2, [{key: 'GUILD_SETTINGS_MODAL_INVITE_ERROR', icon: defaultImport3,
|
||||
content: message}]);
|
||||
}
|
||||
} catch (error) {
|
||||
env0_7(false);
|
||||
throw error;
|
||||
}
|
||||
env0_7(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun123646({item}) { // fn#123646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:2260, offset: 0x025965cb, size: 195 bytes, params: 2, frame: 16
|
||||
var r1;
|
||||
var r0;
|
||||
var value;
|
||||
var code;
|
||||
if (item.type === 'invite') {
|
||||
code = item.data.code;
|
||||
value = environment.__proto__;
|
||||
if (code === env1_16) {
|
||||
r1 = <InvitesDisabledRow invitesDisabled={env0_5} invitesDisabledLoading={env0_6} onPauseInvites={env0_11} />;
|
||||
} else {
|
||||
value = importDefault(12132) /* metro dependency 12132: InstantInvite */;
|
||||
value = ((Component) => <Component invite={item.data} />)(value);
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
const LinkedChannelInvite = (require(12132) /* metro dependency 12132: InstantInvite */).LinkedChannelInvite;
|
||||
value = <LinkedChannelInvite channel={item.data} />;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun123649() { // fn#123649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:3237, offset: 0x02596776, size: 35 bytes, params: 1, frame: 10
|
||||
const getProps = GuildSettingsStore.getProps;
|
||||
return Reflect.apply(getProps, GuildSettingsStore, []).invites ?? env1_18;
|
||||
}
|
||||
|
||||
function _fun123638(a0) { // fn#123638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16191:1391, offset: 0x025963a2, size: 107 bytes, params: 2, frame: 13
|
||||
var r2;
|
||||
var r0;
|
||||
var inviter;
|
||||
var channel;
|
||||
let value = environment.__proto__;
|
||||
if (showChannel) {
|
||||
channel = a0.channel;
|
||||
r0 = channel == null ? undefined : channel.name.toLowerCase();
|
||||
} else {
|
||||
inviter = a0.inviter;
|
||||
value = undefined;
|
||||
r2 = inviter == null || inviter.username == null ? value : inviter.username.toLowerCase();
|
||||
value = '';
|
||||
r0 = r2 ?? value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,336 @@
|
||||
/* Metro module 15859; source: modules/guild_settings/native/GuildSettingsModalLanding.tsx; dependencies: [31, 1935, 1867, 3784, 1878, 15860, 9113, 661, 33, 4863, 4501, 6238, 1244, 4068, 15861, 8931, 3789, 15863, 13467, 7950, 10976, 10315, 9097, 15865, 4056, 6231, 13142, 6699, 9409, 3860, 697, 1484, 566, 9112, 15866, 6850, 6858, 3856, 7972, 4572, 15211, 1423, 15867, 5462, 2] */
|
||||
function _fun122020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:6, offset: 0x0255776e, size: 432 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const trackPaneViewed = function(a0, a1) {
|
||||
var defaultImport = importDefault(dependencyMap[9]);
|
||||
var SETTINGS_PANE_VIEWED = AnalyticEvents.SETTINGS_PANE_VIEWED;
|
||||
defaultImport.trackWithMetadata(SETTINGS_PANE_VIEWED, {settings_type: 'guild', origin_pane: a1,
|
||||
destination_pane: a0});
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const guildSettingsModalChannelsStore = importDefault(15860) /* metro dependency 15860: GuildSettingsModalChannelsStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = value.GuildFeatures;
|
||||
const env0_12 = value.GuildSettingsSections;
|
||||
const env0_13 = value.ChannelTypes;
|
||||
const env0_14 = value.AnalyticEvents;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_15 = value.jsx;
|
||||
const env0_16 = value.jsxs;
|
||||
const env0_17 = value.Fragment;
|
||||
const pushRow = function(a0, a1) {
|
||||
a1.push(a0);
|
||||
};
|
||||
const env0_19 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {flex: 1},
|
||||
containerContent: {paddingTop: 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalLanding.tsx');
|
||||
exports.default = GuildSettingsModalLanding;
|
||||
}
|
||||
|
||||
function SettingsSection({guild, isGuildAdmin, canManageGuild, canManageGuildExpressions, canManageChannels, canViewAuditLog, canManageWebhooks, canUnlinkChannelLobbies, canConfigureOfficialMessages, categories, pushScreen}) { // fn#122022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:543, offset: 0x0255796a, size: 2077 bytes, params: 2, frame: 38
|
||||
var pushRowBinding;
|
||||
var object11;
|
||||
var object13;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
let object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object.label = Reflect.apply(string, intl, [t['/dp6yY']]);
|
||||
object.arrow = true;
|
||||
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
let Icon = TableRow2.Icon;
|
||||
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
|
||||
object.icon = <Icon IconComponent={CircleInformationIcon} />;
|
||||
object.onPress = function() {
|
||||
return pushScreen(GuildSettingsSections.OVERVIEW);
|
||||
};
|
||||
object = [<TableRow {...object} key="overview" />];
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
if (canManageGuild) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5tbTdV'])} arrow icon={((Icon) => <Icon IconComponent={(require(15861) /* metro dependency 15861: ModerationIcon */).ModerationIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.MODERATION);
|
||||
}} key="moderation" />, object);
|
||||
}
|
||||
if (canViewAuditLog) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.SPWLyT)} arrow icon={((Icon) => <Icon IconComponent={(require(8931) /* metro dependency 8931: ClipboardListIcon */).ClipboardListIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.AUDIT_LOG);
|
||||
}} key="auditlogs" />, object);
|
||||
}
|
||||
if (canManageChannels || currentUser != null && (importAll(3789) /* metro dependency 3789: PermissionUtils */).canManageACategory(currentUser,
|
||||
guild, categories)) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OGiMXJ)} arrow icon={((Icon) => <Icon IconComponent={(require(15863) /* metro dependency 15863: ChannelListIcon */).ChannelListIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
GuildSettingsModalChannelsStore.initGuild(guild.id);
|
||||
pushScreen(GuildSettingsSections.CHANNELS);
|
||||
}} key="channels" />, object);
|
||||
}
|
||||
let r12 = canManageGuild || canManageWebhooks;
|
||||
r12 = !r12 ? canUnlinkChannelLobbies : r12;
|
||||
if (r12) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CIsNZw)} arrow icon={((Icon) => <Icon IconComponent={(require(13467) /* metro dependency 13467: PuzzlePieceIcon */).PuzzlePieceIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.INTEGRATIONS);
|
||||
}} key="integrations" />, object);
|
||||
}
|
||||
if (canManageGuildExpressions) {
|
||||
pushRowBinding = pushRow;
|
||||
var tableRowProps = {label: intl.string(t.sMOuuS), arrow: true};
|
||||
Icon = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon;
|
||||
tableRowProps.icon = <Icon IconComponent={(require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon} />;
|
||||
tableRowProps.onPress = function() {
|
||||
return pushScreen(GuildSettingsSections.EMOJI);
|
||||
};
|
||||
pushRowBinding(<TableRow {...tableRowProps} key="emoji" />, object);
|
||||
pushRowBinding = pushRow;
|
||||
var tableRowProps2 = {label: intl.string(t.R5nQkS), arrow: true};
|
||||
Icon = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon;
|
||||
tableRowProps2.icon = <Icon IconComponent={(require(10976) /* metro dependency 10976: StickerIcon */).StickerIcon} />;
|
||||
tableRowProps2.onPress = onPress_122029;
|
||||
pushRowBinding(<TableRow {...tableRowProps2} key="stickers" />, object);
|
||||
}
|
||||
if (canConfigureOfficialMessages) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xHEzFh)} arrow icon={((Icon) => <Icon IconComponent={(require(10315) /* metro dependency 10315: StampIcon */).StampIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.OFFICIAL_MESSAGES);
|
||||
}} key="official-messages" />, object);
|
||||
}
|
||||
if (canManageGuild) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Am9YHi)} arrow icon={((Icon) => <Icon IconComponent={(require(9097) /* metro dependency 9097: ShieldUserIcon */).ShieldUserIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.SECURITY);
|
||||
}} key="security" />, object);
|
||||
}
|
||||
if (isGuildAdmin && (require(15865) /* metro dependency 15865: GuildSettingsVanityURLUtils */).canSeeVanityUrlSettings(guild)) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5XZKy/'])} arrow icon={((Icon) => <Icon IconComponent={(require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.VANITY_URL);
|
||||
}} key="vanity" />, object);
|
||||
}
|
||||
if (object.length === 0) {
|
||||
return null;
|
||||
} else {
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<TableRowGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3D5yo/'])} hasIcons>
|
||||
{object}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function CommunitySection({guild, pushScreen}) { // fn#122033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:3062, offset: 0x025582c3, size: 427 bytes, params: 2, frame: 30
|
||||
var tableRow;
|
||||
const features = guild.features;
|
||||
const has = features.has;
|
||||
let COMMUNITY = GuildFeatures.COMMUNITY;
|
||||
const value2 = Reflect.apply(has, features, [COMMUNITY]);
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const object3 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object3.title = Reflect.apply(string, intl, [t['1g9A/f']]);
|
||||
object3.hasIcons = true;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object4 = {};
|
||||
string = intl.string;
|
||||
if (value2) {
|
||||
object4.label = Reflect.apply(string, intl, [t.nRtNqn]);
|
||||
object4.arrow = true;
|
||||
object4.icon = ((Icon) => <Icon IconComponent={(require(13142) /* metro dependency 13142: TreehouseIcon */).TreehouseIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon);
|
||||
object4.onPress = function() {
|
||||
var pushScreenBinding = pushScreen;
|
||||
var COMMUNITY = GuildSettingsSections.COMMUNITY;
|
||||
return pushScreenBinding(COMMUNITY, {});
|
||||
};
|
||||
tableRow = <TableRow {...object4} key="community-overview" />;
|
||||
} else {
|
||||
object4.label = Reflect.apply(string, intl, [t.ElKTeb]);
|
||||
object4.arrow = true;
|
||||
object4.icon = ((Icon) => <Icon IconComponent={(require(13142) /* metro dependency 13142: TreehouseIcon */).TreehouseIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon);
|
||||
object4.onPress = onPress_122035;
|
||||
tableRow = <TableRow {...object4} key="community-intro" />;
|
||||
}
|
||||
return (
|
||||
<TableRowGroup {...object3}>
|
||||
{tableRow}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function UserManagementSection({canManageGuild, canManageRoles, canManageBans, pushScreen}) { // fn#122036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:3654, offset: 0x025584ae, size: 862 bytes, params: 2, frame: 29
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
let object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9Oq93m']);
|
||||
object.arrow = true;
|
||||
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const Icon = TableRow2.Icon;
|
||||
const GroupIcon = (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
|
||||
object.icon = <Icon IconComponent={GroupIcon} />;
|
||||
object.onPress = function() {
|
||||
return pushScreen(GuildSettingsSections.MEMBERS);
|
||||
};
|
||||
object = [<TableRow {...object} key="members" />];
|
||||
if (canManageRoles) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['LPJmL/'])} arrow icon={((Icon) => <Icon IconComponent={(require(9097) /* metro dependency 9097: ShieldUserIcon */).ShieldUserIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.ROLES);
|
||||
}} key="roles" />, object);
|
||||
}
|
||||
if (canManageGuild) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ngRFjZ)} arrow icon={((Icon) => <Icon IconComponent={(require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.INSTANT_INVITES);
|
||||
}} key="invites" />, object);
|
||||
}
|
||||
if (canManageBans) {
|
||||
pushRow(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ZbeITS)} arrow icon={((Icon) => <Icon IconComponent={(require(9409) /* metro dependency 9409: HammerIcon */).HammerIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} onPress={function() {
|
||||
return pushScreen(GuildSettingsSections.BANS);
|
||||
}} key="bans" />, object);
|
||||
}
|
||||
if (object.length === 0) {
|
||||
return null;
|
||||
} else {
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<TableRowGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+OecxG'])} hasIcons>
|
||||
{object}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function GuildSettingsModalLandingInner({guild, contentContainerStyle, updateErrors}) { // fn#122041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:4651, offset: 0x02558880, size: 998 bytes, params: 2, frame: 41
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const value2 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
|
||||
const styles = useStyles();
|
||||
let value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
let value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildChannelStore], function() {
|
||||
var property = GuildChannelStore.getChannels;
|
||||
var guildBinding = guild;
|
||||
var value3 = undefined;
|
||||
var value4 = Reflect.apply(property, GuildChannelStore, [guildBinding == null ? value3 : guild.id]);
|
||||
return value4 == null ? value3 : value4[ChannelTypes.GUILD_CATEGORY];
|
||||
});
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PermissionStore],
|
||||
function() {
|
||||
return PermissionStore.getGuildPermissionProps(guild);
|
||||
});
|
||||
env0_4.useEffect(function() {
|
||||
trackPaneViewed(GuildSettingsSections.LANDING);
|
||||
}, []);
|
||||
const value6 = env0_4.useCallback(_fun122045, [value3]);
|
||||
const isGuildAdmin = value5.isGuildAdmin;
|
||||
const canManageGuild = value5.canManageGuild;
|
||||
const canManageRoles = value5.canManageRoles;
|
||||
const canManageBans = value5.canManageBans;
|
||||
const canManageGuildExpressions = value5.canManageGuildExpressions;
|
||||
const canManageChannels = value5.canManageChannels;
|
||||
const canViewAuditLog = value5.canViewAuditLog;
|
||||
const canManageWebhooks = value5.canManageWebhooks;
|
||||
const useChannelsAllowedToUnlinkModule = require(15866) /* metro dependency 15866: useChannelsAllowedToUnlink */;
|
||||
const useChannelsAllowedToUnlink = useChannelsAllowedToUnlinkModule.useChannelsAllowedToUnlink;
|
||||
const value7 = Reflect.apply(useChannelsAllowedToUnlink, useChannelsAllowedToUnlinkModule, [guild.id]).length > 0;
|
||||
const value8 = (require(6850) /* metro dependency 6850: GuildRoleSubscriptionSettingUtils */).useCanManageGuildRoleSubscriptions(guild);
|
||||
const r21 = canManageGuild && (require(6858) /* metro dependency 6858: GuildOfficialMessageUtils */).isGuildOfficialMessagesEnabled(guild,
|
||||
'GuildSettingsModalLanding');
|
||||
env0_4.useLayoutEffect(_fun122046, [updateErrors.message]);
|
||||
const jsxRuntimeEnv0_17Binding = jsxRuntimeEnv0_17;
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const items3 = [styles.containerContent, contentContainerStyle];
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const object = {paddingHorizontal: value2};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
const items2 = [((Component) => <Component iconProps={{onUpload: onUpload, type: 'guild', icon: guild.icon,
|
||||
name: guild.name, makeURL: makeURL_122048,
|
||||
disabled: !value5.canManageGuild}} text={guild.name} textAccessibilityRole="header" />)(importDefault(15211) /* metro dependency 15211: IconLabelBlock */)];
|
||||
items2[1] = <SettingsSection guild={guild} categories={value4} isGuildAdmin={isGuildAdmin} canManageGuild={canManageGuild} canManageGuildExpressions={canManageGuildExpressions} canManageChannels={canManageChannels} canUnlinkChannelLobbies={value7} canViewAuditLog={canViewAuditLog} canManageWebhooks={canManageWebhooks} canConfigureOfficialMessages={r21} pushScreen={value6} />;
|
||||
items2[2] = canManageGuild && <CommunitySection guild={guild} pushScreen={value6} />;
|
||||
items2[3] = value8 && ((Component) => <Component guild={guild} pushScreen={value6} />)(importDefault(15867) /* metro dependency 15867: GuildSettingsRoleSubscriptionsSection */);
|
||||
items2[4] = <UserManagementSection canManageGuild={canManageGuild} canManageRoles={canManageRoles} canManageBans={canManageBans} pushScreen={value6} />;
|
||||
const form = <Form style={styles.container} contentContainerStyle={items3}><Stack style={object} spacing={PX_24}>{items2}</Stack></Form>;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{form}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildSettingsModalLanding({guildId, contentContainerStyle}) { // fn#122050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:6633, offset: 0x02558e30, size: 167 bytes, params: 2, frame: 21
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
|
||||
return guild == null ? null : <GuildSettingsModalLandingInner guild={guild} contentContainerStyle={contentContainerStyle} updateErrors={Reflect.apply(useStateFromStoresObject,
|
||||
fluxModule, [[GuildSettingsStore], function() {
|
||||
var object = {};
|
||||
object.errors = GuildSettingsStore.getErrors();
|
||||
return object;
|
||||
}, []]).errors} />;
|
||||
}
|
||||
|
||||
function SettingsSectionOnPress_122029() { // fn#122029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:2262, owner: SettingsSection.onPress, offset: 0x0255824f, size: 29 bytes, params: 1, frame: 11
|
||||
const pushScreenBinding = pushScreen;
|
||||
const STICKERS = GuildSettingsSections.STICKERS;
|
||||
return pushScreenBinding(STICKERS);
|
||||
}
|
||||
|
||||
function CommunitySectionOnPress_122035() { // fn#122035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:3604, owner: CommunitySection.onPress, offset: 0x0255848e, size: 32 bytes, params: 1, frame: 13
|
||||
const pushScreenBinding = pushScreen;
|
||||
const COMMUNITY_INTRO = GuildSettingsSections.COMMUNITY_INTRO;
|
||||
return pushScreenBinding(COMMUNITY_INTRO, {});
|
||||
}
|
||||
|
||||
function _fun122045(a0) { // fn#122045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:5117, offset: 0x02558ce1, size: 111 bytes, params: 2, frame: 18
|
||||
const value = copyRestArgs(0, undefined);
|
||||
const property = value[0];
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).setSection(property);
|
||||
const binding = env0_2;
|
||||
const push = binding.push;
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, 0);
|
||||
apply(push, items2, binding, 0);
|
||||
const trackPaneViewedBinding = trackPaneViewed;
|
||||
const LANDING = GuildSettingsSections.LANDING;
|
||||
trackPaneViewedBinding(property, LANDING);
|
||||
}
|
||||
|
||||
function _fun122046() { // fn#122046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:5580, offset: 0x02558d50, size: 67 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (updateErrors.message != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
moduleValue.presentError(updateErrors.message);
|
||||
}
|
||||
}
|
||||
|
||||
function onUpload(a0) { // fn#122047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:5871, owner: GuildSettingsModalLandingInner.onUpload, offset: 0x02558d93, size: 54 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.updateIcon(guild.id, a0);
|
||||
}
|
||||
|
||||
function GuildSettingsModalLandingInnerMakeURL(a0) { // fn#122048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16067:5949, owner: GuildSettingsModalLandingInner.makeURL, offset: 0x02558dc9, size: 83 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value2;
|
||||
let value = a0;
|
||||
if (value) {
|
||||
value2 = environment.__proto__;
|
||||
value = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: guild.id,
|
||||
icon: value,
|
||||
canAnimate: true, size: 64});
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,196 @@
|
||||
/* Metro module 15003; source: modules/guild_settings/native/GuildSettingsModalMemberApplications.tsx; dependencies: [31, 27, 7068, 33, 4501, 697, 3995, 4573, 15004, 1423, 6238, 1305, 1585, 3860, 15009, 3972, 15010, 566, 1244, 8416, 8754, 5462, 2] */
|
||||
function _fun113411(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15200:6, offset: 0x023f778b, size: 404 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value2.ActivityIndicator;
|
||||
const env0_5 = value2.View;
|
||||
const guildJoinRequestStore = importDefault(7068) /* metro dependency 7068: GuildJoinRequestStore */;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value3.jsx;
|
||||
const env0_8 = value3.jsxs;
|
||||
const env0_9 = value3.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.containerInner = {'paddingHorizontal': null, 'flex': 1, 'marginTop': 16, paddingHorizontal: PX_12};
|
||||
object2.spinnerContainer = {padding: 32};
|
||||
object2.footerSpinner = {paddingVertical: 16};
|
||||
const TEXT_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_BRAND;
|
||||
object2.spinner = {color: TEXT_BRAND};
|
||||
const env0_10 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
const value5 = value.memo(_fun113412);
|
||||
const env0_12 = value.memo(_fun113413);
|
||||
value = value.memo(GuildSettingsModalMemberApplications);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalMemberApplications.tsx');
|
||||
exports.default = value;
|
||||
exports.MemberApplicationUser = value5;
|
||||
}
|
||||
|
||||
function _fun113412({user}) { // fn#113412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15200:415, offset: 0x023f791f, size: 199 bytes, params: 2, frame: 23
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const globalName = (importDefault(3995) /* metro dependency 3995: UserUtils */).getGlobalName(user);
|
||||
return (
|
||||
<View>
|
||||
<Text variant="text-md/semibold">
|
||||
{globalName ?? user.username}
|
||||
</Text>
|
||||
{globalName != null && <Text variant="text-xs/medium">{user.username}</Text>}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113413({joinRequest, start, end}) { // fn#113413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15200:650, offset: 0x023f79e6, size: 265 bytes, params: 2, frame: 25
|
||||
const value2 = env0_3.useCallback(_fun113414, [joinRequest]);
|
||||
if (joinRequest == null) {
|
||||
return null;
|
||||
}
|
||||
const user = joinRequest.user;
|
||||
if (user == null) {
|
||||
return null;
|
||||
}
|
||||
const r15 = user != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(user) : null;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const SMALL = AvatarSizes.SMALL;
|
||||
return (
|
||||
<TableRow
|
||||
arrow
|
||||
icon={<Avatar source={r15} size={SMALL} />}
|
||||
label={((Component) => <Component user={user} />)(env0_11)}
|
||||
onPress={value2}
|
||||
start={start}
|
||||
end={end}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildSettingsModalMemberApplications({guildId, applicationStatus}) { // fn#113415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15200:1010, offset: 0x023f7b16, size: 1071 bytes, params: 2, frame: 33
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
var r12;
|
||||
var r9;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var jsxRuntimeEnv0_9Binding;
|
||||
const FlashList = (require(8416) /* metro dependency 8416: flashList */).FlashList;
|
||||
var object2;
|
||||
var object3;
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_HEIGHT;
|
||||
const value3 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_HEIGHT]);
|
||||
const useSortedMemberApplicationsModule = require(15009) /* metro dependency 15009: useSortedMemberApplications */;
|
||||
const useSortedMemberApplications = useSortedMemberApplicationsModule.useSortedMemberApplications;
|
||||
const object6 = {guildId: guildId, applicationStatus: applicationStatus};
|
||||
const GuildJoinRequestSortOrders = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestSortOrders;
|
||||
let TIMESTAMP_DESC = GuildJoinRequestSortOrders.TIMESTAMP_DESC;
|
||||
object6.sortOrder = TIMESTAMP_DESC;
|
||||
const guildJoinRequests = Reflect.apply(useSortedMemberApplications, useSortedMemberApplicationsModule,
|
||||
[object6]).guildJoinRequests;
|
||||
const usePaginatedMemberApplicationsModule = require(15010) /* metro dependency 15010: usePaginatedMemberApplications */;
|
||||
const usePaginatedMemberApplications = usePaginatedMemberApplicationsModule.usePaginatedMemberApplications;
|
||||
const fetchNextPage = Reflect.apply(usePaginatedMemberApplications, usePaginatedMemberApplicationsModule,
|
||||
[{guildId: guildId, guildJoinRequests: guildJoinRequests}]).fetchNextPage;
|
||||
const env0_3 = fetchNextPage;
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildJoinRequestStore],
|
||||
function() {
|
||||
return GuildJoinRequestStore.isFetching();
|
||||
});
|
||||
const binding = env0_3;
|
||||
const value5 = binding.useCallback(function() {
|
||||
var fetchNextPageBinding = fetchNextPage;
|
||||
var TIMESTAMP_DESC = require(dependencyMap[15]).GuildJoinRequestSortOrders.TIMESTAMP_DESC;
|
||||
fetchNextPageBinding(TIMESTAMP_DESC, applicationStatus);
|
||||
}, [applicationStatus, fetchNextPage]);
|
||||
const useEffect = binding.useEffect;
|
||||
let length = guildJoinRequests.length;
|
||||
Reflect.apply(useEffect, binding, [_fun113418, [value5, length]]);
|
||||
const value6 = binding.useCallback(_fun113419, [guildJoinRequests.length]);
|
||||
const value7 = binding.useCallback(function(a0) {
|
||||
return a0.joinRequestId;
|
||||
}, []);
|
||||
if (value4) {
|
||||
length = guildJoinRequests.length;
|
||||
if (length === 0) {
|
||||
return (
|
||||
<View style={styles.spinnerContainer}>
|
||||
<ActivityIndicator size="large" color={styles.spinner.color} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
r12 = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses.SUBMITTED === applicationStatus ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/wqiSv']) : (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses.APPROVED === applicationStatus ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bv82GS) : (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses.REJECTED !== applicationStatus ? undefined : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7YSJ6f']);
|
||||
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
var viewBindingProps = {style: styles.containerInner};
|
||||
length = guildJoinRequests.length;
|
||||
if (length !== 0) {
|
||||
object2 = {keyExtractor: value7, data: guildJoinRequests, renderItem: value6, estimatedItemSize: value3};
|
||||
object3 = {};
|
||||
object3.paddingBottom = bottom + (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.contentContainerStyle = object3;
|
||||
object2.onEndReached = value5;
|
||||
object2.ListFooterComponent = ListFooterComponent;
|
||||
r9 = <FlashList {...object2} />;
|
||||
} else {
|
||||
const EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
|
||||
r9 = <EmptyState Illustration={(require(8754) /* metro dependency 8754: NoResults */).NoResults} body={r12} />;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<View {...viewBindingProps}>
|
||||
{r9}
|
||||
</View>
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
const GuildJoinRequestApplicationStatuses = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses;
|
||||
const SUBMITTED = GuildJoinRequestApplicationStatuses.SUBMITTED;
|
||||
r12 = SUBMITTED === applicationStatus ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/wqiSv']) : (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses.APPROVED === applicationStatus ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bv82GS) : (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses.REJECTED !== applicationStatus ? undefined : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7YSJ6f']);
|
||||
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
if (guildJoinRequests.length !== 0) {
|
||||
object2 = {keyExtractor: value7, data: guildJoinRequests, renderItem: value6, estimatedItemSize: value3};
|
||||
object3 = {};
|
||||
object3.paddingBottom = bottom + (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.contentContainerStyle = object3;
|
||||
object2.onEndReached = value5;
|
||||
object2.ListFooterComponent = ListFooterComponent;
|
||||
r9 = <FlashList {...object2} />;
|
||||
} else {
|
||||
const EmptyState2 = (require(1305) /* metro dependency 1305: native */).EmptyState;
|
||||
r9 = <EmptyState2 Illustration={(require(8754) /* metro dependency 8754: NoResults */).NoResults} body={r12} />;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<View style={styles.containerInner}>
|
||||
{r9}
|
||||
</View>
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113414() { // fn#113414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15200:711, offset: 0x023f7aef, size: 39 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(15004) /* metro dependency 15004: openJoinRequestActionSheet */)(joinRequest);
|
||||
}
|
||||
|
||||
function _fun113418() { // fn#113418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15200:1576, offset: 0x023f7f90, size: 32 bytes, params: 1, frame: 10
|
||||
if (guildJoinRequests.length === 0) {
|
||||
env0_5();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun113419({item, index}) { // fn#113419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15200:1638, offset: 0x023f7fb0, size: 78 bytes, params: 2, frame: 15
|
||||
return ((Component) => <Component joinRequest={item} start={index === 0} end={index === guildJoinRequests.length - 1} />)(env1_12);
|
||||
}
|
||||
|
||||
function GuildSettingsModalMemberApplicationsListFooterComponent() { // fn#113421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15200:2449, owner: GuildSettingsModalMemberApplications.ListFooterComponent, offset: 0x023f7ffe, size: 88 bytes, params: 1, frame: 17
|
||||
return env0_4 ? <View style={styles.footerSpinner}><ActivityIndicator size="small" color={styles.spinner.color} /></View> : null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,687 @@
|
||||
/* Metro module 10296; source: modules/guild_settings/native/GuildSettingsModalMemberEdit.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 1422, 1939, 1945, 1938, 1867, 3784, 1878, 10297, 661, 33, 4501, 697, 3789, 22, 8950, 4573, 6238, 1244, 6231, 10298, 10299, 3856, 10306, 5277, 5282, 3995, 8706, 3773, 7972, 4572, 1305, 7981, 3868, 1484, 566, 44, 8037, 6902, 5462, 10311, 10313, 6518, 5280, 2] */
|
||||
function _fun79844(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:6, offset: 0x01e648ee, size: 802 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
const closure = GuildSettingsModalMemberEditScene;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
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 guildRecordModule = require(1422) /* metro dependency 1422: GuildRecord */;
|
||||
const env0_11 = guildRecordModule.isGuildOwner;
|
||||
const env0_12 = guildRecordModule.isGuildOwnerWithRequiredMfaLevel;
|
||||
const env0_13 = (require(1939) /* metro dependency 1939: GuildRoleRecord */).isEveryoneRole;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const guildSettingsModalMembersStore = importDefault(10297) /* metro dependency 10297: GuildSettingsModalMembersStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_20 = constantsModule.Permissions;
|
||||
const env0_21 = constantsModule.GuildFeatures;
|
||||
const env0_22 = constantsModule.GuildSettingsSections;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_23 = value4.jsx;
|
||||
const env0_24 = value4.jsxs;
|
||||
const env0_25 = value4.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const env0_26 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [{form: {flex: 1},
|
||||
formContent: {paddingTop: 16}, stackPadding: {paddingHorizontal: TABLE_ROW_PADDING}, userInfo: {height: 63},
|
||||
avatar: {'width': 40, 'height': 40}, rowLabel: {flexDirection: 'row'}, ctaButton: {'marginTop': 8,
|
||||
'marginBottom': 8}, actionButtonLeft: {'marginRight': 0, 'marginLeft': 0, 'paddingRight': 0, 'paddingLeft': 16},
|
||||
actionButtonRight: {'marginRight': 0, 'marginLeft': 0, 'paddingRight': 16, 'paddingLeft': 0},
|
||||
actionButtonContainer: {flexBasis: 'auto'}}]);
|
||||
let PureComponent = value.PureComponent;
|
||||
_fun79857(PureComponent).defaultProps = {roles: []};
|
||||
PureComponent = value.PureComponent;
|
||||
value = _fun79868(PureComponent);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value.contextType = ThemeContext;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalMemberEdit.tsx');
|
||||
exports.default = MemberModalEdit;
|
||||
exports.GuildSettingsModalMemberEditScene = closure;
|
||||
}
|
||||
|
||||
function _callSuper_79845(a0, a1, a2) { // fn#79845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:439, offset: 0x01e64c10, size: 100 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = a2;
|
||||
const value3 = env0_7(a1);
|
||||
const binding = env0_6;
|
||||
if (_isNativeReflectConstruct_79846()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value3, value || [], env0_7(a0).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value3.apply(a0, value);
|
||||
r0 = value;
|
||||
}
|
||||
return binding(a0, r0);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_79846() { // fn#79846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:570, offset: 0x01e64c74, 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_79846_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function GuildSettingsModalMemberEditScene({guildId, userId, onClose, contentContainerStyle}) { // fn#79849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:7360, offset: 0x01e64cd6, size: 595 bytes, params: 2, frame: 28
|
||||
var r0;
|
||||
var jsxRuntimeEnv0_25Binding;
|
||||
var binding3;
|
||||
let value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const sortedRoles = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleStore],
|
||||
function() {
|
||||
return GuildRoleStore.getSortedRoles(guildId);
|
||||
});
|
||||
const {user, currentUser} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserStore],
|
||||
function() {
|
||||
var value2 = UserStore.getCurrentUser();
|
||||
importDefault(dependencyMap[42])(value2 != null,
|
||||
'GuildSettingsModalMemberEditScene: current user cannot be undefined');
|
||||
var object = {};
|
||||
object.user = UserStore.getUser(userId);
|
||||
object.currentUser = value2;
|
||||
return object;
|
||||
});
|
||||
env0_9.useEffect(_fun79853, []);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsModalMembersStore,
|
||||
GuildMemberStore, PermissionStore, UserStore, GuildStore], _fun79855);
|
||||
(require(6902) /* metro dependency 6902: subscribeGuildMembers */).useSubscribeGuildMembers({[guildId]: [userId]},
|
||||
'GuildSettingsModalMemberEdit');
|
||||
if (currentUser != null) {
|
||||
if (guild != null) {
|
||||
if (user != null) {
|
||||
jsxRuntimeEnv0_25Binding = jsxRuntimeEnv0_25;
|
||||
binding3 = env0_28;
|
||||
var binding3Props = {...value4};
|
||||
binding3Props['onClose'] = onClose;
|
||||
binding3Props['handleSuccessfulRemoval'] = env0_9.useCallback(_fun79856, [value2]);
|
||||
binding3Props['guild'] = guild;
|
||||
binding3Props['sortedGuildRoles'] = sortedRoles;
|
||||
binding3Props['currentUser'] = currentUser;
|
||||
binding3Props['user'] = user;
|
||||
binding3Props['navigation'] = value2;
|
||||
binding3Props['contentContainerStyle'] = contentContainerStyle;
|
||||
r0 = <>{((Component) => <Component {...binding3Props} />)(binding3)}{((NavScrim) => <NavScrim />)((require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim)}</>;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun79857(a0) { // fn#79857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:1246, offset: 0x01e651d2, size: 102 bytes, params: 2, frame: 17
|
||||
const closure = RolesList_79858;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'render', value: value_79859}], [{key: 'getDerivedStateFromProps',
|
||||
value: function({isEditing}, a1) {
|
||||
return a1.isEditingProp === isEditing ? null : {isEditingProp: isEditing};
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun79868(a0) { // fn#79868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:2563, offset: 0x01e65669, size: 147 bytes, params: 2, frame: 16
|
||||
const closure = GuildSettingsModalMemberEdit;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'componentDidMount', value: function() {
|
||||
this.updateNavigator();
|
||||
}}, {key: 'componentDidUpdate', value: function(a0) {
|
||||
this.updateNavigator(a0);
|
||||
}}, {key: 'updateNavigator', value: value_79883}, {key: 'render', value: value_79889}]);
|
||||
}
|
||||
|
||||
function MemberModalEdit({guildId, userId, onClose, onRemove}) { // fn#79890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:8931, offset: 0x01e6651e, size: 199 bytes, params: 2, frame: 20
|
||||
var object2;
|
||||
const value3 = env0_9.useMemo(_fun79891, [onClose, onRemove,
|
||||
(importDefault(6518) /* metro dependency 6518: useInitialValue */)(guildId)]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
object2 = {screens: value3};
|
||||
let MEMBER_EDIT = GuildSettingsSections.MEMBER_EDIT;
|
||||
object2.initialRouteName = MEMBER_EDIT;
|
||||
MEMBER_EDIT = GuildSettingsSections.MEMBER_EDIT;
|
||||
object2.initialRouteStack = [{name: MEMBER_EDIT, params: {userId: userId}}];
|
||||
return <Navigator {...object2} />;
|
||||
}
|
||||
|
||||
function _fun79853() { // fn#79853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:7847, offset: 0x01e64fba, size: 46 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(10298) /* metro dependency 10298: GuildSettingsModalMembersActionCreators */).startEditingNickname();
|
||||
return _fun79854;
|
||||
}
|
||||
|
||||
function _fun79855() { // fn#79855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:7977, offset: 0x01e6500d, size: 430 bytes, params: 1, frame: 20
|
||||
const object2 = {};
|
||||
object2.member = GuildMemberStore.getMember(guildId, userId);
|
||||
object2.nicknameError = GuildSettingsModalMembersStore.nicknameError;
|
||||
object2.editRoles = GuildSettingsModalMembersStore.roles;
|
||||
object2.isEditing = GuildSettingsModalMembersStore.isEditing;
|
||||
object2.submitting = GuildSettingsModalMembersStore.isSubmitting;
|
||||
object2.canChangeNick = guild != null && user != null && PermissionStore.canManageUser(Permissions.MANAGE_NICKNAMES,
|
||||
user, guild);
|
||||
const can = PermissionStore.can;
|
||||
const MANAGE_ROLES = Permissions.MANAGE_ROLES;
|
||||
guildBinding = guild;
|
||||
object2.canManageRoles = Reflect.apply(can, PermissionStore, [MANAGE_ROLES, guildBinding]);
|
||||
object2.canKick = guildBinding != null && user != null && PermissionStore.canManageUser(Permissions.KICK_MEMBERS,
|
||||
user, guild);
|
||||
object2.canBan = guild != null && user != null && PermissionStore.canManageUser(Permissions.BAN_MEMBERS, user,
|
||||
guild);
|
||||
const value9 = undefined;
|
||||
const useCanToggleCommunicationDisableOnUserModule = require(8037) /* metro dependency 8037: useCanToggleCommunicationDisableOnUser */;
|
||||
object2.canDisableCommunication = useCanToggleCommunicationDisableOnUserModule.canToggleCommunicationDisableOnUser(guild == null ? value9 : guild.id,
|
||||
user == null ? value9 : user.id, [UserStore, GuildStore, PermissionStore]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun79856() { // fn#79856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:8555, offset: 0x01e651bb, size: 23 bytes, params: 1, frame: 11
|
||||
return env0_2.pop(2);
|
||||
}
|
||||
|
||||
function RolesList_79858(a0) { // fn#79858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:1258, offset: 0x01e65238, size: 68 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
env1_4(this, RolesList_79858);
|
||||
value = _callSuper_79845(this, RolesList_79858, [a0]);
|
||||
value.state = {isEditingProp: a0.isEditing};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_79859() { // fn#79859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:1437, offset: 0x01e6527c, size: 500 bytes, params: 1, frame: 27
|
||||
var r4;
|
||||
var value6;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const props = this.props;
|
||||
const guild = props.guild;
|
||||
const sortedGuildRoles = props.sortedGuildRoles;
|
||||
const env0_1 = props.roles;
|
||||
const isEditing = props.isEditing;
|
||||
const currentUserId = props.currentUserId;
|
||||
const onStartEditing = props.onStartEditing;
|
||||
const env0_3 = props.onToggleRole;
|
||||
if (isEditing) {
|
||||
var env0_4 = (importAll(3789) /* metro dependency 3789: PermissionUtils */).getHighestRole(guild,
|
||||
currentUserId);
|
||||
r4 = (importDefault(22) /* metro dependency 22 */)(sortedGuildRoles).filter(function(a0) {
|
||||
return !isEveryoneRole(a0);
|
||||
}).filter(_fun79861).filter(_fun79862).map(_fun79863).value();
|
||||
} else {
|
||||
value6 = (importDefault(22) /* metro dependency 22 */)(sortedGuildRoles).filter(_fun79865).map(_fun79866).value();
|
||||
value6.push(((TableRow) => <TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+riKdA'])} onPress={onStartEditing} key="addition" />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow));
|
||||
r4 = value6;
|
||||
}
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<TableRowGroup
|
||||
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['LPJmL/'])}
|
||||
hasIcons={false}
|
||||
>
|
||||
{r4}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildSettingsModalMemberEdit(a0) { // fn#79869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:2575, offset: 0x01e656fc, size: 248 bytes, params: 2, frame: 18
|
||||
let value = copyRestArgs(0, undefined);
|
||||
const binding = env1_4;
|
||||
const value4 = undefined;
|
||||
binding(this, GuildSettingsModalMemberEdit);
|
||||
const _callSuper_79845Binding = _callSuper_79845;
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, undefined);
|
||||
value = _callSuper_79845Binding(this, GuildSettingsModalMemberEdit, items);
|
||||
const member = value.props.member;
|
||||
value.state = {nick: member == null ? value4 : member.nick};
|
||||
value.handleChangeNickname = handleChangeNickname;
|
||||
value.handleSaveNickname = handleSaveNickname;
|
||||
value.handleStartEditingRoles = handleStartEditingRoles;
|
||||
value.handleToggleRole = handleToggleRole;
|
||||
value.handleSetCommunicationDisabled = handleSetCommunicationDisabled;
|
||||
value.handleClearCommunicationDisabled = handleClearCommunicationDisabled;
|
||||
value.handleKick = handleKick;
|
||||
value.handleBan = handleBan_79877;
|
||||
value.handleTransferOwnership = handleTransferOwnership;
|
||||
value.handleSaveMemberRoles = handleSaveMemberRoles;
|
||||
value.handleCancelEditMemberRoles = handleCancelEditMemberRoles;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_79883(a0) { // fn#79883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:4274, offset: 0x01e65b8e, size: 224 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
var r6;
|
||||
var setOptions;
|
||||
var value2;
|
||||
const {submitting, isEditing, navigation, onClose} = this.props;
|
||||
let value = a0 != null;
|
||||
if (!(value && submitting === a0.submitting && isEditing === a0.isEditing && onClose === a0.onClose)) {
|
||||
setOptions = navigation.setOptions;
|
||||
if (submitting) {
|
||||
r6 = function() {
|
||||
return null;
|
||||
};
|
||||
} else if (isEditing) {
|
||||
r6 = _fun79885;
|
||||
} else {
|
||||
value = undefined;
|
||||
if (onClose != null) {
|
||||
value2 = environment.__proto__;
|
||||
value = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
|
||||
value = value.getHeaderCloseButton(onClose);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
Reflect.apply(setOptions, navigation, [{headerLeft: r6,
|
||||
headerRight: submitting ? _fun79886 : isEditing ? _fun79887 : undefined, headerTitle: headerTitle_79888}]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_79889() { // fn#79889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:4988, offset: 0x01e65e12, size: 1804 bytes, params: 1, frame: 50
|
||||
var object10;
|
||||
var r1;
|
||||
var r15;
|
||||
var r26;
|
||||
var r16;
|
||||
var r12;
|
||||
var r10;
|
||||
var isMemberCommunicationDisabled2;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var FN7NIS;
|
||||
var object3;
|
||||
var RuL6o7;
|
||||
var object7;
|
||||
var TextInput;
|
||||
var object12;
|
||||
var yOiJHB;
|
||||
var object8;
|
||||
var TuAZuW;
|
||||
var object9;
|
||||
let value = environment.__proto__;
|
||||
let binding = env1_26;
|
||||
const context = this.context;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(context);
|
||||
const nick = this.state.nick;
|
||||
const {user, guild, sortedGuildRoles, member, editRoles, nicknameError, currentUser, isEditing, canChangeNick,
|
||||
canManageRoles, canKick, canBan, canDisableCommunication} = this.props;
|
||||
const value4 = null;
|
||||
if (value4 == member) {
|
||||
return value4;
|
||||
}
|
||||
const rowLabel = value3.rowLabel;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const userTag = <View style={rowLabel}><Text variant="text-sm/medium">{(importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(user)}</Text>{user.bot ? ((Component) => <Component verified={user.isVerifiedBot()} />)(importDefault(8706) /* metro dependency 8706: BotTag */) : value4}</View>;
|
||||
if (value4 != member) {
|
||||
isMemberCommunicationDisabled2 = (require(3773) /* metro dependency 3773: CommunicationDisabledUtils */).isMemberCommunicationDisabled(member);
|
||||
object10 = {hasIcons: false};
|
||||
object2 = {variant: 'danger'};
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
if (isMemberCommunicationDisabled2) {
|
||||
RuL6o7 = t.RuL6o7;
|
||||
object7 = {};
|
||||
object7.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
object2.label = Reflect.apply(formatToPlainString, intl, [RuL6o7, object7]);
|
||||
object2.onPress = this.handleClearCommunicationDisabled;
|
||||
r1 = <TableRowGroup {...object10}><TableRow {...object2} /></TableRowGroup>;
|
||||
} else {
|
||||
FN7NIS = t.FN7NIS;
|
||||
object3 = {};
|
||||
object3.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
object2.label = Reflect.apply(formatToPlainString, intl, [FN7NIS, object3]);
|
||||
object2.onPress = this.handleSetCommunicationDisabled;
|
||||
r1 = <TableRowGroup {...object10}><TableRow {...object2} /></TableRowGroup>;
|
||||
}
|
||||
r15 = r1;
|
||||
} else {
|
||||
r15 = value4;
|
||||
}
|
||||
r1 = isGuildOwner(guild, user) || !isGuildOwnerWithRequiredMfaLevel(guild, currentUser);
|
||||
r1 = !r1 ? user.bot : r1;
|
||||
const r9 = r1 ? value2 : <TableRowGroup hasIcons={false}><TableRow variant="danger" label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Z5s7PM)} onPress={this.handleTransferOwnership} /></TableRowGroup>;
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const form = value3.form;
|
||||
const items2 = [value3.formContent];
|
||||
items2[1] = this.props.contentContainerStyle;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const stackPadding = value3.stackPadding;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const tableRowGroup = <TableRowGroup hasIcons><TableRow icon={<Avatar style={value3.avatar} user={user} guildId={guild.id} />} label={userTag} /></TableRowGroup>;
|
||||
let r18 = canChangeNick || currentUser.id === user.id;
|
||||
if (r18) {
|
||||
TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
r18 = <TextInput label={intl.string(t['621LJD'])} value={value4 != nick ? nick : ''} placeholder={intl.string(t.h7UKXj)} onChange={this.handleChangeNickname} onBlur={this.handleSaveNickname} maxLength={32} errorMessage={nicknameError} />;
|
||||
}
|
||||
if (canManageRoles) {
|
||||
binding = env1_27;
|
||||
r26 = isEditing ? editRoles : member.roles;
|
||||
r26 = value4 == r26 ? [] : r26;
|
||||
r16 = ((Component) => <Component guild={guild} sortedGuildRoles={sortedGuildRoles} roles={r26} currentUserId={currentUser.id} isEditing={isEditing} onToggleRole={this.handleToggleRole} onStartEditing={this.handleStartEditingRoles} />)(binding);
|
||||
} else {
|
||||
r16 = canManageRoles;
|
||||
}
|
||||
const r13 = canDisableCommunication && r15;
|
||||
if (canKick) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
yOiJHB = (require(1244) /* metro dependency 1244: indexNative */).t.yOiJHB;
|
||||
object8 = {};
|
||||
object8.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
r12 = <TableRowGroup hasIcons={false}><TableRow variant="danger" label={Reflect.apply(formatToPlainString, intl,
|
||||
[yOiJHB, object8])} onPress={this.handleKick} /></TableRowGroup>;
|
||||
} else {
|
||||
r12 = canKick;
|
||||
}
|
||||
if (canBan) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
TuAZuW = (require(1244) /* metro dependency 1244: indexNative */).t.TuAZuW;
|
||||
object9 = {};
|
||||
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
object9.user = value.getName(user);
|
||||
value = <TableRowGroup hasIcons={false}><TableRow variant="danger" label={Reflect.apply(formatToPlainString,
|
||||
intl,
|
||||
[TuAZuW, object9])} onPress={this.handleBan} /></TableRowGroup>;
|
||||
r10 = value;
|
||||
} else {
|
||||
r10 = canBan;
|
||||
}
|
||||
return (
|
||||
<Form style={form} contentContainerStyle={items2}>
|
||||
<Stack style={stackPadding} spacing={PX_24}>
|
||||
{tableRowGroup}
|
||||
{r18}
|
||||
{r16}
|
||||
{r13}
|
||||
{r12}
|
||||
{r10}
|
||||
{r9}
|
||||
</Stack>
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun79891() { // fn#79891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:9030, offset: 0x01e665e5, size: 35 bytes, params: 1, frame: 15
|
||||
return getScreens_79892(env0_2, onClose, onRemove);
|
||||
}
|
||||
|
||||
function _fun79854() { // fn#79854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:7884, offset: 0x01e64fe8, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(10298) /* metro dependency 10298: GuildSettingsModalMembersActionCreators */).stopEditingRoles();
|
||||
}
|
||||
|
||||
function _fun79861({managed}) { // fn#79861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:1658, offset: 0x01e65486, size: 14 bytes, params: 2, frame: 1
|
||||
return !managed;
|
||||
}
|
||||
|
||||
function _fun79862(a0) { // fn#79862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:1682, offset: 0x01e65494, size: 58 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importAll(3789) /* metro dependency 3789: PermissionUtils */;
|
||||
return value.isRoleHigher(guild, currentUserId, env0_4, a0);
|
||||
}
|
||||
|
||||
function _fun79863(a0) { // fn#79863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:1723, offset: 0x01e654ce, size: 199 bytes, params: 2, frame: 22
|
||||
const env0_0 = a0;
|
||||
const rolesBinding = roles;
|
||||
let value = rolesBinding.indexOf(a0.id);
|
||||
value = value !== -1;
|
||||
const value3 = undefined;
|
||||
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<TableCheckboxRow
|
||||
checked={value}
|
||||
label={<Text variant="text-md/semibold" style={a0.colorString != null ? {color: a0.colorString} : value3}>{a0.name}</Text>}
|
||||
onPress={onPress_79864}
|
||||
key={a0.id}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun79866(a0) { // fn#79866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:2018, offset: 0x01e655b9, size: 140 bytes, params: 2, frame: 21
|
||||
const value2 = undefined;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<TableRow
|
||||
label={<Text variant="text-md/semibold" style={a0.colorString != null ? {color: a0.colorString} : value2}>{a0.name}</Text>}
|
||||
key={a0.id}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function handleChangeNickname(a0) { // fn#79870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:2803, owner: GuildSettingsModalMemberEdit.handleChangeNickname, offset: 0x01e657f4, size: 32 bytes, params: 2, frame: 12
|
||||
env0_0.setState({nick: a0});
|
||||
}
|
||||
|
||||
function handleSaveNickname() { // fn#79871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:2850, owner: GuildSettingsModalMemberEdit.handleSaveNickname, offset: 0x01e65814, size: 159 bytes, params: 1, frame: 17
|
||||
var id;
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var changeNickname;
|
||||
var binding;
|
||||
var props;
|
||||
var id2;
|
||||
const nick = env0_0.state.nick;
|
||||
const value2 = null;
|
||||
if (value2 != nick) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(10298) /* metro dependency 10298: GuildSettingsModalMembersActionCreators */;
|
||||
changeNickname = defaultImport.changeNickname;
|
||||
binding = env0_0;
|
||||
props = binding.props;
|
||||
id2 = props.guild.id;
|
||||
props = binding.props;
|
||||
id = props.currentUser.id;
|
||||
props = binding.props;
|
||||
id = id === props.user.id ? value2 : env0_0.props.user.id;
|
||||
Reflect.apply(changeNickname, defaultImport, [id2, id, env0_0.state.nick]);
|
||||
}
|
||||
}
|
||||
|
||||
function handleStartEditingRoles() { // fn#79872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:3019, owner: GuildSettingsModalMemberEdit.handleStartEditingRoles, offset: 0x01e658b3, size: 76 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(10298) /* metro dependency 10298: GuildSettingsModalMembersActionCreators */;
|
||||
const startEditingRoles = value.startEditingRoles;
|
||||
const binding = env0_0;
|
||||
const id = binding.props.guild.id;
|
||||
const user = binding.props.user;
|
||||
Reflect.apply(startEditingRoles, value, [id, user.id]);
|
||||
}
|
||||
|
||||
function handleToggleRole(a0, a1) { // fn#79873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:3105, owner: GuildSettingsModalMemberEdit.handleToggleRole, offset: 0x01e658ff, size: 45 bytes, params: 3, frame: 14
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(10298) /* metro dependency 10298: GuildSettingsModalMembersActionCreators */).toggleRole(a0, a1);
|
||||
}
|
||||
|
||||
function handleSetCommunicationDisabled() { // fn#79874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:3172, owner: GuildSettingsModalMemberEdit.handleSetCommunicationDisabled, offset: 0x01e6592c, size: 80 bytes, params: 1, frame: 14
|
||||
const {guild, user} = env0_0.props;
|
||||
const value = environment.__proto__.__proto__;
|
||||
(require(10299) /* metro dependency 10299: GuildDisableCommunicationActionCreatorsNative */).openDisableCommunication({guildId: guild.id,
|
||||
userId: user.id});
|
||||
}
|
||||
|
||||
function handleClearCommunicationDisabled() { // fn#79875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:3308, owner: GuildSettingsModalMemberEdit.handleClearCommunicationDisabled, offset: 0x01e6597c, size: 80 bytes, params: 1, frame: 14
|
||||
const {guild, user} = env0_0.props;
|
||||
const value = environment.__proto__.__proto__;
|
||||
(require(10299) /* metro dependency 10299: GuildDisableCommunicationActionCreatorsNative */).openEnableCommunication({guildId: guild.id,
|
||||
userId: user.id});
|
||||
}
|
||||
|
||||
function handleKick() { // fn#79876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:3421, owner: GuildSettingsModalMemberEdit.handleKick, offset: 0x01e659cc, size: 73 bytes, params: 1, frame: 15
|
||||
const {user, handleSuccessfulRemoval, navigation} = env0_0.props;
|
||||
const push = navigation.push;
|
||||
const MEMBER_KICK = GuildSettingsSections.MEMBER_KICK;
|
||||
Reflect.apply(push, navigation, [MEMBER_KICK, {userId: user.id, onKick: handleSuccessfulRemoval}]);
|
||||
}
|
||||
|
||||
function GuildSettingsModalMemberEditHandleBan() { // fn#79877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:3546, owner: GuildSettingsModalMemberEdit.handleBan, offset: 0x01e65a15, size: 73 bytes, params: 1, frame: 15
|
||||
const {user, handleSuccessfulRemoval, navigation} = env0_0.props;
|
||||
const push = navigation.push;
|
||||
const MEMBER_BAN = GuildSettingsSections.MEMBER_BAN;
|
||||
Reflect.apply(push, navigation, [MEMBER_BAN, {userId: user.id, onBan: handleSuccessfulRemoval}]);
|
||||
}
|
||||
|
||||
function handleTransferOwnership() { // fn#79878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:3683, owner: GuildSettingsModalMemberEdit.handleTransferOwnership, offset: 0x01e65a5e, size: 155 bytes, params: 1, frame: 15
|
||||
const {guild, user} = env0_0.props;
|
||||
let features = guild.features;
|
||||
const has = features.has;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const VERIFIED = GuildFeatures.VERIFIED;
|
||||
if (Reflect.apply(has, features, [VERIFIED])) {
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).transferOwnershipProtected();
|
||||
} else {
|
||||
features = guild.features;
|
||||
if (features.has(GuildFeatures.PARTNERED)) {
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).transferOwnershipProtected();
|
||||
} else {
|
||||
(importDefault(10306) /* metro dependency 10306: TransferOwnershipModalActionCreators */).open(guild, user);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleSaveMemberRoles() { // fn#79879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:3859, owner: GuildSettingsModalMemberEdit.handleSaveMemberRoles, offset: 0x01e65af9, size: 111 bytes, params: 1, frame: 15
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var updateMemberRoles;
|
||||
var binding;
|
||||
var id;
|
||||
var id2;
|
||||
let props = env0_0.props;
|
||||
if (props.editRoles != null) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(10298) /* metro dependency 10298: GuildSettingsModalMembersActionCreators */;
|
||||
updateMemberRoles = defaultImport.updateMemberRoles;
|
||||
binding = env0_0;
|
||||
props = binding.props;
|
||||
id = props.guild.id;
|
||||
props = binding.props;
|
||||
id2 = props.user.id;
|
||||
props = binding.props;
|
||||
Reflect.apply(updateMemberRoles, defaultImport, [id, id2, props.editRoles]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun79885() { // fn#79885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:4456, offset: 0x01e65c6e, size: 113 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
|
||||
onPress={env0_0.handleCancelEditMemberRoles}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun79886() { // fn#79886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:4644, offset: 0x01e65cdf, size: 45 bytes, params: 1, frame: 13
|
||||
const HeaderSubmittingIndicator = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).HeaderSubmittingIndicator;
|
||||
return <HeaderSubmittingIndicator />;
|
||||
}
|
||||
|
||||
function _fun79887() { // fn#79887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:4691, offset: 0x01e65d0c, size: 113 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
|
||||
onPress={env0_0.handleSaveMemberRoles}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function value_79883HeaderTitle() { // fn#79888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:4830, owner: value_79883.headerTitle, offset: 0x01e65d7d, size: 149 bytes, params: 1, frame: 20
|
||||
let value = environment.__proto__.__proto__;
|
||||
const NavigatorHeader = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).NavigatorHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const v7odxj = (require(1244) /* metro dependency 1244: indexNative */).t.v7odxj;
|
||||
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
const getName = value.getName;
|
||||
const user = env0_0.props.user;
|
||||
return (
|
||||
<NavigatorHeader
|
||||
title={Reflect.apply(formatToPlainString, intl, [v7odxj, {user: Reflect.apply(getName, value, [user])}])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_79892(a0, a1, a2) { // fn#79892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:9034, offset: 0x01e66608, size: 133 bytes, params: 4, frame: 6
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const MEMBER_EDIT = GuildSettingsSections.MEMBER_EDIT;
|
||||
const MEMBER_KICK = GuildSettingsSections.MEMBER_KICK;
|
||||
const MEMBER_BAN = GuildSettingsSections.MEMBER_BAN;
|
||||
return {[MEMBER_EDIT]: {render: render_79893}, [MEMBER_KICK]: {headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_79895}, [MEMBER_BAN]: {headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_79897}};
|
||||
}
|
||||
|
||||
function onPress_79864() { // fn#79864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:1931, offset: 0x01e65595, size: 36 bytes, params: 1, frame: 13
|
||||
return onToggleRole(env0_0.id, !result);
|
||||
}
|
||||
|
||||
function getScreens_79892Render(a0) { // fn#79893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:9092, owner: getScreens_79892.render, offset: 0x01e6668d, size: 62 bytes, params: 2, frame: 15
|
||||
return (
|
||||
<GuildSettingsModalMemberEditScene
|
||||
{...a0}
|
||||
{...{['onClose']: require}}
|
||||
{...{['guildId']: env0_0}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_79892Render_79895(a0) { // fn#79895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:9205, owner: getScreens_79892.render, offset: 0x01e666cb, size: 78 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...a0} {...{['guildId']: env0_0}} {...{['onKick']: importDefault}} />)(importDefault(10311) /* metro dependency 10311: KickConfirm */);
|
||||
}
|
||||
|
||||
function getScreens_79892Render_79897(a0) { // fn#79897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10482:9291, owner: getScreens_79892.render, offset: 0x01e66719, size: 78 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component {...a0} {...{['guildId']: env0_0}} {...{['onBan']: importDefault}} />)(importDefault(10313) /* metro dependency 10313: BanConfirm */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,583 @@
|
||||
/* Metro module 14997; source: modules/guild_settings/native/GuildSettingsModalMembers.tsx; dependencies: [57, 31, 27, 1226, 4111, 1945, 1938, 1867, 1878, 9113, 661, 33, 7234, 4501, 697, 1484, 11428, 4617, 3995, 1244, 12140, 1585, 3860, 566, 9088, 8811, 14998, 5277, 9139, 6593, 9112, 21, 3869, 6984, 8416, 1305, 8754, 5462, 2] */
|
||||
function _fun113338(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:6, offset: 0x023f4eba, size: 538 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_113341 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const guildMemberCountStore = importDefault(4111) /* metro dependency 4111: GuildMemberCountStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
const env0_13 = (require(661) /* metro dependency 661: Constants */).GuildSettingsSections;
|
||||
let value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value2.jsx;
|
||||
const env0_15 = value2.jsxs;
|
||||
const env0_16 = value2.Fragment;
|
||||
const AutocompleterResultTypes = (require(7234) /* metro dependency 7234: autocompleter */).AutocompleterResultTypes;
|
||||
const USER = AutocompleterResultTypes.USER;
|
||||
object = [USER];
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object = {};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object.containerInner = {paddingHorizontal: PX_12, flex: 1};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object.searchFieldContainer = {paddingVertical: PX_12};
|
||||
object.roleList = {'flexDirection': 'row', 'flexWrap': 'wrap', 'overflow': 'hidden', 'paddingTop': 4};
|
||||
const env0_18 = Reflect.apply(createStyles, createStylesModule, [object]);
|
||||
const env0_19 = value.memo(_fun113342);
|
||||
value = value.memo(GuildSettingsModalMembers);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalMembers.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_113339(a0, a1) { // fn#113339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:283, offset: 0x023f50d4, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun113340;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_113341(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_113341(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_113341(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun113340;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun113342({guild, guildMember, sortedGuildRoles, start, end}) { // fn#113342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:1480, offset: 0x023f5248, size: 569 bytes, params: 2, frame: 30
|
||||
var r1;
|
||||
var r18;
|
||||
var r9;
|
||||
var value9;
|
||||
var defaultImport;
|
||||
var value14;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
if (guild == null) {
|
||||
return null;
|
||||
}
|
||||
let userId = guildMember.userId;
|
||||
const r8 = userId === guild.ownerId && AuthenticationStore.getId() === guild.ownerId;
|
||||
const value7 = sortedGuildRoles.filter(function(a0) {
|
||||
return guildMember.roles.includes(a0.id);
|
||||
});
|
||||
const value8 = value7.map(_fun113344);
|
||||
if (value7.length > 0) {
|
||||
value9 = UserStore.getUser(guildMember.userId);
|
||||
defaultImport = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
|
||||
r1 = defaultImport.getNickname(guild.id, undefined,
|
||||
value9) ?? (importDefault(3995) /* metro dependency 3995: UserUtils */).getGlobalName(value9);
|
||||
r1 = r1 ?? value9?.username;
|
||||
r18 = r1 ?? '';
|
||||
value14 = value7.map(function(a0) {
|
||||
return a0.name;
|
||||
}).join(', ');
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['6eGpWx'],
|
||||
{memberName: r18, roleNames: value14});
|
||||
} else {
|
||||
r9 = undefined;
|
||||
}
|
||||
const DetailedGuildIdentityUserRow = importDefault(12140) /* metro dependency 12140: DetailedGuildIdentityUserRow */;
|
||||
userId = guildMember.userId;
|
||||
return (
|
||||
<DetailedGuildIdentityUserRow
|
||||
userId={userId}
|
||||
guildId={guild.id}
|
||||
accessibilityLabel={r9}
|
||||
subLabel={value8.length > 0 ? <View style={styles.roleList} pointerEvents="none">{value8}</View> : null}
|
||||
disabled={r8}
|
||||
onPress={onPress_113346}
|
||||
arrow
|
||||
start={start}
|
||||
end={end}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildSettingsModalMembers({guildId}) { // fn#113347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:2305, offset: 0x023f5519, size: 1340 bytes, params: 2, frame: 39
|
||||
var r8;
|
||||
var EmptyState;
|
||||
var FlashList;
|
||||
var object;
|
||||
var object2;
|
||||
let value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_HEIGHT;
|
||||
let value3 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_HEIGHT]);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildStore,
|
||||
GuildRoleStore], function() {
|
||||
var object = {};
|
||||
var guildIdBinding = guildId;
|
||||
object.guild = GuildStore.getGuild(guildIdBinding);
|
||||
object.guildLoaded = GuildStore.getGuild(guildIdBinding) != null;
|
||||
object.sortedGuildRoles = GuildRoleStore.getSortedRoles(guildIdBinding);
|
||||
return object;
|
||||
});
|
||||
const guild = value4.guild;
|
||||
const guildLoaded = value4.guildLoaded;
|
||||
const env0_3 = guildLoaded;
|
||||
const sortedGuildRoles = value4.sortedGuildRoles;
|
||||
const env0_4 = sortedGuildRoles;
|
||||
const selectedRoleId = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsStore],
|
||||
function() {
|
||||
return GuildSettingsStore.getProps().selectedRoleId;
|
||||
});
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberCountStore],
|
||||
function() {
|
||||
var value2 = GuildMemberCountStore.getMemberCount(guildId);
|
||||
var value3 = 0;
|
||||
var r3 = value2 ?? value3;
|
||||
return r3 > value3 && r3 <= 10000 && guildLoaded;
|
||||
}, [guildId, guildLoaded]);
|
||||
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildMemberStore],
|
||||
function() {
|
||||
return GuildMemberStore.getMembers(guildId);
|
||||
}, [guildId]);
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value7 = Reflect.apply(useState, binding, [[]]);
|
||||
const binding2 = env0_3;
|
||||
const value8 = binding2(value7, 2);
|
||||
let property = value8[0];
|
||||
const env0_9 = value8[1];
|
||||
useState = binding.useState;
|
||||
const value9 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value9[0];
|
||||
const env0_11 = value9[1];
|
||||
useState = binding.useState;
|
||||
const value10 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property3 = value10[0];
|
||||
const env0_13 = value10[1];
|
||||
useState = binding.useState;
|
||||
const value11 = binding2(Reflect.apply(useState, binding, [_fun113352]), 2);
|
||||
const property4 = value11[0];
|
||||
value11[1];
|
||||
const value12 = binding.useMemo(_fun113354, [guildId, value6, property, selectedRoleId, property2]);
|
||||
const value13 = value12.length - 1;
|
||||
binding.useEffect(_fun113357, [guild, value2]);
|
||||
binding.useEffect(_fun113360, [value5, guildId]);
|
||||
binding.useEffect(_fun113361, [guildId, guildLoaded, property4]);
|
||||
useState = binding.useState;
|
||||
const value14 = binding2(Reflect.apply(useState, binding, ['']), 2);
|
||||
property = value14[0];
|
||||
const env0_18 = value14[1];
|
||||
const value15 = binding.useCallback(_fun113363, [guildLoaded, guildId, property4]);
|
||||
binding.useEffect(_fun113364, [value12, property, property3]);
|
||||
const value16 = binding.useCallback(_fun113365, [guild, value13, sortedGuildRoles]);
|
||||
const value17 = binding.useCallback(function(a0) {
|
||||
return a0.userId;
|
||||
}, []);
|
||||
const jsxRuntimeEnv0_16Binding = jsxRuntimeEnv0_16;
|
||||
const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const view = <View style={styles.searchFieldContainer}><SearchField size="md" placeholder={Reflect.apply(string,
|
||||
intl, [t.pYHobK])} onChange={value15} isRound /></View>;
|
||||
if (value12.length !== 0) {
|
||||
FlashList = (require(8416) /* metro dependency 8416: flashList */).FlashList;
|
||||
object = {keyExtractor: value17, data: value12, renderItem: value16, estimatedItemSize: value3};
|
||||
object2 = {};
|
||||
object2.paddingBottom = bottom + (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.contentContainerStyle = object2;
|
||||
r8 = <FlashList {...object} />;
|
||||
} else {
|
||||
EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
|
||||
r8 = <EmptyState Illustration={(require(8754) /* metro dependency 8754: NoResults */).NoResults} title={intl.string(t.qVQ9ud)} body={intl.string(t.oB9grQ)} />;
|
||||
}
|
||||
const view2 = <View style={styles.containerInner}>{view}{r8}</View>;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{view2}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113344(a0) { // fn#113344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:1709, offset: 0x023f54a2, size: 69 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component role={a0} guildId={guild.id} key={a0.id} />)(importDefault(11428) /* metro dependency 11428: RolePill */);
|
||||
}
|
||||
|
||||
function onPress_113346() { // fn#113346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:2217, offset: 0x023f54e7, size: 50 bytes, params: 1, frame: 14
|
||||
const binding = env0_2;
|
||||
const push = binding.push;
|
||||
const MEMBER_EDIT = GuildSettingsSections.MEMBER_EDIT;
|
||||
const userId = guildMember.userId;
|
||||
Reflect.apply(push, binding, [MEMBER_EDIT, {userId: userId}]);
|
||||
}
|
||||
|
||||
function _fun113352() { // fn#113352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:3049, offset: 0x023f5b17, size: 63 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(7234) /* metro dependency 7234: autocompleter */;
|
||||
const binding = env1_17;
|
||||
value = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
|
||||
const defaultImport2 = new defaultImport(_fun113353, binding, 100);
|
||||
return defaultImport2 instanceof Object ? defaultImport2 : value;
|
||||
}
|
||||
|
||||
function _fun113354() { // fn#113354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:3129, offset: 0x023f5b74, size: 298 bytes, params: 1, frame: 23
|
||||
var r4;
|
||||
var r3;
|
||||
var r11;
|
||||
var value3;
|
||||
var done;
|
||||
var value4;
|
||||
var getUser;
|
||||
var userId;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var type;
|
||||
var AutocompleterResultTypes;
|
||||
var USER;
|
||||
var getMember;
|
||||
var guildIdBinding;
|
||||
var record;
|
||||
var id;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
const items2 = [];
|
||||
const closure = guildRoleIsFiltered;
|
||||
var value;
|
||||
const binding = env0_10;
|
||||
const _createForOfIteratorHelperLoose_113339Binding = _createForOfIteratorHelperLoose_113339;
|
||||
if (binding) {
|
||||
value8 = _createForOfIteratorHelperLoose_113339Binding(env0_8);
|
||||
value9 = value8();
|
||||
done = value9.done;
|
||||
if (!done) {
|
||||
r3 = value9;
|
||||
while (true) {
|
||||
value10 = r3.value;
|
||||
type = value10.type;
|
||||
AutocompleterResultTypes = (require(7234) /* metro dependency 7234: autocompleter */).AutocompleterResultTypes;
|
||||
USER = AutocompleterResultTypes.USER;
|
||||
if (type === USER) {
|
||||
getMember = GuildMemberStore.getMember;
|
||||
guildIdBinding = guildId;
|
||||
record = value10.record;
|
||||
id = record.id;
|
||||
value11 = Reflect.apply(getMember, GuildMemberStore, [guildIdBinding, id]);
|
||||
value12 = value11 == null;
|
||||
if (value12) {
|
||||
r11 = value12;
|
||||
continue;
|
||||
}
|
||||
value13 = closure(value11);
|
||||
r11 = value13;
|
||||
if (r11) {
|
||||
break;
|
||||
}
|
||||
items2.push(value11);
|
||||
break;
|
||||
}
|
||||
value14 = value8();
|
||||
done = value14.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value14;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
value = _createForOfIteratorHelperLoose_113339Binding(env0_7);
|
||||
value3 = value();
|
||||
done = value3.done;
|
||||
if (!done) {
|
||||
r4 = value3;
|
||||
while (true) {
|
||||
value4 = r4.value;
|
||||
getUser = UserStore.getUser;
|
||||
userId = value4.userId;
|
||||
value5 = Reflect.apply(getUser, UserStore, [userId]) == null;
|
||||
if (value5) {
|
||||
r3 = value5;
|
||||
} else {
|
||||
value6 = closure(value4);
|
||||
r3 = value6;
|
||||
}
|
||||
if (r3) {
|
||||
continue;
|
||||
}
|
||||
items2.push(value4);
|
||||
value7 = value();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r4 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
items2.sort(_fun113356);
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun113357() { // fn#113357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:3868, offset: 0x023f5d9b, size: 38 bytes, params: 1, frame: 12
|
||||
const binding = env0_1;
|
||||
binding.setOptions({headerRight: headerRight_113358});
|
||||
}
|
||||
|
||||
function _fun113360() { // fn#113360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:4167, offset: 0x023f5eda, size: 68 bytes, params: 1, frame: 17
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_6) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
defaultImport.requestMembers(guildId, '', 10000, false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun113361() { // fn#113361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:4234, offset: 0x023f5f1e, size: 60 bytes, params: 1, frame: 13
|
||||
if (guildLoaded) {
|
||||
env0_14.setOptions({userFilters: {guild: guildId, strict: true}});
|
||||
}
|
||||
return _fun113362;
|
||||
}
|
||||
|
||||
function _fun113363(a0) { // fn#113363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:4449, offset: 0x023f5fb5, size: 116 bytes, params: 2, frame: 16
|
||||
var binding;
|
||||
const value2 = undefined;
|
||||
env0_18(a0);
|
||||
const value4 = a0.trim() !== '';
|
||||
env0_11(value4);
|
||||
if (value4) {
|
||||
env0_13(true);
|
||||
binding = env0_14;
|
||||
binding.search(a0, guildLoaded ? guildId : value2);
|
||||
} else {
|
||||
env0_14.clear();
|
||||
env0_13(false);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun113364() { // fn#113364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:4558, offset: 0x023f6029, size: 228 bytes, params: 1, frame: 17
|
||||
var r2;
|
||||
var length;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value;
|
||||
if (env0_17.trim() !== '') {
|
||||
if (!env0_12) {
|
||||
length = env0_15.length;
|
||||
if (length > 0) {
|
||||
value = environment.__proto__;
|
||||
value = intl.formatToPlainString(t.ZGVL3g, {count: length});
|
||||
r2 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = intl.string(t.oB9grQ);
|
||||
r2 = value;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
(require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer.announce(r2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun113365({item, index}) { // fn#113365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:4791, offset: 0x023f610d, size: 83 bytes, params: 2, frame: 16
|
||||
return ((Component) => <Component guild={guild} guildMember={item} sortedGuildRoles={sortedGuildRoles} start={index === 0} end={index === env0_16} />)(env1_19);
|
||||
}
|
||||
|
||||
function _fun113353(a0) { // fn#113353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:3068, offset: 0x023f5b56, size: 30 bytes, params: 2, frame: 12
|
||||
env1_9(a0);
|
||||
env1_13(false);
|
||||
}
|
||||
|
||||
function guildRoleIsFiltered(a0) { // fn#113355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:3163, offset: 0x023f5c9e, size: 103 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var roles;
|
||||
let value = environment.__proto__;
|
||||
const value2 = selectedRoleId != null;
|
||||
if (value2) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
moduleValue = require(9088) /* metro dependency 9088: ChannelPermissionsUtils */;
|
||||
r0 = !moduleValue.isEveryoneRoleId(guildId, selectedRoleId);
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
if (r0) {
|
||||
roles = a0.roles;
|
||||
value = roles.indexOf(selectedRoleId);
|
||||
value = value === -1;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun113356(a0, a1) { // fn#113356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:3596, offset: 0x023f5d05, size: 150 bytes, params: 3, frame: 15
|
||||
var r0;
|
||||
var value;
|
||||
const nick = a0.nick;
|
||||
if (nick != null) {
|
||||
r0 = nick;
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = UserStore.getUser(a0.userId);
|
||||
r0 = value?.username;
|
||||
}
|
||||
value = '';
|
||||
return (r0 ?? value).localeCompare(a1.nick ?? UserStore.getUser(a1.userId)?.username ?? value);
|
||||
}
|
||||
|
||||
function headerRight_113358() { // fn#113358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:3899, offset: 0x023f5dc1, size: 123 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var r4;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
if (guild != null) {
|
||||
value = require(14998) /* metro dependency 14998: showMembersManagementActionSheet */;
|
||||
value = value.getMembersManagementActions({guild: guild});
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = [];
|
||||
}
|
||||
return (
|
||||
<ContextMenu items={r4}>
|
||||
{children_113359}
|
||||
</ContextMenu>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113362() { // fn#113362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:4290, offset: 0x023f5f5a, size: 91 bytes, params: 1, frame: 15
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var selectRole;
|
||||
var defaultImport2;
|
||||
if (guildLoaded) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
selectRole = defaultImport.selectRole;
|
||||
defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
Reflect.apply(selectRole, defaultImport, [defaultImport2.castGuildIdAsEveryoneGuildRoleId(guildId)]);
|
||||
}
|
||||
env1_14.destroy();
|
||||
}
|
||||
|
||||
function headerRight_113358Children(a0) { // fn#113359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15194:4003, owner: headerRight_113358.children, offset: 0x023f5e3c, size: 158 bytes, params: 2, frame: 21
|
||||
const ref = a0.ref;
|
||||
const value = Object.create(null);
|
||||
value.ref = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(9139) /* metro dependency 9139 */};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ogxXGq);
|
||||
headerActionButtonProps.ref = ref;
|
||||
copyDataProperties(headerActionButtonProps, value2, value);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 14995; source: modules/guild_settings/native/GuildSettingsModalMembersWithTabs.tsx; dependencies: [31, 27, 1867, 33, 4501, 697, 1478, 14596, 1244, 14996, 14997, 15003, 3972, 1484, 8853, 8811, 14998, 5277, 9139, 8859, 8859, 8861, 2] */
|
||||
function _fun113329(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:6, offset: 0x023f46f7, size: 292 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value2.jsx;
|
||||
const env0_7 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
const env0_8 = Reflect.apply(createStyles, createStylesModule, [{container: {flex: 1,
|
||||
backgroundColor: BACKGROUND_BASE_LOWER}, content: {flex: 1}, tabContainer: {'marginTop': 12, 'minHeight': 32}}]);
|
||||
value = value.memo(_fun113330);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalMembersWithTabs.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun113330({guildId}) { // fn#113330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:324, offset: 0x023f481b, size: 445 bytes, params: 2, frame: 23
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const useSubmittedGuildJoinRequestTotalModule = require(14596) /* metro dependency 14596: useSubmittedGuildJoinRequestTotal */;
|
||||
const useSubmittedGuildJoinRequestTotal = useSubmittedGuildJoinRequestTotalModule.useSubmittedGuildJoinRequestTotal;
|
||||
const r8 = Reflect.apply(useSubmittedGuildJoinRequestTotal, useSubmittedGuildJoinRequestTotalModule,
|
||||
[{guildId: guildId}]) ?? 0;
|
||||
const styles = useStyles();
|
||||
const value4 = env0_3.useMemo(_fun113331, [guildId, r8]);
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const value6 = (require(8853) /* metro dependency 8853: SegmentedControlStateNative */).useSegmentedControlState({pageWidth: width,
|
||||
items: value4, defaultIndex: r8 > 0 ? 1 : 0, onSetActiveIndex: onSetActiveIndex_113332});
|
||||
const value7 = env0_3.useCallback(_fun113336, []);
|
||||
const Tabs = (require(8859) /* metro dependency 8859: TabsNative */).Tabs;
|
||||
const view = <View style={styles.tabContainer}><Tabs state={value6} grow formatCount={value7} /></View>;
|
||||
const SegmentedControlPages = (require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
<View style={styles.content}>
|
||||
<SegmentedControlPages state={value6} />
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113331() { // fn#113331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:460, offset: 0x023f49d8, size: 594 bytes, params: 1, frame: 24
|
||||
let object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const NOOm1Z = (require(1244) /* metro dependency 1244: indexNative */).t.NOOm1Z;
|
||||
object2.label = Reflect.apply(string, intl, [NOOm1Z]);
|
||||
const MemberSafetyPageTab = (require(14996) /* metro dependency 14996: MemberSafetyPageTypes */).MemberSafetyPageTab;
|
||||
const ALL_MEMBERS = MemberSafetyPageTab.ALL_MEMBERS;
|
||||
object2.id = ALL_MEMBERS;
|
||||
object2.page = ((Component) => <Component guildId={guildId} />)(importDefault(14997) /* metro dependency 14997: GuildSettingsModalMembers */);
|
||||
const items2 = [object2];
|
||||
object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4eQVBO']);
|
||||
const PENDING = MemberSafetyPageTab.PENDING;
|
||||
object2.id = PENDING;
|
||||
object2.count = env0_1 > 0 ? env0_1 : value2;
|
||||
const GuildSettingsModalMemberApplications = importDefault(15003) /* metro dependency 15003: GuildSettingsModalMemberApplications */;
|
||||
guildIdBinding = guildId;
|
||||
const GuildJoinRequestApplicationStatuses = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses;
|
||||
const SUBMITTED = GuildJoinRequestApplicationStatuses.SUBMITTED;
|
||||
object2.page = <GuildSettingsModalMemberApplications guildId={guildIdBinding} applicationStatus={SUBMITTED} />;
|
||||
items2[1] = object2;
|
||||
object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bSZkla);
|
||||
let REJECTED = MemberSafetyPageTab.REJECTED;
|
||||
object2.id = REJECTED;
|
||||
value = GuildSettingsModalMemberApplications;
|
||||
REJECTED = GuildJoinRequestApplicationStatuses.REJECTED;
|
||||
object2.page = ((Component) => <Component guildId={guildIdBinding} applicationStatus={REJECTED} />)(value);
|
||||
items2[2] = object2;
|
||||
object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.aURgY2);
|
||||
let APPROVED = MemberSafetyPageTab.APPROVED;
|
||||
object2.id = APPROVED;
|
||||
value = GuildSettingsModalMemberApplications;
|
||||
APPROVED = GuildJoinRequestApplicationStatuses.APPROVED;
|
||||
object2.page = ((Component) => <Component guildId={guildIdBinding} applicationStatus={APPROVED} />)(value);
|
||||
items2[3] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function onSetActiveIndex_113332(a0) { // fn#113332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:1297, offset: 0x023f4c2a, size: 107 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
var value;
|
||||
var binding;
|
||||
if (a0 === 0) {
|
||||
value = environment.__proto__;
|
||||
var env0_0 = GuildStore.getGuild(guildId);
|
||||
binding = env0_2;
|
||||
binding.setOptions({headerRight: headerRight_113333});
|
||||
} else {
|
||||
env0_2.setOptions({headerRight: function() {
|
||||
return null;
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun113336(a0) { // fn#113336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:1658, offset: 0x023f4dae, size: 70 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(8859) /* metro dependency 8859: TabsNative */;
|
||||
value = value.defaultCountFormatter(a0);
|
||||
return '(' + value + ')';
|
||||
}
|
||||
|
||||
function onSetActiveIndex_113332HeaderRight() { // fn#113333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:1357, owner: onSetActiveIndex_113332.headerRight, offset: 0x023f4c95, size: 123 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var r4;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
if (env0_0 != null) {
|
||||
value = require(14998) /* metro dependency 14998: showMembersManagementActionSheet */;
|
||||
value = value.getMembersManagementActions({guild: env0_0});
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = [];
|
||||
}
|
||||
return (
|
||||
<ContextMenu items={r4}>
|
||||
{children_113334}
|
||||
</ContextMenu>
|
||||
);
|
||||
}
|
||||
|
||||
function headerRightChildren(a0) { // fn#113334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:1459, owner: onSetActiveIndex_113332.headerRight.children, offset: 0x023f4d10, size: 158 bytes, params: 2, frame: 21
|
||||
const ref = a0.ref;
|
||||
const value = Object.create(null);
|
||||
value.ref = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(9139) /* metro dependency 9139 */};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ogxXGq);
|
||||
headerActionButtonProps.ref = ref;
|
||||
copyDataProperties(headerActionButtonProps, value2, value);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Metro module 15986; source: modules/guild_settings/native/GuildSettingsModalMembersWrapper.tsx; dependencies: [31, 33, 6855, 14995, 14997, 2] */
|
||||
function _fun123658(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16194:6, offset: 0x025968f0, size: 148 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value.memo(_fun123659);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalMembersWrapper.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun123659({guildId}) { // fn#123659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16194:130, offset: 0x02596984, size: 94 bytes, params: 2, frame: 16
|
||||
return ((Component) => <Component guildId={guildId} />)(importDefault(require(dependencyMap[2]).useCanReviewGuildMemberApplications(guildId) ? dependencyMap[3] : dependencyMap[4]));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,333 @@
|
||||
/* Metro module 16127; source: modules/guild_settings/native/GuildSettingsModalOfficialMessages.tsx; dependencies: [57, 31, 27, 4502, 1867, 9113, 6233, 4503, 482, 33, 4501, 697, 1244, 13730, 11256, 13732, 4501, 1484, 566, 9112, 5282, 5277, 4080, 14392, 1962, 8853, 4017, 6238, 13187, 673, 4573, 9221, 3826, 6858, 674, 1305, 13745, 2] */
|
||||
function _fun124477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:6, offset: 0x025b9561, size: 963 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const StyleSheet = value.StyleSheet;
|
||||
const env0_5 = value.View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
const TABLE_ROW_PADDING = (require(6233) /* metro dependency 6233: TableRowConstants */).TABLE_ROW_PADDING;
|
||||
value = require(4503) /* metro dependency 4503: MessageConstants */;
|
||||
const env0_9 = value.DEFAULT_GUILD_OFFICIAL_COLOR;
|
||||
const env0_10 = value.GUILD_OFFICIAL_HIGHLIGHT_ALPHA;
|
||||
const env0_11 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.container = {gap: PX_8, height: '100%'};
|
||||
const object7 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.gap = PX_16;
|
||||
object7.alignItems = 'center';
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.marginBottom = PX_16;
|
||||
object2.segmentedControlContainer = object7;
|
||||
object2.trailingColorContainer = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
object2.colorBlock = {'marginHorizontal': 0, 'marginVertical': 0, 'marginRight': 8, 'minWidth': 24, 'height': 24,
|
||||
'borderRadius': 3};
|
||||
const object8 = {paddingHorizontal: TABLE_ROW_PADDING};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object8.gap = PX_8;
|
||||
object2.chatSection = object8;
|
||||
const object9 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object9.paddingVertical = PX_24;
|
||||
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
object9.borderWidth = StyleSheet.hairlineWidth;
|
||||
object2.chatContainer = object9;
|
||||
const object10 = {flexDirection: 'row'};
|
||||
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object10.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.gap = PX_8;
|
||||
object2.chatContainerInner = object10;
|
||||
object2.chatContent = {flex: 1};
|
||||
object2.chatHeader = {'flexDirection': 'row', 'alignItems': 'baseline', 'gap': 6};
|
||||
object2.chatTimestamp = {marginTop: -8};
|
||||
const env0_14 = Reflect.apply(createStyles, value, [object2]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createAnimatedThemedStyles = value.createAnimatedThemedStyles;
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const env0_15 = Reflect.apply(createAnimatedThemedStyles, value, [{backgroundColor: BACKGROUND_BASE_LOW}]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createAnimatedThemedStyles = value.createAnimatedThemedStyles;
|
||||
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
|
||||
const env0_16 = Reflect.apply(createAnimatedThemedStyles, value, [{borderColor: BORDER_STRONG}]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createAnimatedThemedStyles = value.createAnimatedThemedStyles;
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
const env0_17 = Reflect.apply(createAnimatedThemedStyles, value, [{color: TEXT_DEFAULT}]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createAnimatedThemedStyles = value.createAnimatedThemedStyles;
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
const env0_18 = Reflect.apply(createAnimatedThemedStyles, value, [{color: TEXT_MUTED}]);
|
||||
object2 = {code: 'function GuildSettingsModalOfficialMessagesTsx1(){const{activeIndex}=this.__closure;return activeIndex.get();}'};
|
||||
object2 = {code: 'function GuildSettingsModalOfficialMessagesTsx2(activeIndex){const{runOnJS,setCurrentThemeIndex}=this.__closure;runOnJS(setCurrentThemeIndex)(Math.round(activeIndex));}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalOfficialMessages.tsx');
|
||||
exports.default = GuildSettingsModalOfficialMessages;
|
||||
}
|
||||
|
||||
function MessagePreview_124478({animatedStyles, selectedColor, theme}) { // fn#124478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:1772, offset: 0x025b9924, size: 777 bytes, params: 2, frame: 39
|
||||
const styles = useStyles();
|
||||
const value2 = env0_4.useMemo(_fun124479, []);
|
||||
const internal = (importDefault(697) /* metro dependency 697: native */).internal;
|
||||
const resolveSemanticColor = internal.resolveSemanticColor;
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
const value5 = (require(6858) /* metro dependency 6858: GuildOfficialMessageUtils */).getAccessibleGuildOfficialTextColor(selectedColor,
|
||||
Reflect.apply(resolveSemanticColor, internal, [theme, BACKGROUND_BASE_LOWER]),
|
||||
AccessibilityStore.desaturateUserColors ? AccessibilityStore.saturation : 1).hex();
|
||||
const value6 = (importDefault(674) /* metro dependency 674 */)(selectedColor);
|
||||
const value8 = value6.alpha(GUILD_OFFICIAL_HIGHLIGHT_ALPHA).hex();
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items3 = [styles.chatContainer];
|
||||
items3[1] = animatedStyles.borderStrong;
|
||||
items3[2] = animatedStyles.bgBaseLow;
|
||||
const items2 = [styles.chatContainerInner];
|
||||
items2[1] = {backgroundColor: value8};
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const avatar = <Avatar source={importDefault(13745) /* metro dependency 13745 */} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const textStrong = animatedStyles.textStrong;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const view = <View style={styles.chatHeader}><Text animated style={textStrong} variant="text-md/semibold" lineClamp={1}>{Reflect.apply(string,
|
||||
intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.cqpybK])}</Text><Text animated variant="text-xs/medium" style={[styles.chatTimestamp,
|
||||
animatedStyles.textMuted]}>{value2}</Text></View>;
|
||||
const object = {color: value5};
|
||||
string = intl.string;
|
||||
const Mi9Kbe = (require(1244) /* metro dependency 1244: indexNative */).t.Mi9Kbe;
|
||||
return (
|
||||
<View2 style={items3} pointerEvents="none">
|
||||
<View style={items2}>
|
||||
{avatar}
|
||||
<View style={styles.chatContent}>
|
||||
{view}
|
||||
<Text
|
||||
animated
|
||||
variant="text-md/normal"
|
||||
style={object}
|
||||
>
|
||||
{Reflect.apply(string, intl, [Mi9Kbe])}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</View2>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildSettingsModalOfficialMessages({guildId}) { // fn#124480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:2881, offset: 0x025b9c72, size: 1216 bytes, params: 2, frame: 35
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const {guild, submitting,
|
||||
hasChanges} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.guild = GuildSettingsStore.getGuild();
|
||||
object.submitting = GuildSettingsStore.isSubmitting();
|
||||
object.hasChanges = GuildSettingsStore.hasChanges();
|
||||
return object;
|
||||
});
|
||||
const env0_3 = hasChanges;
|
||||
const r20 = guild?.officialMessageColor ?? DEFAULT_GUILD_OFFICIAL_COLOR;
|
||||
const env0_4 = r20;
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
var r0;
|
||||
r0 = GuildStore.getGuild(guildId)?.officialMessageColor;
|
||||
r0 = r0 ?? DEFAULT_GUILD_OFFICIAL_COLOR;
|
||||
return r0;
|
||||
}, [guildId]);
|
||||
let binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value6 = Reflect.apply(useState, binding, [0]);
|
||||
binding = env0_3;
|
||||
const value7 = binding(value6, 2);
|
||||
const property = value7[0];
|
||||
const property2 = value7[1];
|
||||
env0_4.useEffect(function() {
|
||||
return _fun124484;
|
||||
}, [guildId]);
|
||||
env0_4.useEffect(_fun124485, [guildId, r20, value3, submitting, hasChanges]);
|
||||
const value8 = env0_4.useCallback(_fun124490, [r20, value5]);
|
||||
const binding5 = env0_4;
|
||||
useState = binding5.useState;
|
||||
const value9 = binding(Reflect.apply(useState, binding5, [0]), 2);
|
||||
const property3 = value9[0];
|
||||
const env0_7 = value9[1];
|
||||
binding = env0_4;
|
||||
let closure = _fun124492;
|
||||
const value10 = binding.useCallback(closure, []);
|
||||
const value11 = env0_4.useMemo(_fun124493, []);
|
||||
const value12 = (require(8853) /* metro dependency 8853: SegmentedControlStateNative */).useSegmentedControlState({items: value11,
|
||||
pageWidth: property3, defaultIndex: property});
|
||||
const activeIndex = value12.activeIndex;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
|
||||
closure = function() {
|
||||
return activeIndex.get();
|
||||
};
|
||||
closure.__closure = {activeIndex: activeIndex};
|
||||
closure.__workletHash = 4687220686460;
|
||||
closure.__initData = env0_19;
|
||||
const closure2 = GuildSettingsModalOfficialMessagesB;
|
||||
closure2.__closure = {runOnJS: reanimatedRexportModule.runOnJS, setCurrentThemeIndex: property2};
|
||||
closure2.__workletHash = 5332792853021;
|
||||
closure2.__initData = env0_20;
|
||||
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
|
||||
object2 = {bgBaseLow: env0_15(activeIndex), borderStrong: env0_16(activeIndex), textStrong: env0_17(activeIndex),
|
||||
textMuted: env0_18(activeIndex)};
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const tableRow = <TableRow label={Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['2uQ6wZ']])} onPress={value8} arrow trailing={<View style={styles.trailingColorContainer}>{((Component) => <Component color={r20} style={styles.colorBlock} />)(importDefault(13187) /* metro dependency 13187: ColorBlock */)}</View>} subLabel={(require(673) /* metro dependency 673: ColorUtils */).int2hex(r20)} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
string = intl.string;
|
||||
const VI0jGW = (require(1244) /* metro dependency 1244: indexNative */).t.VI0jGW;
|
||||
const items3 = [<Text variant="heading-md/semibold">{Reflect.apply(string, intl, [VI0jGW])}</Text>];
|
||||
items3[1] = <MessagePreview_124478 animatedStyles={object2} selectedColor={r20} theme={value11[property].id} />;
|
||||
const SegmentedControl = (require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl;
|
||||
items3[2] = <View style={styles.segmentedControlContainer} onLayout={value10}><SegmentedControl variant="experimental_Large" state={value12} /></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{tableRow}
|
||||
<View style={styles.chatSection}>
|
||||
{items3}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun124479() { // fn#124479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:1863, offset: 0x025b9c2d, size: 69 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(3826) /* metro dependency 3826: DateUtils */;
|
||||
const calendarFormat = value.calendarFormat;
|
||||
const Date = global.Date;
|
||||
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
const date = new Date();
|
||||
return Reflect.apply(calendarFormat, value, [date instanceof Object ? date : value2, true]);
|
||||
}
|
||||
|
||||
function _fun124483() { // fn#124483, offset: 0x025ba19d, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun124484;
|
||||
}
|
||||
|
||||
function _fun124485() { // fn#124485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:3432, offset: 0x025ba1d5, size: 95 bytes, params: 1, frame: 16
|
||||
const binding = env0_1;
|
||||
const setOptions = binding.setOptions;
|
||||
const submittingBinding = submitting;
|
||||
const value2 = undefined;
|
||||
Reflect.apply(setOptions, binding, [{headerLeft: submittingBinding ? function() {
|
||||
return null;
|
||||
} : value2, headerRight: submitting ? _fun124488 : hasChanges ? _fun124489 : value2}]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun124490() { // fn#124490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:3776, offset: 0x025ba305, size: 168 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[22]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[24]);
|
||||
value = value(dependencyMap[23], dependencyMap.paths);
|
||||
const object2 = {};
|
||||
object2.color = env0_4;
|
||||
object2.defaultColor = env0_5;
|
||||
const intl = require(dependencyMap[12]).intl;
|
||||
const string = intl.string;
|
||||
const XqMe3N = require(dependencyMap[12]).t.XqMe3N;
|
||||
object2.confirmLabel = Reflect.apply(string, intl, [XqMe3N]);
|
||||
object2.onSelect = onSelect_124491;
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'RoleColorPicker', object2]);
|
||||
}
|
||||
|
||||
function _fun124492({nativeEvent}) { // fn#124492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:4046, offset: 0x025ba3dd, size: 36 bytes, params: 2, frame: 11
|
||||
env0_7(nativeEvent.layout.width);
|
||||
}
|
||||
|
||||
function _fun124493() { // fn#124493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:4107, offset: 0x025ba401, size: 336 bytes, params: 1, frame: 21
|
||||
let object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const K2sFfo = (require(1244) /* metro dependency 1244: indexNative */).t.K2sFfo;
|
||||
object2.label = Reflect.apply(string, intl, [K2sFfo]);
|
||||
const LIGHT = ThemeTypes.LIGHT;
|
||||
object2.id = LIGHT;
|
||||
const ThemeLightIcon = (require(13730) /* metro dependency 13730: ThemeLightIcon */).ThemeLightIcon;
|
||||
object2.icon = <ThemeLightIcon />;
|
||||
object2.page = null;
|
||||
const items2 = [object2];
|
||||
object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.b8Cei3);
|
||||
const DARKER = ThemeTypes.DARKER;
|
||||
object2.id = DARKER;
|
||||
const ThemeDarkIcon = (require(11256) /* metro dependency 11256: ThemeDarkIcon */).ThemeDarkIcon;
|
||||
object2.icon = <ThemeDarkIcon />;
|
||||
object2.page = null;
|
||||
items2[1] = object2;
|
||||
object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pQwSpQ);
|
||||
const MIDNIGHT = ThemeTypes.MIDNIGHT;
|
||||
object2.id = MIDNIGHT;
|
||||
const ThemeMidnightIcon = (require(13732) /* metro dependency 13732: ThemeMidnightIcon */).ThemeMidnightIcon;
|
||||
object2.icon = <ThemeMidnightIcon />;
|
||||
object2.page = null;
|
||||
items2[2] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function GuildSettingsModalOfficialMessagesB(a0) { // fn#124495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:4650, owner: GuildSettingsModalOfficialMessages.B, offset: 0x025ba563, size: 70 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value = value.runOnJS(env0_6);
|
||||
const Math = global.Math;
|
||||
value(Math.round(a0));
|
||||
}
|
||||
|
||||
function _fun124484() { // fn#124484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:3381, offset: 0x025ba1a8, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.cancelChanges(guildId);
|
||||
}
|
||||
|
||||
function handleSaveChanges() { // fn#124486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:3459, offset: 0x025ba234, size: 57 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.saveGuild(guildId, {officialMessageColor: env1_4});
|
||||
}
|
||||
|
||||
function _fun124488() { // fn#124488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:3569, offset: 0x025ba26d, size: 45 bytes, params: 1, frame: 13
|
||||
const HeaderSubmittingIndicator = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).HeaderSubmittingIndicator;
|
||||
return <HeaderSubmittingIndicator />;
|
||||
}
|
||||
|
||||
function _fun124489() { // fn#124489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:3616, offset: 0x025ba29a, size: 107 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const handleSaveChangesBinding = handleSaveChanges;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
onPress={handleSaveChangesBinding}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function onSelect_124491(a0) { // fn#124491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16335:3927, offset: 0x025ba3ad, size: 48 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({officialMessageColor: a0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,932 @@
|
||||
/* Metro module 15872; source: modules/guild_settings/native/GuildSettingsModalOverview.tsx; dependencies: [6, 7, 15, 17, 18, 31, 1422, 1379, 1935, 4111, 3784, 3793, 1878, 9113, 661, 33, 4501, 697, 1244, 9112, 11265, 6802, 4496, 4596, 3856, 5282, 5277, 1391, 7981, 4805, 6231, 6238, 8235, 15685, 6808, 7988, 7987, 14555, 1948, 15873, 1423, 9867, 1305, 7681, 6719, 7972, 4572, 5462, 3868, 1484, 566, 2] */
|
||||
function _fun122112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:6, offset: 0x0255a49b, size: 776 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_8 = (require(1422) /* metro dependency 1422: GuildRecord */).isGuildOwnerWithRequiredMfaLevel;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildChannelStoreModule = require(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const env0_10 = guildChannelStoreModule.GUILD_SELECTABLE_CHANNELS_KEY;
|
||||
const env0_11 = guildChannelStoreModule.GUILD_VOCAL_CHANNELS_KEY;
|
||||
const guildMemberCountStore = importDefault(4111) /* metro dependency 4111: GuildMemberCountStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_17 = constantsModule.UserNotificationSettings;
|
||||
const env0_18 = constantsModule.ChannelTypes;
|
||||
const env0_19 = constantsModule.Permissions;
|
||||
const env0_20 = constantsModule.GuildFeatures;
|
||||
const env0_21 = constantsModule.HelpdeskArticles;
|
||||
const env0_22 = constantsModule.SystemChannelFlags;
|
||||
const env0_23 = constantsModule.MAX_MEMBERS_NOTIFY_ALL_MESSAGES;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_24 = value4.jsx;
|
||||
const env0_25 = value4.jsxs;
|
||||
const env0_26 = value4.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const env0_27 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [{overview: {flex: 1},
|
||||
overviewContent: {paddingTop: 16}, stackPadding: {paddingHorizontal: TABLE_ROW_PADDING}}]);
|
||||
Object = global.Object;
|
||||
const env0_28 = Object.freeze([{value: 60, label: function() {
|
||||
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.iXLF9W, {minutes: 1});
|
||||
}}, {value: 300, label: function() {
|
||||
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.iXLF9W, {minutes: 5});
|
||||
}}, {value: 900, label: function() {
|
||||
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.iXLF9W, {minutes: 15});
|
||||
}}, {value: 1800, label: function() {
|
||||
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.iXLF9W, {minutes: 30});
|
||||
}}, {value: 3600, label: function() {
|
||||
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.xCjYxK, {hours: 1});
|
||||
}}]);
|
||||
const PureComponent = value.PureComponent;
|
||||
value = _fun122121(PureComponent);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value.contextType = ThemeContext;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalOverview.tsx');
|
||||
exports.default = ConnectedGuildSettingsModalOverview;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_122113() { // fn#122113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:550, offset: 0x0255a7a3, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_122113_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun122121(a0) { // fn#122121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1376, offset: 0x0255a972, size: 517 bytes, params: 2, frame: 16
|
||||
const closure = GuildSettingsModalOverview;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'componentDidMount', value: function() {
|
||||
this.updateNavigator();
|
||||
}}, {key: 'componentDidUpdate', value: value_122149}, {key: 'updateNavigator', value: value_122150},
|
||||
{key: 'componentWillUnmount', value: value_122154}, {key: 'getError', value: function(a0) {
|
||||
var property = this.props.errors;
|
||||
return property == null || property[a0] == null ? undefined : property[a0][0];
|
||||
}}, {key: 'handleSystemChannelFlagsChange', value: value_122156}, {key: 'handleDefaultNotificationsChange',
|
||||
value: value_122157}, {key: 'renderGuildName', value: value_122158}, {key: 'renderAFKSettings',
|
||||
value: value_122159}, {key: 'renderSystemMessageSettings', value: value_122161},
|
||||
{key: 'renderDefaultNotificationSettings', value: value_122162}, {key: 'renderBoostProgressBar',
|
||||
value: value_122164}, {key: 'renderSplash', value: value_122165}, {key: 'renderSummaries', value: value_122167},
|
||||
{key: 'renderDescription', value: value_122168}, {key: 'renderBanner', value: value_122169},
|
||||
{key: 'renderDeleteGuild', value: value_122171}, {key: 'render', value: value_122172}]);
|
||||
}
|
||||
|
||||
function ConnectedGuildSettingsModalOverview({contentContainerStyle}) { // fn#122173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:14110, offset: 0x0255cdf3, size: 358 bytes, params: 2, frame: 28
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const {submitting, hasChanges, errors,
|
||||
guild} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.guild = GuildSettingsStore.getGuild();
|
||||
object.submitting = GuildSettingsStore.isSubmitting();
|
||||
object.hasChanges = GuildSettingsStore.hasChanges();
|
||||
object.errors = GuildSettingsStore.getErrors();
|
||||
return object;
|
||||
}, []);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value4 = Reflect.apply(useStateFromStores, fluxModule, [[PermissionStore], function() {
|
||||
var MANAGE_GUILD = Permissions.MANAGE_GUILD;
|
||||
return PermissionStore.can(MANAGE_GUILD, guild);
|
||||
}, [guild]]);
|
||||
const moduleValue4 = fluxModule;
|
||||
useStateFromStores = moduleValue4.useStateFromStores;
|
||||
return guild != null ? ((Component) => <Component navigation={value2} guild={guild} submitting={submitting} hasChanges={hasChanges} canManage={value4} afkChannel={Reflect.apply(useStateFromStores,
|
||||
moduleValue4, [[ChannelStore], function() {
|
||||
return ChannelStore.getChannel(guild?.afkChannelId);
|
||||
}])} systemChannel={fluxModule.useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(guild?.systemChannelId);
|
||||
})} guildMemberCount={fluxModule.useStateFromStores([GuildMemberCountStore], function() {
|
||||
return GuildMemberCountStore.getMemberCount(guild?.id);
|
||||
})} errors={errors} contentContainerStyle={contentContainerStyle} />)(env0_29) : null;
|
||||
}
|
||||
|
||||
function GuildSettingsModalOverview(a0) { // fn#122122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1388, offset: 0x0255ab77, size: 379 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, GuildSettingsModalOverview);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_6(GuildSettingsModalOverview);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_122113()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.handleNameChange = handleNameChange;
|
||||
value.handleDescriptionChange = handleDescriptionChange;
|
||||
value.handleAfkChannelChange = handleAfkChannelChange;
|
||||
value.handleSystemChannelChange = handleSystemChannelChange;
|
||||
value.handleSystemJoinMessages = handleSystemJoinMessages;
|
||||
value.handleSystemJoinMessageReplies = handleSystemJoinMessageReplies;
|
||||
value.handleSystemPremiumSubscribe = handleSystemPremiumSubscribe;
|
||||
value.handleSystemReminderNotifications = handleSystemReminderNotifications;
|
||||
value.handleSystemGuildRoleSubscriptionPurchaseMessages = handleSystemGuildRoleSubscriptionPurchaseMessages;
|
||||
value.handleSystemGuildRoleSubscriptionPurchaseMessageReplies = handleSystemGuildRoleSubscriptionPurchaseMessageReplies;
|
||||
value.handleSystemVoiceSessionMessages = handleSystemVoiceSessionMessages;
|
||||
value.handleAFKTimeoutChange = handleAFKTimeoutChange;
|
||||
value.handleDeleteServer = handleDeleteServer;
|
||||
value.handleConfirmDeleteServer = handleConfirmDeleteServer;
|
||||
value.handleSplashChange = handleSplashChange;
|
||||
value.handleSummariesToggle = handleSummariesToggle;
|
||||
value.handleBannerChange = handleBannerChange;
|
||||
value.handleOverviewSaveChanges = handleOverviewSaveChanges;
|
||||
value.handleBoostProgressBarToggle = handleBoostProgressBarToggle;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_122149(a0) { // fn#122149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:4951, offset: 0x0255b4ad, size: 110 bytes, params: 2, frame: 12
|
||||
const errors = this.props.errors;
|
||||
this.updateNavigator(a0);
|
||||
let value = a0.errors.message !== errors.message;
|
||||
if (value && errors.message != null) {
|
||||
value = environment.__proto__;
|
||||
value = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
value.presentError(errors.message);
|
||||
}
|
||||
}
|
||||
|
||||
function value_122150(a0) { // fn#122150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5122, offset: 0x0255b51b, size: 200 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
var setOptions;
|
||||
var object2;
|
||||
var intl;
|
||||
const {navigation, submitting, hasChanges} = this.props;
|
||||
let value = a0 != null;
|
||||
if (!(value && submitting === a0.submitting && hasChanges === a0.hasChanges)) {
|
||||
setOptions = navigation.setOptions;
|
||||
object2 = {};
|
||||
value = environment.__proto__;
|
||||
value = undefined;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/dp6yY']);
|
||||
object2.headerLeft = submitting ? function() {
|
||||
return null;
|
||||
} : value;
|
||||
object2.headerRight = submitting ? _fun122152 : hasChanges ? _fun122153 : value;
|
||||
Reflect.apply(setOptions, navigation, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_122154() { // fn#122154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5563, offset: 0x0255b681, size: 56 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.cancelChanges(this.props.guild.id);
|
||||
}
|
||||
|
||||
function value_122156(a0, a1) { // fn#122156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5769, offset: 0x0255b6ea, size: 99 bytes, params: 3, frame: 18
|
||||
const guild = this.props.guild;
|
||||
let value = environment.__proto__;
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const value2 = flagUtilsModule.setFlag(guild.systemChannelFlags, a0, a1);
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.updateGuild({systemChannelFlags: value2});
|
||||
}
|
||||
|
||||
function value_122157(a0) { // fn#122157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5944, offset: 0x0255b74d, size: 48 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({defaultMessageNotifications: a0});
|
||||
}
|
||||
|
||||
function value_122158() { // fn#122158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:6041, offset: 0x0255b77d, size: 163 bytes, params: 1, frame: 21
|
||||
const {guild, canManage} = this.props;
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<TextInput
|
||||
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dBih7e)}
|
||||
value={guild.name}
|
||||
isDisabled={!canManage}
|
||||
onChange={this.handleNameChange}
|
||||
errorMessage={this.getError('name')}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122159() { // fn#122159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:6296, offset: 0x0255b820, size: 692 bytes, params: 1, frame: 31
|
||||
var environment;
|
||||
var r17;
|
||||
var value2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var value4;
|
||||
var moduleValue;
|
||||
const {guild, canManage, afkChannel} = this.props;
|
||||
const value = null;
|
||||
if (value != afkChannel) {
|
||||
value4 = environment.__proto__;
|
||||
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
r17 = moduleValue.computeChannelName(afkChannel, UserStore, RelationshipStore);
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
r17 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wGiHkK);
|
||||
}
|
||||
const r1 = value != guild.afkChannelId ? env1_28.find(function({value}) {
|
||||
return value === guild.afkTimeout;
|
||||
}) : value;
|
||||
const r13 = value != r1 ? r1.label() : env1_28[1].label();
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const tableRowGroupProps = {title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qyGmGt),
|
||||
description: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ffEOKP), hasIcons: false};
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const string = intl.string;
|
||||
const KuYcnU = (require(1244) /* metro dependency 1244: indexNative */).t.KuYcnU;
|
||||
const value11 = !canManage;
|
||||
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
let TrailingText = TableRow2.TrailingText;
|
||||
const tableRow = <TableRow label={Reflect.apply(string, intl,
|
||||
[KuYcnU])} disabled={value11} trailing={<TrailingText text={r17} />} arrow onPress={this.handleAfkChannelChange} />;
|
||||
const tableRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.brhYaR),
|
||||
disabled: canManage ? value == guild.afkChannelId : value11};
|
||||
const TableRow3 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
TrailingText = TableRow3.TrailingText;
|
||||
tableRowProps.trailing = <TrailingText text={r13} />;
|
||||
tableRowProps.arrow = true;
|
||||
tableRowProps.onPress = this.handleAFKTimeoutChange;
|
||||
return (
|
||||
<TableRowGroup {...tableRowGroupProps}>
|
||||
{tableRow}
|
||||
<TableRow {...tableRowProps} />
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122161() { // fn#122161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:7122, offset: 0x0255baef, size: 1700 bytes, params: 1, frame: 35
|
||||
var r14;
|
||||
var r8;
|
||||
var r7;
|
||||
var r5;
|
||||
var value;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var moduleValue;
|
||||
var moduleValue3;
|
||||
var moduleValue4;
|
||||
var moduleValue6;
|
||||
var object8;
|
||||
var moduleValue11;
|
||||
var object9;
|
||||
var moduleValue12;
|
||||
var object10;
|
||||
var moduleValue13;
|
||||
const {guild, canManage, systemChannel} = this.props;
|
||||
if (systemChannel != null) {
|
||||
value = environment.__proto__;
|
||||
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
value = moduleValue.computeChannelName(systemChannel, UserStore, RelationshipStore);
|
||||
r14 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ibUhoa);
|
||||
r14 = value;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
const isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2 = (require(8235) /* metro dependency 8235: GuildRoleSubscriptionSystemMessageUtils */).isEligibleForRoleSubscriptionPurchaseSystemMessageSettings(guild);
|
||||
if (isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2) {
|
||||
r8 = isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2;
|
||||
} else {
|
||||
moduleValue3 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
r8 = moduleValue3.hasFlag(guild.systemChannelFlags,
|
||||
SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS);
|
||||
}
|
||||
if (isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2) {
|
||||
r7 = isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2;
|
||||
} else {
|
||||
moduleValue4 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
r7 = moduleValue4.hasFlag(guild.systemChannelFlags,
|
||||
SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES);
|
||||
}
|
||||
const pastVcActivityMessagesExperimentModule = require(15685) /* metro dependency 15685: PastVcActivityMessagesExperiment */;
|
||||
const isPastVcActivityMessagesEnabled2 = pastVcActivityMessagesExperimentModule.isPastVcActivityMessagesEnabled(guild.id,
|
||||
'GuildSettingsModalOverview');
|
||||
if (isPastVcActivityMessagesEnabled2) {
|
||||
r5 = isPastVcActivityMessagesEnabled2;
|
||||
} else {
|
||||
moduleValue6 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
r5 = moduleValue6.hasFlag(guild.systemChannelFlags, SystemChannelFlags.SUPPRESS_VOICE_SESSION_NOTIFICATIONS);
|
||||
}
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const object2 = {};
|
||||
let string = intl.string;
|
||||
const DP39VH = (require(1244) /* metro dependency 1244: indexNative */).t.DP39VH;
|
||||
object2.title = Reflect.apply(string, intl, [DP39VH]);
|
||||
string = intl.string;
|
||||
const BT9zR3 = (require(1244) /* metro dependency 1244: indexNative */).t.BT9zR3;
|
||||
object2.description = Reflect.apply(string, intl, [BT9zR3]);
|
||||
object2.hasIcons = false;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
string = intl.string;
|
||||
const GK18KJ = (require(1244) /* metro dependency 1244: indexNative */).t.GK18KJ;
|
||||
const value2 = !canManage;
|
||||
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const TrailingText = TableRow2.TrailingText;
|
||||
const items2 = [<TableRow label={Reflect.apply(string, intl,
|
||||
[GK18KJ])} disabled={value2} trailing={<TrailingText text={r14} />} arrow onPress={this.handleSystemChannelChange} />];
|
||||
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
||||
const tableSwitchRowProps2 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+f0bXQ']),
|
||||
disabled: value2};
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
let hasFlag = flagUtilsModule.hasFlag;
|
||||
let systemChannelFlags = guild.systemChannelFlags;
|
||||
const SUPPRESS_JOIN_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_JOIN_NOTIFICATIONS;
|
||||
tableSwitchRowProps2.value = !Reflect.apply(hasFlag, flagUtilsModule, [systemChannelFlags,
|
||||
SUPPRESS_JOIN_NOTIFICATIONS]);
|
||||
tableSwitchRowProps2.onValueChange = this.handleSystemJoinMessages;
|
||||
items2[1] = <TableSwitchRow {...tableSwitchRowProps2} />;
|
||||
const tableSwitchRowProps3 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['72k7jf']),
|
||||
disabled: value2};
|
||||
const moduleValue8 = flagUtilsModule;
|
||||
hasFlag = moduleValue8.hasFlag;
|
||||
systemChannelFlags = guild.systemChannelFlags;
|
||||
const SUPPRESS_JOIN_NOTIFICATION_REPLIES = SystemChannelFlags.SUPPRESS_JOIN_NOTIFICATION_REPLIES;
|
||||
tableSwitchRowProps3.value = !Reflect.apply(hasFlag, moduleValue8, [systemChannelFlags,
|
||||
SUPPRESS_JOIN_NOTIFICATION_REPLIES]);
|
||||
tableSwitchRowProps3.onValueChange = this.handleSystemJoinMessageReplies;
|
||||
items2[2] = <TableSwitchRow {...tableSwitchRowProps3} />;
|
||||
const tableSwitchRowProps4 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2L8NCN']),
|
||||
disabled: value2};
|
||||
const moduleValue9 = flagUtilsModule;
|
||||
hasFlag = moduleValue9.hasFlag;
|
||||
systemChannelFlags = guild.systemChannelFlags;
|
||||
const SUPPRESS_PREMIUM_SUBSCRIPTIONS = SystemChannelFlags.SUPPRESS_PREMIUM_SUBSCRIPTIONS;
|
||||
tableSwitchRowProps4.value = !Reflect.apply(hasFlag, moduleValue9, [systemChannelFlags,
|
||||
SUPPRESS_PREMIUM_SUBSCRIPTIONS]);
|
||||
tableSwitchRowProps4.onValueChange = this.handleSystemPremiumSubscribe;
|
||||
items2[3] = <TableSwitchRow {...tableSwitchRowProps4} />;
|
||||
const tableSwitchRowProps5 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NvnW+V']),
|
||||
disabled: value2};
|
||||
const moduleValue10 = flagUtilsModule;
|
||||
hasFlag = moduleValue10.hasFlag;
|
||||
systemChannelFlags = guild.systemChannelFlags;
|
||||
const SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_GUILD_REMINDER_NOTIFICATIONS;
|
||||
tableSwitchRowProps5.value = !Reflect.apply(hasFlag, moduleValue10, [systemChannelFlags,
|
||||
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS]);
|
||||
tableSwitchRowProps5.onValueChange = this.handleSystemReminderNotifications;
|
||||
items2[4] = <TableSwitchRow {...tableSwitchRowProps5} />;
|
||||
if (r8) {
|
||||
var tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['54n19R']),
|
||||
|
||||
disabled: value2};
|
||||
moduleValue11 = flagUtilsModule;
|
||||
tableSwitchRowProps.value = !moduleValue11.hasFlag(guild.systemChannelFlags,
|
||||
SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS);
|
||||
tableSwitchRowProps.onValueChange = this.handleSystemGuildRoleSubscriptionPurchaseMessages;
|
||||
r8 = <TableSwitchRow {...tableSwitchRowProps} />;
|
||||
}
|
||||
items2[5] = r8;
|
||||
if (r7) {
|
||||
var tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['IhF5d+']),
|
||||
|
||||
disabled: value2};
|
||||
moduleValue12 = flagUtilsModule;
|
||||
tableSwitchRowProps.value = !moduleValue12.hasFlag(guild.systemChannelFlags,
|
||||
SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES);
|
||||
tableSwitchRowProps.onValueChange = this.handleSystemGuildRoleSubscriptionPurchaseMessageReplies;
|
||||
r7 = <TableSwitchRow {...tableSwitchRowProps} />;
|
||||
}
|
||||
items2[6] = r7;
|
||||
if (r5) {
|
||||
var tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.IMtHBW),
|
||||
|
||||
disabled: value2};
|
||||
moduleValue13 = flagUtilsModule;
|
||||
tableSwitchRowProps.value = !moduleValue13.hasFlag(guild.systemChannelFlags,
|
||||
SystemChannelFlags.SUPPRESS_VOICE_SESSION_NOTIFICATIONS);
|
||||
tableSwitchRowProps.onValueChange = this.handleSystemVoiceSessionMessages;
|
||||
r5 = <TableSwitchRow {...tableSwitchRowProps} />;
|
||||
}
|
||||
items2[7] = r5;
|
||||
return (
|
||||
<TableRowGroup {...object2}>
|
||||
{items2}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122162() { // fn#122162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:9731, offset: 0x0255c193, size: 513 bytes, params: 1, frame: 25
|
||||
const {guild, canManage, guildMemberCount} = this.props;
|
||||
const value2 = undefined;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
const object3 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object3.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['23TVhl']]);
|
||||
string = intl.string;
|
||||
const PA2MZv = (require(1244) /* metro dependency 1244: indexNative */).t.PA2MZv;
|
||||
object3.description = Reflect.apply(string, intl, [PA2MZv]);
|
||||
object3.value = guild.defaultMessageNotifications;
|
||||
object3.onChange = onChange_122163;
|
||||
object3.hasIcons = false;
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
const object4 = {};
|
||||
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
|
||||
object4.value = ALL_MESSAGES;
|
||||
object4.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['n/bTaY']);
|
||||
object4.subLabel = guildMemberCount != null && guildMemberCount >= MAX_MEMBERS_NOTIFY_ALL_MESSAGES ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['L+P4t2']) : value2;
|
||||
const value4 = !canManage;
|
||||
object4.disabled = value4;
|
||||
const tableRadioRow = <TableRadioRow {...object4} />;
|
||||
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
|
||||
const format = intl.format;
|
||||
const L2hmYy = (require(1244) /* metro dependency 1244: indexNative */).t.L2hmYy;
|
||||
return (
|
||||
<TableRadioGroup {...object3}>
|
||||
{tableRadioRow}
|
||||
<TableRadioRow
|
||||
value={ONLY_MENTIONS}
|
||||
label={Reflect.apply(format, intl, [L2hmYy, {}])}
|
||||
disabled={value4}
|
||||
/>
|
||||
</TableRadioGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122164() { // fn#122164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:10386, offset: 0x0255c3ad, size: 327 bytes, params: 1, frame: 24
|
||||
var r0;
|
||||
var TableRowGroup;
|
||||
var object;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const {guild, canManage} = this.props;
|
||||
const value = environment.__proto__;
|
||||
if ((require(14555) /* metro dependency 14555: MobileBoostProgressBarExperiment */).getMobileBoostProgressBarEnabled('GuildSettingsModalOverview')) {
|
||||
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
r0 = <TableRowGroup title={intl.string(t['0morVD'])} description={intl.string(t.O87mwg)} hasIcons={false}>{((TableSwitchRow) => <TableSwitchRow label={intl.string(t.Dl4mJS)} disabled={!canManage} value={guild.premiumProgressBarEnabled} onValueChange={this.handleBoostProgressBarToggle} />)((require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow)}</TableRowGroup>;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_122165() { // fn#122165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:10869, offset: 0x0255c4f4, size: 391 bytes, params: 1, frame: 26
|
||||
var environment;
|
||||
var r0;
|
||||
var TableRowGroup;
|
||||
var object;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var format;
|
||||
var ZYA9PV;
|
||||
var defaultImport;
|
||||
const {guild, canManage} = this.props;
|
||||
const features = guild.features;
|
||||
const has = features.has;
|
||||
let value = environment.__proto__;
|
||||
const INVITE_SPLASH = GuildFeatures.INVITE_SPLASH;
|
||||
if (Reflect.apply(has, features, [INVITE_SPLASH])) {
|
||||
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
var tableRowGroupProps = {title: intl.string(t.tzGY0q), description: intl.string(t.FEFkkG)};
|
||||
format = intl.format;
|
||||
ZYA9PV = t.ZYA9PV;
|
||||
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
tableRowGroupProps.helperText = Reflect.apply(format, intl, [ZYA9PV,
|
||||
{articleURL: defaultImport.getArticleURL(HelpdeskArticles.GUILD_INVITE_SPLASH)}]);
|
||||
tableRowGroupProps.hasIcons = false;
|
||||
value = importDefault(15873) /* metro dependency 15873: AssetChooser */;
|
||||
value = <TableRowGroup {...tableRowGroupProps}>{((Component) => <Component disabled={!canManage} guild={guild} rawSource={guild.splash} getSource={getSource_122166} onChooseAsset={this.handleSplashChange} size={{'width': 1920,
|
||||
|
||||
'height': 1080}} />)(value)}</TableRowGroup>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_122167() { // fn#122167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:11455, offset: 0x0255c6c1, size: 415 bytes, params: 1, frame: 25
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var property;
|
||||
var object;
|
||||
var defaultImport;
|
||||
var value2;
|
||||
var TableRowGroup;
|
||||
var TableSwitchRow;
|
||||
var object2;
|
||||
var features;
|
||||
const {guild, canManage} = this.props;
|
||||
const channelSummariesExperimentModule = require(9867) /* metro dependency 9867: ChannelSummariesExperiment */;
|
||||
if (channelSummariesExperimentModule.canGuildUseConversationSummaries(guild, false)) {
|
||||
format = intl.format;
|
||||
property = t['c6Cy/h'];
|
||||
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
value2 = Reflect.apply(format, intl, [property,
|
||||
{helpdeskArticle: defaultImport.getArticleURL(HelpdeskArticles.CONVERSATION_SUMMARIES)}]);
|
||||
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
var tableRowGroupProps = {title: intl.string(t.XPDhcc), description: value2, hasIcons: false};
|
||||
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
||||
var tableSwitchRowProps = {label: intl.string(t.vmEDQs),
|
||||
trailing: ((BetaTag) => <BetaTag />)((require(1305) /* metro dependency 1305: native */).BetaTag)};
|
||||
features = guild.features;
|
||||
tableSwitchRowProps.value = features.has(GuildFeatures.SUMMARIES_ENABLED_BY_USER);
|
||||
tableSwitchRowProps.disabled = !canManage;
|
||||
tableSwitchRowProps.onValueChange = this.handleSummariesToggle;
|
||||
return (
|
||||
<TableRowGroup {...tableRowGroupProps}>
|
||||
<TableSwitchRow {...tableSwitchRowProps} />
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function value_122168() { // fn#122168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:12046, offset: 0x0255c860, size: 356 bytes, params: 1, frame: 24
|
||||
var r0;
|
||||
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
|
||||
var object;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const {guild, canManage} = this.props;
|
||||
let features = guild.features;
|
||||
const has = features.has;
|
||||
const value = environment.__proto__;
|
||||
const VERIFIED = GuildFeatures.VERIFIED;
|
||||
if (Reflect.apply(has, features, [VERIFIED])) {
|
||||
r0 = <TextArea label={intl.string(t['RSfm+i'])} description={intl.string(t['/B6PRw'])} maxLength={(require(6719) /* metro dependency 6719: GuildProfileLimits */).MAX_DESCRIPTION_LENGTH} value={guild.description ?? ''} isDisabled={!canManage} onChange={this.handleDescriptionChange} placeholder={intl.string(t.Nvfowl)} />;
|
||||
} else {
|
||||
features = guild.features;
|
||||
if (features.has(GuildFeatures.DISCOVERABLE)) {
|
||||
r0 = <TextArea label={intl.string(t['RSfm+i'])} description={intl.string(t['/B6PRw'])} maxLength={(require(6719) /* metro dependency 6719: GuildProfileLimits */).MAX_DESCRIPTION_LENGTH} value={guild.description ?? ''} isDisabled={!canManage} onChange={this.handleDescriptionChange} placeholder={intl.string(t.Nvfowl)} />;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_122169() { // fn#122169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:12507, offset: 0x0255c9c4, size: 392 bytes, params: 1, frame: 25
|
||||
var environment;
|
||||
var TableRowGroup;
|
||||
var object;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var format;
|
||||
var vBcWUv;
|
||||
var defaultImport;
|
||||
const {guild, canManage} = this.props;
|
||||
const features = guild.features;
|
||||
const has = features.has;
|
||||
const value = environment.__proto__;
|
||||
const BANNER = GuildFeatures.BANNER;
|
||||
if (Reflect.apply(has, features, [BANNER])) {
|
||||
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
var tableRowGroupProps = {title: intl.string(t['0r0AzF']), description: intl.string(t.UfqmIb)};
|
||||
format = intl.format;
|
||||
vBcWUv = t.vBcWUv;
|
||||
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
tableRowGroupProps.helperText = Reflect.apply(format, intl, [vBcWUv,
|
||||
{articleURL: defaultImport.getArticleURL(HelpdeskArticles.GUILD_BANNER_SPLASH)}]);
|
||||
tableRowGroupProps.hasIcons = false;
|
||||
return (
|
||||
<TableRowGroup {...tableRowGroupProps}>
|
||||
{((Component) => <Component disabled={!canManage} guild={guild} rawSource={guild.banner} getSource={getSource_122170} onChooseAsset={this.handleBannerChange} size={{'width': 960,
|
||||
|
||||
'height': 540}} />)(importDefault(15873) /* metro dependency 15873: AssetChooser */)}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function value_122171() { // fn#122171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:13124, offset: 0x0255cb90, size: 209 bytes, params: 1, frame: 22
|
||||
var r0;
|
||||
var TableRowGroup;
|
||||
var TableRow;
|
||||
var intl;
|
||||
const guild = this.props.guild;
|
||||
const value = environment.__proto__;
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
const value3 = null;
|
||||
if (value3 != currentUser) {
|
||||
if (isGuildOwnerWithRequiredMfaLevel(guild, currentUser)) {
|
||||
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <TableRowGroup hasIcons={false}><TableRow variant="danger" label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.l3hWP6)} onPress={this.handleDeleteServer} /></TableRowGroup>;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_122172() { // fn#122172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:13396, offset: 0x0255cc61, size: 402 bytes, params: 1, frame: 23
|
||||
let value = environment.__proto__;
|
||||
const value2 = env1_27(this.context);
|
||||
const jsxRuntimeEnv1_26Binding = jsxRuntimeEnv1_26;
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const overview = value2.overview;
|
||||
const items3 = [value2.overviewContent];
|
||||
items3[1] = this.props.contentContainerStyle;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const stackPadding = value2.stackPadding;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
const items2 = [this.renderGuildName()];
|
||||
items2[1] = this.renderSummaries();
|
||||
items2[2] = this.renderAFKSettings();
|
||||
items2[3] = this.renderSystemMessageSettings();
|
||||
items2[4] = this.renderDefaultNotificationSettings();
|
||||
items2[5] = this.renderBoostProgressBar();
|
||||
items2[6] = this.renderDescription();
|
||||
items2[7] = this.renderBanner();
|
||||
items2[8] = this.renderSplash();
|
||||
items2[9] = this.renderDeleteGuild();
|
||||
value = <Form style={overview} contentContainerStyle={items3}><Stack style={stackPadding} spacing={PX_24}>{items2}</Stack></Form>;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{value}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildSettingsModalOverviewHandleNameChange(a0) { // fn#122123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1671, owner: GuildSettingsModalOverview.handleNameChange, offset: 0x0255acf2, size: 47 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({name: a0});
|
||||
}
|
||||
|
||||
function handleDescriptionChange(a0) { // fn#122124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1733, owner: GuildSettingsModalOverview.handleDescriptionChange, offset: 0x0255ad21, size: 47 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({description: a0});
|
||||
}
|
||||
|
||||
function handleAfkChannelChange() { // fn#122125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1801, owner: GuildSettingsModalOverview.handleAfkChannelChange, offset: 0x0255ad50, size: 179 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(11265) /* metro dependency 11265: openChannelPicker */;
|
||||
const object2 = {};
|
||||
const binding = env0_0;
|
||||
object2.guildId = binding.props.guild.id;
|
||||
object2.channelType = GUILD_VOCAL_CHANNELS_KEY;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.noChannelOptionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wGiHkK);
|
||||
object2.onSelect = onSelect_122126;
|
||||
object2.filterFn = function(a0) {
|
||||
return a0.channel.type === ChannelTypes.GUILD_VOICE;
|
||||
};
|
||||
const afkChannel = binding.props.afkChannel;
|
||||
value = null;
|
||||
object2.selectedChannel = value != afkChannel ? afkChannel : value;
|
||||
defaultImport(object2);
|
||||
}
|
||||
|
||||
function handleSystemChannelChange() { // fn#122128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2118, owner: GuildSettingsModalOverview.handleSystemChannelChange, offset: 0x0255ae63, size: 179 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(11265) /* metro dependency 11265: openChannelPicker */;
|
||||
const object2 = {};
|
||||
const binding = env0_0;
|
||||
object2.guildId = binding.props.guild.id;
|
||||
object2.channelType = GUILD_SELECTABLE_CHANNELS_KEY;
|
||||
object2.filterFn = function(a0) {
|
||||
return a0.channel.type === ChannelTypes.GUILD_TEXT;
|
||||
};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.noChannelOptionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ibUhoa);
|
||||
object2.onSelect = onSelect_122130;
|
||||
const systemChannel = binding.props.systemChannel;
|
||||
value = null;
|
||||
object2.selectedChannel = value != systemChannel ? systemChannel : value;
|
||||
defaultImport(object2);
|
||||
}
|
||||
|
||||
function handleSystemJoinMessages(a0) { // fn#122131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2443, owner: GuildSettingsModalOverview.handleSystemJoinMessages, offset: 0x0255af76, size: 42 bytes, params: 2, frame: 13
|
||||
const binding = env0_0;
|
||||
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
|
||||
const SUPPRESS_JOIN_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_JOIN_NOTIFICATIONS;
|
||||
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_JOIN_NOTIFICATIONS, !a0]);
|
||||
}
|
||||
|
||||
function handleSystemJoinMessageReplies(a0) { // fn#122132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2548, owner: GuildSettingsModalOverview.handleSystemJoinMessageReplies, offset: 0x0255afa0, size: 42 bytes, params: 2, frame: 13
|
||||
const binding = env0_0;
|
||||
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
|
||||
const SUPPRESS_JOIN_NOTIFICATION_REPLIES = SystemChannelFlags.SUPPRESS_JOIN_NOTIFICATION_REPLIES;
|
||||
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_JOIN_NOTIFICATION_REPLIES, !a0]);
|
||||
}
|
||||
|
||||
function handleSystemPremiumSubscribe(a0) { // fn#122133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2658, owner: GuildSettingsModalOverview.handleSystemPremiumSubscribe, offset: 0x0255afca, size: 42 bytes, params: 2, frame: 13
|
||||
const binding = env0_0;
|
||||
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
|
||||
const SUPPRESS_PREMIUM_SUBSCRIPTIONS = SystemChannelFlags.SUPPRESS_PREMIUM_SUBSCRIPTIONS;
|
||||
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_PREMIUM_SUBSCRIPTIONS, !a0]);
|
||||
}
|
||||
|
||||
function handleSystemReminderNotifications(a0) { // fn#122134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2769, owner: GuildSettingsModalOverview.handleSystemReminderNotifications, offset: 0x0255aff4, size: 42 bytes, params: 2, frame: 13
|
||||
const binding = env0_0;
|
||||
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
|
||||
const SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_GUILD_REMINDER_NOTIFICATIONS;
|
||||
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_GUILD_REMINDER_NOTIFICATIONS, !a0]);
|
||||
}
|
||||
|
||||
function handleSystemGuildRoleSubscriptionPurchaseMessages(a0) { // fn#122135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2903, owner: GuildSettingsModalOverview.handleSystemGuildRoleSubscriptionPurchaseMessages, offset: 0x0255b01e, size: 42 bytes, params: 2, frame: 13
|
||||
const binding = env0_0;
|
||||
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
|
||||
const SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS;
|
||||
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS, !a0]);
|
||||
}
|
||||
|
||||
function handleSystemGuildRoleSubscriptionPurchaseMessageReplies(a0) { // fn#122136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3055, owner: GuildSettingsModalOverview.handleSystemGuildRoleSubscriptionPurchaseMessageReplies, offset: 0x0255b048, size: 42 bytes, params: 2, frame: 13
|
||||
const binding = env0_0;
|
||||
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
|
||||
const SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES = SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES;
|
||||
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES,
|
||||
!a0]);
|
||||
}
|
||||
|
||||
function handleSystemVoiceSessionMessages(a0) { // fn#122137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3191, owner: GuildSettingsModalOverview.handleSystemVoiceSessionMessages, offset: 0x0255b072, size: 42 bytes, params: 2, frame: 13
|
||||
const binding = env0_0;
|
||||
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
|
||||
const SUPPRESS_VOICE_SESSION_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_VOICE_SESSION_NOTIFICATIONS;
|
||||
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_VOICE_SESSION_NOTIFICATIONS, !a0]);
|
||||
}
|
||||
|
||||
function handleAFKTimeoutChange() { // fn#122138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3297, owner: GuildSettingsModalOverview.handleAFKTimeoutChange, offset: 0x0255b09c, size: 81 bytes, params: 1, frame: 15
|
||||
const showSimpleActionSheetModule = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
|
||||
const showSimpleActionSheet = showSimpleActionSheetModule.showSimpleActionSheet;
|
||||
const object2 = {'key': 'AFKTimeout', 'options': null, 'hasIcons': false};
|
||||
object2.options = env2_28.map(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {label: a0.label(), onPress: _fun122140};
|
||||
});
|
||||
Reflect.apply(showSimpleActionSheet, showSimpleActionSheetModule, [object2]);
|
||||
}
|
||||
|
||||
function handleDeleteServer() { // fn#122141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3481, owner: GuildSettingsModalOverview.handleDeleteServer, offset: 0x0255b14b, size: 312 bytes, params: 1, frame: 23
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.title = Reflect.apply(string, intl, [t.l3hWP6]);
|
||||
const format = intl.format;
|
||||
const property = t['Zuo+Vd'];
|
||||
const binding = env0_0;
|
||||
object2.body = Reflect.apply(format, intl, [property, {name: binding.props.guild.name}]);
|
||||
object2.cancelText = intl.string(t.gm1Vej);
|
||||
object2.confirmText = intl.string(t.p89ACt);
|
||||
object2.onConfirm = binding.handleConfirmDeleteServer;
|
||||
const Colors = (importDefault(4596) /* metro dependency 4596: Alert */).Colors;
|
||||
const RED = Colors.RED;
|
||||
object2.confirmColor = RED;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function handleConfirmDeleteServer() { // fn#122142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3826, owner: GuildSettingsModalOverview.handleConfirmDeleteServer, offset: 0x0255b283, size: 60 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.deleteGuild(env0_0.props.guild.id);
|
||||
}
|
||||
|
||||
function handleSplashChange(a0) { // fn#122143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3892, owner: GuildSettingsModalOverview.handleSplashChange, offset: 0x0255b2bf, size: 48 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({splash: a0});
|
||||
}
|
||||
|
||||
function handleSummariesToggle(a0) { // fn#122144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3954, owner: GuildSettingsModalOverview.handleSummariesToggle, offset: 0x0255b2ef, size: 150 bytes, params: 2, frame: 13
|
||||
var value2;
|
||||
var add;
|
||||
var value3;
|
||||
const guild = env0_0.props.guild;
|
||||
const Set = global.Set;
|
||||
const set = new Set(guild.features);
|
||||
if (a0) {
|
||||
add = set.add;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
Reflect.apply(add, set, [GuildFeatures.SUMMARIES_ENABLED_BY_USER]);
|
||||
} else {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
set.delete(GuildFeatures.SUMMARIES_ENABLED_BY_USER);
|
||||
}
|
||||
const defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
defaultImport.updateGuild({features: set});
|
||||
}
|
||||
|
||||
function handleBannerChange(a0) { // fn#122145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:4132, owner: GuildSettingsModalOverview.handleBannerChange, offset: 0x0255b385, size: 48 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({banner: a0});
|
||||
}
|
||||
|
||||
function handleOverviewSaveChanges() { // fn#122146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:4198, owner: GuildSettingsModalOverview.handleOverviewSaveChanges, offset: 0x0255b3b5, size: 200 bytes, params: 1, frame: 27
|
||||
const {id, name, icon, afkChannelId, afkTimeout, systemChannelId, safetyAlertsChannelId, systemChannelFlags,
|
||||
defaultMessageNotifications, splash, banner, description, features,
|
||||
premiumProgressBarEnabled} = env0_0.props.guild;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.saveGuild(id, {name: name, icon: icon, afkChannelId: afkChannelId, afkTimeout: afkTimeout,
|
||||
systemChannelId: systemChannelId, systemChannelFlags: systemChannelFlags,
|
||||
safetyAlertsChannelId: safetyAlertsChannelId, defaultMessageNotifications: defaultMessageNotifications,
|
||||
splash: splash, banner: banner, description: description, features: features,
|
||||
premiumProgressBarEnabled: premiumProgressBarEnabled});
|
||||
}
|
||||
|
||||
function handleBoostProgressBarToggle(a0) { // fn#122147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:4724, owner: GuildSettingsModalOverview.handleBoostProgressBarToggle, offset: 0x0255b47d, size: 48 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({premiumProgressBarEnabled: a0});
|
||||
}
|
||||
|
||||
function _fun122152() { // fn#122152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5347, offset: 0x0255b5e3, size: 45 bytes, params: 1, frame: 13
|
||||
const HeaderSubmittingIndicator = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).HeaderSubmittingIndicator;
|
||||
return <HeaderSubmittingIndicator />;
|
||||
}
|
||||
|
||||
function _fun122153() { // fn#122153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5394, offset: 0x0255b610, size: 113 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const handleOverviewSaveChanges = env0_0.handleOverviewSaveChanges;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
onPress={handleOverviewSaveChanges}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122162OnChange(a0) { // fn#122163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:9985, owner: value_122162.onChange, offset: 0x0255c394, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleDefaultNotificationsChange(a0);
|
||||
}
|
||||
|
||||
function value_122165GetSource({id, splash}, a1) { // fn#122166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:11276, owner: value_122165.getSource, offset: 0x0255c67b, size: 70 bytes, params: 3, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildSplashSource({id: id, splash: splash,
|
||||
size: a1});
|
||||
}
|
||||
|
||||
function value_122169GetSource(a0) { // fn#122170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:12926, owner: value_122169.getSource, offset: 0x0255cb4c, size: 68 bytes, params: 2, frame: 14
|
||||
const features = a0.features;
|
||||
const has = features.has;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const ANIMATED_BANNER = GuildFeatures.ANIMATED_BANNER;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildBannerSource(a0, Reflect.apply(has,
|
||||
features, [ANIMATED_BANNER]));
|
||||
}
|
||||
|
||||
function handleAfkChannelChangeOnSelect(a0) { // fn#122126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1922, owner: GuildSettingsModalOverview.handleAfkChannelChange.onSelect, offset: 0x0255ae03, size: 64 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = undefined;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({afkChannelId: a0 == null ? value : a0.id});
|
||||
return value;
|
||||
}
|
||||
|
||||
function handleSystemChannelChangeOnSelect(a0) { // fn#122130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2285, owner: GuildSettingsModalOverview.handleSystemChannelChange.onSelect, offset: 0x0255af36, size: 64 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = undefined;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({systemChannelId: a0 == null ? value : a0.id});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun122139(a0) { // fn#122139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3366, offset: 0x0255b0ed, size: 37 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const object2 = {};
|
||||
object2.label = a0.label();
|
||||
object2.onPress = onPress_122140;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function onPress_122140() { // fn#122140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3387, offset: 0x0255b112, size: 57 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({afkTimeout: env0_0.value});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 14999; source: modules/guild_settings/native/MembersFilterActionSheet.tsx; dependencies: [31, 27, 4502, 1938, 9113, 33, 4501, 697, 566, 9112, 4080, 7987, 1305, 4573, 6805, 6758, 1244, 6277, 2] */
|
||||
function _fun113374(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15196:6, offset: 0x023f651e, size: 353 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'marginVertical': 8, 'borderRadius': null, 'overflow': 'hidden'};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object3.listView = object4;
|
||||
object3.roleDot = {marginEnd: 4};
|
||||
object3.labelContainer = {flexDirection: 'row'};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object3.label = {color: INTERACTIVE_TEXT_DEFAULT};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/MembersFilterActionSheet.tsx');
|
||||
exports.default = MembersFilterActionSheet;
|
||||
}
|
||||
|
||||
function MembersFilterActionSheet({guild, selectedRoleId, onFilterRoleId}) { // fn#113375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15196:496, offset: 0x023f667f, size: 514 bytes, params: 2, frame: 24
|
||||
var object2;
|
||||
selectedRoleId = selectedRoleId === undefined ? GuildSettingsStore.getProps().selectedRoleId : selectedRoleId;
|
||||
const styles = useStyles();
|
||||
const env0_3 = styles;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value2 = Reflect.apply(useStateFromStores, fluxModule, [[GuildRoleStore], function() {
|
||||
return GuildRoleStore.getSortedRoles(guild.id);
|
||||
}]).map(function(a0) {
|
||||
var object = {};
|
||||
var id = a0.id;
|
||||
object.value = id;
|
||||
copyDataProperties(object, a0, id);
|
||||
return object;
|
||||
});
|
||||
value2.unshift(value2.splice(value2.length - 1, 1)[0]);
|
||||
const binding = env0_3;
|
||||
const value6 = binding.useCallback(_fun113380, [binding.useCallback(_fun113378, [onFilterRoleId, selectedRoleId]),
|
||||
fluxModule.useStateFromStores([AccessibilityStore], function() {
|
||||
return AccessibilityStore.roleStyle;
|
||||
}), selectedRoleId, styles]);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
object2 = {scrollable: true};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.header = <BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pEasFX)} />;
|
||||
const BottomSheetFlatList = (require(6277) /* metro dependency 6277 */).BottomSheetFlatList;
|
||||
return (
|
||||
<ActionSheet {...object2}>
|
||||
<BottomSheetFlatList
|
||||
data={value2}
|
||||
keyExtractor={function(a0) {
|
||||
return a0.id;
|
||||
}}
|
||||
renderItem={value6}
|
||||
contentContainerStyle={styles.listView}
|
||||
initialNumToRender={10}
|
||||
removeClippedSubviews={false}
|
||||
/>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113378(a0) { // fn#113378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15196:768, offset: 0x023f68bb, size: 119 bytes, params: 2, frame: 13
|
||||
var value;
|
||||
if (a0 !== selectedRoleId) {
|
||||
if (onFilterRoleId != null) {
|
||||
onFilterRoleId(a0);
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.selectRole(a0);
|
||||
}
|
||||
value = environment.__proto__;
|
||||
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
value.hideActionSheet('MembersFilter');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun113380({item}) { // fn#113380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15196:936, offset: 0x023f6932, size: 379 bytes, params: 2, frame: 28
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
const tableRadioRowProps = {value: item.id};
|
||||
const r12 = roleStyle === 'dot' && item.colorString != null && ((RoleDot) => <RoleDot containerStyles={styles.roleDot} color={item.colorString} colors={item.colorStrings} />)((require(1305) /* metro dependency 1305: native */).RoleDot);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const colorString = item.colorString;
|
||||
value = null;
|
||||
tableRadioRowProps.label = <View style={styles.labelContainer}>{r12}<Text variant="text-md/medium" style={[styles.label,
|
||||
value != colorString ? roleStyle !== 'username' ? value : {color: item.colorString} : value]}>{item.name}</Text></View>;
|
||||
tableRadioRowProps.legacyCompat_onPress = legacyCompat_onPress_113381;
|
||||
tableRadioRowProps.legacyCompat_selected = item.id === selectedRoleId;
|
||||
return <TableRadioRow {...tableRadioRowProps} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
/* Metro module 15000; source: modules/guild_settings/native/MembersPruneActionSheet.tsx; dependencies: [57, 31, 15001, 33, 694, 15002, 6805, 6758, 1244, 7988, 7987, 4573, 4578, 4080, 2] */
|
||||
function _fun113383(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15197:6, offset: 0x023f6aad, size: 209 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(15001) /* metro dependency 15001: PrunePreviewStore */;
|
||||
const env0_5 = value.usePrunePreview;
|
||||
const env0_6 = value.setPrunePreview;
|
||||
const env0_7 = value.clearAllPrunePreviews;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/MembersPruneActionSheet.tsx');
|
||||
exports.default = MembersPruneActionSheet;
|
||||
}
|
||||
|
||||
function MembersPruneActionSheet({guild}) { // fn#113384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15197:321, offset: 0x023f6b7e, size: 863 bytes, params: 2, frame: 33
|
||||
var object4;
|
||||
const env0_1 = guild.id;
|
||||
const binding = env0_4;
|
||||
const [property, env0_3] = env0_3Binding(binding.useState(7), 2);
|
||||
const {count, isLoading} = usePrunePreview(guild.id, property, []);
|
||||
binding.useEffect(_fun113385, [guild.id, property]);
|
||||
binding.useEffect(_fun113388, [guild.id, property, count]);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
object4 = {};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object4.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl, [t.zbyz7p])} />;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
const object2 = {};
|
||||
string = intl.string;
|
||||
const YccTvK = (require(1244) /* metro dependency 1244: indexNative */).t.YccTvK;
|
||||
object2.title = Reflect.apply(string, intl, [YccTvK]);
|
||||
object2.defaultValue = property;
|
||||
object2.onChange = onChange_113389;
|
||||
object2.hasIcons = false;
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
let formatToPlainString = intl.formatToPlainString;
|
||||
let FM1dHS = (require(1244) /* metro dependency 1244: indexNative */).t.FM1dHS;
|
||||
const tableRadioRow = <TableRadioRow value={7} label={Reflect.apply(formatToPlainString, intl, [FM1dHS,
|
||||
{days: 7}])} />;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
FM1dHS = (require(1244) /* metro dependency 1244: indexNative */).t.FM1dHS;
|
||||
const items2 = [<TableRadioGroup {...object2}>{tableRadioRow}<TableRadioRow value={30} label={Reflect.apply(formatToPlainString,
|
||||
intl, [FM1dHS, {days: 30}])} /></TableRadioGroup>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text variant="text-sm/medium">{intl.format(isLoading ? t['98cHOp'] : t.f13az9, {members: count ?? -1,
|
||||
days: property})}</Text>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[2] = <Button variant="destructive" onPress={onPress_113390} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2mIlKQ'])} />;
|
||||
return (
|
||||
<ActionSheet {...object4}>
|
||||
{items2}
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113385() { // fn#113385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15197:474, offset: 0x023f6edd, size: 65 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
const closure = handlePruneUpdate;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('GUILD_PRUNE_UPDATE', closure);
|
||||
return _fun113387;
|
||||
}
|
||||
|
||||
function _fun113388() { // fn#113388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15197:812, offset: 0x023f6fce, size: 67 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (count == null) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(15002) /* metro dependency 15002: PruneGuildModalActionCreators */;
|
||||
defaultImport.updateEstimateV2(guild.id, env0_2);
|
||||
}
|
||||
}
|
||||
|
||||
function MembersPruneActionSheetOnChange(a0) { // fn#113389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15197:1088, owner: MembersPruneActionSheet.onChange, offset: 0x023f7011, size: 45 bytes, params: 2, frame: 13
|
||||
if (env0_2 !== a0 && id != null) {
|
||||
env0_3(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function MembersPruneActionSheetOnPress() { // fn#113390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15197:1545, owner: MembersPruneActionSheet.onPress, offset: 0x023f703e, size: 106 bytes, params: 1, frame: 17
|
||||
var value4;
|
||||
var defaultImport;
|
||||
if (id != null && env0_2 != null) {
|
||||
value4 = environment.__proto__;
|
||||
defaultImport = importDefault(15002) /* metro dependency 15002: PruneGuildModalActionCreators */;
|
||||
defaultImport.prune(id, env0_2);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
clearAllPrunePreviews();
|
||||
}
|
||||
}
|
||||
|
||||
function handlePruneUpdate(a0) { // fn#113386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15197:501, offset: 0x023f6f1e, size: 124 bytes, params: 2, frame: 19
|
||||
var prune;
|
||||
var days;
|
||||
var includeRoles;
|
||||
var Number;
|
||||
var value2;
|
||||
var setPrunePreviewBinding;
|
||||
let guildId = a0.guildId;
|
||||
let value = environment.__proto__;
|
||||
if (guildId === guild.id) {
|
||||
prune = a0.prune;
|
||||
if (prune.isPreview) {
|
||||
prune = a0.prune;
|
||||
days = prune.days;
|
||||
prune = a0.prune;
|
||||
includeRoles = prune.includeRoles;
|
||||
Number = global.Number;
|
||||
prune = a0.prune;
|
||||
value = Number(prune.pruneCount);
|
||||
value2 = environment.__proto__.__proto__;
|
||||
setPrunePreviewBinding = setPrunePreview;
|
||||
guildId = a0.guildId;
|
||||
prune = a0.prune;
|
||||
setPrunePreviewBinding(guildId, days, includeRoles, value, prune.isFinished);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun113387() { // fn#113387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15197:721, offset: 0x023f6f9a, size: 52 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.unsubscribe('GUILD_PRUNE_UPDATE', handlePruneUpdate);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/* Metro module 14994; source: modules/guild_settings/native/StandaloneMembersView.tsx; dependencies: [31, 33, 1484, 1585, 9112, 5282, 1244, 14995, 10296, 10311, 10313, 5280, 2] */
|
||||
function _fun113318(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:6, offset: 0x023f4307, size: 188 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = {MAIN: 'MAIN', MEMBER_EDIT: 'MEMBER_EDIT', MEMBER_KICK: 'MEMBER_KICK', MEMBER_BAN: 'MEMBER_BAN'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/StandaloneMembersView.tsx');
|
||||
exports.default = StandaloneMembersView;
|
||||
}
|
||||
|
||||
function StandaloneMembersView({guildId}) { // fn#113319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:347, offset: 0x023f43c3, size: 410 bytes, params: 2, frame: 21
|
||||
var object4;
|
||||
const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
let binding = env0_3;
|
||||
binding.useEffect(_fun113320, [guildId]);
|
||||
object4 = {contentContainerStyle: {paddingBottom: 16 + bottom}};
|
||||
object4 = {};
|
||||
binding = env0_5;
|
||||
let MAIN = binding.MAIN;
|
||||
const object2 = {};
|
||||
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun113321);
|
||||
object2.headerTitle = headerTitle_113322;
|
||||
object2.render = render_113323;
|
||||
object4[MAIN] = object2;
|
||||
const MEMBER_EDIT = binding.MEMBER_EDIT;
|
||||
object4[MEMBER_EDIT] = {render: render_113324};
|
||||
const MEMBER_KICK = binding.MEMBER_KICK;
|
||||
object4[MEMBER_KICK] = {headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_113326};
|
||||
const MEMBER_BAN = binding.MEMBER_BAN;
|
||||
object4[MEMBER_BAN] = {headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_113328};
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
MAIN = binding.MAIN;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
screens={object4}
|
||||
initialRouteName={MAIN}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113320() { // fn#113320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:453, offset: 0x023f455d, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.init(guildId);
|
||||
}
|
||||
|
||||
function StandaloneMembersViewHeaderTitle() { // fn#113322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:615, owner: StandaloneMembersView.headerTitle, offset: 0x023f458a, size: 96 bytes, params: 1, frame: 18
|
||||
const NavigatorHeader = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).NavigatorHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return <NavigatorHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9Oq93m'])} />;
|
||||
}
|
||||
|
||||
function StandaloneMembersViewRender() { // fn#113323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:702, owner: StandaloneMembersView.render, offset: 0x023f45ea, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component guildId={guildId} />)(importDefault(14995) /* metro dependency 14995: GuildSettingsModalMembersWithTabs */);
|
||||
}
|
||||
|
||||
function StandaloneMembersViewRender_113324(a0) { // fn#113324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:754, owner: StandaloneMembersView.render, offset: 0x023f461c, size: 77 bytes, params: 2, frame: 15
|
||||
const GuildSettingsModalMemberEditScene = (require(10296) /* metro dependency 10296: GuildSettingsModalMemberEdit */).GuildSettingsModalMemberEditScene;
|
||||
return (
|
||||
<GuildSettingsModalMemberEditScene
|
||||
guildId={guildId}
|
||||
{...a0}
|
||||
{...env0_2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function StandaloneMembersViewRender_113326(a0) { // fn#113326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:870, owner: StandaloneMembersView.render, offset: 0x023f4669, size: 71 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component guildId={guildId} {...a0} {...env0_2} />)(importDefault(10311) /* metro dependency 10311: KickConfirm */);
|
||||
}
|
||||
|
||||
function StandaloneMembersViewRender_113328(a0) { // fn#113328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:951, owner: StandaloneMembersView.render, offset: 0x023f46b0, size: 71 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component guildId={guildId} {...a0} {...env0_2} />)(importDefault(10313) /* metro dependency 10313: BanConfirm */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 15907; source: modules/guild_settings/native/showEmojiOverflowActionSheet.tsx; dependencies: [4080, 15908, 1962, 2] */
|
||||
function _fun122743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16115:6, offset: 0x02572f4c, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/showEmojiOverflowActionSheet.tsx');
|
||||
exports.default = showEmojiOverflowActionSheet;
|
||||
}
|
||||
|
||||
function showEmojiOverflowActionSheet(a0) { // fn#122744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16115:198, offset: 0x02572fb3, size: 105 bytes, params: 2, frame: 16
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
const object2 = {onClose: onClose_122745};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'EmojiOverflowActionSheet', object2]);
|
||||
}
|
||||
|
||||
function showEmojiOverflowActionSheetOnClose() { // fn#122745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16115:314, owner: showEmojiOverflowActionSheet.onClose, offset: 0x0257301c, size: 43 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('EmojiOverflowActionSheet');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/* Metro module 14998; source: modules/guild_settings/native/showMembersManagementActionSheet.tsx; dependencies: [3784, 661, 1244, 4080, 14999, 1962, 483, 15000, 6802, 2] */
|
||||
function _fun113367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:6, offset: 0x023f6160, size: 160 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/showMembersManagementActionSheet.tsx');
|
||||
exports.default = showMembersManagementActionSheet;
|
||||
exports.getMembersManagementActions = getMembersManagementActions;
|
||||
}
|
||||
|
||||
function showMembersManagementActionSheet({guild, selectedRoleId, onFilterRoleId}) { // fn#113368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:238, offset: 0x023f6200, size: 321 bytes, params: 2, frame: 21
|
||||
var push;
|
||||
let object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.label = Reflect.apply(string, intl, [t.pEasFX]);
|
||||
object2.onPress = onPress_113369;
|
||||
const items2 = [object2];
|
||||
const can = PermissionStore.can;
|
||||
const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
const combine = bigFlagUtilsModule.combine;
|
||||
const MANAGE_GUILD = Permissions.MANAGE_GUILD;
|
||||
const KICK_MEMBERS = Permissions.KICK_MEMBERS;
|
||||
if (Reflect.apply(can, PermissionStore, [Reflect.apply(combine, bigFlagUtilsModule, [MANAGE_GUILD, KICK_MEMBERS]),
|
||||
guild])) {
|
||||
push = items2.push;
|
||||
object2 = {};
|
||||
object2.label = intl.string(t['2mIlKQ']);
|
||||
object2.onPress = onPress_113370;
|
||||
object2.isDestructive = true;
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
}
|
||||
(require(6802) /* metro dependency 6802: showSimpleActionSheet */).showSimpleActionSheet({'key': 'GuildSettingsMembersMore',
|
||||
'options': null, 'hasIcons': false, options: items2});
|
||||
}
|
||||
|
||||
function getMembersManagementActions({guild, selectedRoleId, onFilterRoleId}) { // fn#113371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:814, offset: 0x023f640d, size: 273 bytes, params: 2, frame: 21
|
||||
var push;
|
||||
let object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.label = Reflect.apply(string, intl, [t.pEasFX]);
|
||||
object2.action = action_113372;
|
||||
const items2 = [object2];
|
||||
const can = PermissionStore.can;
|
||||
const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
const combine = bigFlagUtilsModule.combine;
|
||||
const MANAGE_GUILD = Permissions.MANAGE_GUILD;
|
||||
const KICK_MEMBERS = Permissions.KICK_MEMBERS;
|
||||
if (Reflect.apply(can, PermissionStore, [Reflect.apply(combine, bigFlagUtilsModule, [MANAGE_GUILD, KICK_MEMBERS]),
|
||||
guild])) {
|
||||
push = items2.push;
|
||||
object2 = {};
|
||||
object2.label = intl.string(t['2mIlKQ']);
|
||||
object2.action = action_113373;
|
||||
object2.variant = 'destructive';
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function showMembersManagementActionSheetOnPress() { // fn#113369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:377, owner: showMembersManagementActionSheet.onPress, offset: 0x023f6341, size: 111 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[3]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[5]);
|
||||
value = value(dependencyMap[4], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'MembersFilter', {guild: guild, selectedRoleId: selectedRoleId,
|
||||
onFilterRoleId: onFilterRoleId}]);
|
||||
}
|
||||
|
||||
function showMembersManagementActionSheetOnPress_113370() { // fn#113370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:602, owner: showMembersManagementActionSheet.onPress, offset: 0x023f63b0, size: 93 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[3]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[5]);
|
||||
value = value(dependencyMap[7], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'MembersPrune', {guild: guild}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user