This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,171 +1,191 @@
/* 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] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00153 from '../../../by-id/module-00153.js'; /* Metro dependency 153 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NativeModule from '../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
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;
Module00153;
let value = ReactModule;
const createLegacyClassComponentStyles = CreateStylesModule.createLegacyClassComponentStyles;
object = {assetWrapper: {'width': '100%', 'alignItems': 'center'}};
const object2 = {'width': '100%', 'height': 192, 'borderRadius': null, 'overflow': 'hidden'};
object2.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;
object2.backgroundColor = BACKGROUND_BASE_LOW;
object.asset = object2;
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
object3.uploadIconWrapper = {'position': 'absolute', 'bottom': 10, 'right': 10, 'shadowColor': null,
object.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};
object.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]);
object.remove = {'marginTop': 8, 'fontSize': 14, 'lineHeight': 18, color: BLUE_345};
const env0_17 = Reflect.apply(createLegacyClassComponentStyles, CreateStylesModule, [object]);
const PureComponent = value.PureComponent;
value = _fun122183(PureComponent);
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
const ThemeContext = (NativeModule).ThemeContext;
value.contextType = ThemeContext;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/AssetChooser.tsx');
(FileImportTrackerModule).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;
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) {
}
var base64 = value.base64;
if (base64 != null) {
if (onChooseAsset != null) {
onChooseAsset(base64);
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 AssetChooser2 = AssetChooser;
Inherits(AssetChooser2, a0);
return CreateClass(AssetChooser2, [{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* _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);
}
}
}
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 = (PressablesModule).PressableOpacity;
const object2 = {accessibilityRole: 'button'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MsUY/S']);
object2.style = value2.assetWrapper;
object2.onPress = this.handleChooseAsset;
object2.disabled = disabled;
const value4 = null;
return (
<>
<PressableOpacity {...object2}>
<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 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);
}
}
global.__d(_fun122179, 15873, [153, 5, 6, 7, 15, 17, 18, 31, 27, 661, 33, 4501, 697, 4660, 5278, 1244, 15874, 15875,
1305, 3868,
2]) /* metro module 15873, dependencies: [153, 5, 6, 7, 15, 17, 18, 31, 27, 661, 33, 4501, 697, 4660, 5278, 1244, 15874, 15875, 1305, 3868, 2] */;
@@ -1,104 +1,123 @@
/* 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] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
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]);
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {mainIdentity: {'flexDirection': 'row', 'alignItems': 'center'}};
const PX_4 = (Native).space.PX_4;
object.primaryAvatar = {marginRight: PX_4};
const INTERACTIVE_TEXT_DEFAULT = (Native).colors.INTERACTIVE_TEXT_DEFAULT;
object.mainTag = {color: INTERACTIVE_TEXT_DEFAULT, fontSize: 12};
const env0_7 = Reflect.apply(createStyles, CreateStylesModule, [object]);
const value4 = value.memo(_fun93183);
value = value.memo(DetailedGuildIdentityUserRow);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/DetailedGuildIdentityUserRow.tsx');
(FileImportTrackerModule).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;
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 object2 = {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 (
<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}
/>
<View style={object2}>
{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}
/>
);
}
}
}
global.__d(_fun93182, 12140, [31, 27, 1878, 33, 4501, 697, 4617, 3995, 9210, 1305, 566, 7972, 6238,
2]) /* metro module 12140, dependencies: [31, 27, 1878, 33, 4501, 697, 4617, 3995, 9210, 1305, 566, 7972, 6238, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,472 +1,519 @@
/* 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] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GuildSettingsActionCreators from '../GuildSettingsActionCreators.tsx'; /* Metro dependency 9112 */
import GuildSettingsStore from '../GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import KickConfirm from '../../guild_moderation/native/KickConfirm.tsx'; /* Metro dependency 10311 */
import BanConfirm from '../../guild_moderation/native/BanConfirm.tsx'; /* Metro dependency 10313 */
import IntegrationsSettingsWebhooksOverview from '../../integration_settings/native/IntegrationsSettingsWebhooksOverview.tsx'; /* Metro dependency 15203 */
import IntegrationsSettingsEditWebhook from '../../integration_settings/native/IntegrationsSettingsEditWebhook.tsx'; /* Metro dependency 15210 */
import IntegrationsSettingsEditLinkedLobby from '../../integration_settings/native/IntegrationsSettingsEditLinkedLobby.tsx'; /* Metro dependency 15212 */
import GuildSettingsModalChannelsActionCreators from '../GuildSettingsModalChannelsActionCreators.tsx'; /* Metro dependency 15858 */
import GuildSettingsModalLanding from './GuildSettingsModalLanding.tsx'; /* Metro dependency 15859 */
import GuildSettingsModalOverview from './GuildSettingsModalOverview.tsx'; /* Metro dependency 15872 */
import GuildSettingsModalModeration from '../safety/native/GuildSettingsModalModeration.tsx'; /* Metro dependency 15876 */
import GuildSettingsModalAuditLog from '../audit_log/native/GuildSettingsModalAuditLog.tsx'; /* Metro dependency 15877 */
import GuildSettingsModalAuditLogFilter from '../audit_log/native/GuildSettingsModalAuditLogFilter.tsx'; /* Metro dependency 15887 */
import GuildSettingsModalIntegrations from '../integrations/native/GuildSettingsModalIntegrations.tsx'; /* Metro dependency 15902 */
import GuildSettingsModalEmoji from './GuildSettingsModalEmoji.tsx'; /* Metro dependency 15903 */
import GuildSettingsModalStickers from '../server_monetization/stickers/native/GuildSettingsModalStickers.tsx'; /* Metro dependency 15915 */
import GuildSettingsModalIntegrationSettings from '../integrations/native/GuildSettingsModalIntegrationSettings.tsx'; /* Metro dependency 15927 */
import GuildSettingsModalIntegrationPlatform from '../integrations/native/GuildSettingsModalIntegrationPlatform.tsx'; /* Metro dependency 15931 */
import GuildSettingsModalLobbiesLinked from '../apps/native/GuildSettingsModalLobbiesLinked.tsx'; /* Metro dependency 15933 */
import GuildSettingsModalChannels from './GuildSettingsModalChannels.tsx'; /* Metro dependency 15934 */
import GuildSettingsModalSecurity from '../safety/native/GuildSettingsModalSecurity.tsx'; /* Metro dependency 15939 */
import GuildSettingsRoles from '../roles/native/GuildSettingsRoles.tsx'; /* Metro dependency 15940 */
import GuildSettingsRoleEdit from '../roles/native/GuildSettingsRoleEdit.tsx'; /* Metro dependency 15960 */
import GuildSettingsModalVanityURL from '../server_monetization/boost_perks/native/GuildSettingsModalVanityURL.tsx'; /* Metro dependency 15979 */
import GuildSettingsModalInstantInvites from './GuildSettingsModalInstantInvites.tsx'; /* Metro dependency 15983 */
import GuildSettingsModalMembersWrapper from './GuildSettingsModalMembersWrapper.tsx'; /* Metro dependency 15986 */
import GuildSettingsModalBans from '../safety/native/GuildSettingsModalBans.tsx'; /* Metro dependency 15987 */
import GuildSettingsModalCommunity from '../community/native/GuildSettingsModalCommunity.tsx'; /* Metro dependency 15992 */
import GuildSettingsModalCommunityIntro from '../community/native/GuildSettingsModalCommunityIntro.tsx'; /* Metro dependency 15993 */
import GuildSettingsRoleSubscriptionsEmpty from '../../guild_role_subscriptions/native/guild_settings/GuildSettingsRoleSubscriptionsEmpty.tsx'; /* Metro dependency 16015 */
import GuildSettingsRoleSubscriptionsEnableMonetization from '../../guild_role_subscriptions/native/guild_settings/GuildSettingsRoleSubscriptionsEnableMonetization.tsx'; /* Metro dependency 16055 */
import GuildSettingsRoleSubscriptionsGroupEdit from '../../guild_role_subscriptions/native/guild_settings/GuildSettingsRoleSubscriptionsGroupEdit.tsx'; /* Metro dependency 16056 */
import GuildSettingsRoleSubscriptionTiers from '../../guild_role_subscriptions/native/guild_settings/GuildSettingsRoleSubscriptionTiers.tsx'; /* Metro dependency 16072 */
import GuildSettingsRoleSubscriptionTierEdit from '../../guild_role_subscriptions/native/guild_settings/GuildSettingsRoleSubscriptionTierEdit.tsx'; /* Metro dependency 16111 */
import GuildSettingsRoleSubscriptionsPayments from '../../guild_role_subscriptions/native/guild_settings/GuildSettingsRoleSubscriptionsPayments.tsx'; /* Metro dependency 16115 */
import GuildSettingsRoleSubscriptionEmojis from '../../guild_role_subscriptions/native/guild_settings/emojis/GuildSettingsRoleSubscriptionEmojis.tsx'; /* Metro dependency 16116 */
import GuildSettingsRoleSubscriptionTierTemplateSelection from '../../guild_role_subscriptions/native/guild_settings/tier_templates/GuildSettingsRoleSubscriptionTierTemplateSelection.tsx'; /* Metro dependency 16119 */
import GuildSettingsModalOfficialMessages from './GuildSettingsModalOfficialMessages.tsx'; /* Metro dependency 16127 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AnalyticsUtilsModule from '../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as GuildSettingsModalMemberEditModule from './GuildSettingsModalMemberEdit.tsx'; /* Metro dependency 10296 */
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');
(FileImportTrackerModule).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 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
(GuildSettingsModalChannelsActionCreators).terminate();
(GuildSettingsActionCreators).close();
}
}
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 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 = (UseSafeAreaInsetsNative)().bottom;
const value3 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(function() {
return GuildSettingsStore.getGuildId();
});
const guild = (FluxModule).useStateFromStores([GuildStore], _fun121970);
const value4 = ReactModule.useMemo(_fun121971, [bottom, value3]);
ReactModule.useEffect(_fun122012, [guild, value3]);
const property = Module00057(ReactModule.useState(function() {
return GuildSettingsStore.getSavedRouteState();
}), 1)[0];
const value7 = ReactModule.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 _fun121970() { // fn#121970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16065:475, offset: 0x023e6a58, size: 27 bytes, params: 1, frame: 11
return GuildStore.getGuild(env0_1);
}
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 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 object = {};
object.contentContainerStyle = {paddingBottom: 16 + a1};
object = {};
const LANDING = GuildSettingsSections.LANDING;
const object3 = {};
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const GUILD_SETTINGS_LANDING = ImpressionNames.GUILD_SETTINGS_LANDING;
object3.impressionName = GUILD_SETTINGS_LANDING;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object3.title = Reflect.apply(string, intl, [t['154/bL']]);
object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(close_121967);
object3.render = render_121973;
object[LANDING] = object3;
const OVERVIEW = GuildSettingsSections.OVERVIEW;
const object4 = {};
const GUILD_SETTINGS_OVERVIEW = ImpressionNames.GUILD_SETTINGS_OVERVIEW;
object4.impressionName = GUILD_SETTINGS_OVERVIEW;
object4.title = intl.string(t['/dp6yY']);
object4.render = render_121974;
object[OVERVIEW] = object4;
const MODERATION = GuildSettingsSections.MODERATION;
const object5 = {};
const GUILD_SETTINGS_MODERATION = ImpressionNames.GUILD_SETTINGS_MODERATION;
object5.impressionName = GUILD_SETTINGS_MODERATION;
object5.title = intl.string(t['5tbTdV']);
object5.render = render_121975;
object[MODERATION] = object5;
const AUDIT_LOG = GuildSettingsSections.AUDIT_LOG;
const GUILD_SETTINGS_AUDIT_LOG = ImpressionNames.GUILD_SETTINGS_AUDIT_LOG;
string = intl.string;
const SPWLyT = t.SPWLyT;
object[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;
object[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;
object[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;
object[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;
object[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;
object[WEBHOOKS] = {impressionName: GUILD_SETTINGS_WEBHOOKS, title: intl.string(t.jp25Id), render: render_121981};
const EDIT_WEBHOOK = GuildSettingsSections.EDIT_WEBHOOK;
const object12 = {};
object12.title = intl.string(t['6SE3L3']);
object12.render = render_121982;
object[EDIT_WEBHOOK] = object12;
const CHANNELS_FOLLOWED = GuildSettingsSections.CHANNELS_FOLLOWED;
GUILD_SETTINGS_WEBHOOKS = ImpressionNames.GUILD_SETTINGS_WEBHOOKS;
string = intl.string;
const OrV60r = t.OrV60r;
object[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;
object[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;
object[INTEGRATION_PLATFORM] = {title: Reflect.apply(string, intl, [CIsNZw]), render: render_121985};
const LOBBIES_LINKED = GuildSettingsSections.LOBBIES_LINKED;
object[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;
object[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;
object[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;
object[SECURITY] = {impressionName: GUILD_SETTINGS_SECURITY, title: Reflect.apply(string, intl, [Am9YHi]),
render: render_121989};
const ROLES = GuildSettingsSections.ROLES;
const object20 = {};
const GUILD_SETTINGS_ROLES = ImpressionNames.GUILD_SETTINGS_ROLES;
object20.impressionName = GUILD_SETTINGS_ROLES;
object20.title = intl.string(t['LPJmL/']);
object20.render = render_121990;
object[ROLES] = object20;
const ROLE_EDIT_REFRESH = GuildSettingsSections.ROLE_EDIT_REFRESH;
const object21 = {};
object21.title = intl.string(t['LPJmL/']);
object21.render = render_121991;
object[ROLE_EDIT_REFRESH] = object21;
const VANITY_URL = GuildSettingsSections.VANITY_URL;
const object22 = {};
object22.title = intl.string(t['5XZKy/']);
object22.render = render_121992;
object[VANITY_URL] = object22;
const INSTANT_INVITES = GuildSettingsSections.INSTANT_INVITES;
const GUILD_SETTINGS_INVITES = ImpressionNames.GUILD_SETTINGS_INVITES;
object[INSTANT_INVITES] = {impressionName: GUILD_SETTINGS_INVITES, title: intl.string(t.ngRFjZ),
postponeRender: true, render: render_121993};
const MEMBERS = GuildSettingsSections.MEMBERS;
const object23 = {};
const GUILD_SETTINGS_MEMBERS = ImpressionNames.GUILD_SETTINGS_MEMBERS;
object23.impressionName = GUILD_SETTINGS_MEMBERS;
object23.title = intl.string(t['9Oq93m']);
object23.postponeRender = true;
object23.render = render_121994;
object[MEMBERS] = object23;
const MEMBER_EDIT = GuildSettingsSections.MEMBER_EDIT;
object[MEMBER_EDIT] = {render: render_121995};
const MEMBER_KICK = GuildSettingsSections.MEMBER_KICK;
object[MEMBER_KICK] = {headerTitle: function() {
return null;
}, render: render_121997};
const MEMBER_BAN = GuildSettingsSections.MEMBER_BAN;
object[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;
object[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;
object[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;
object[COMMUNITY_INTRO] = {impressionName: GUILD_SETTINGS_COMMUNITY_WELCOME, title: Reflect.apply(string, intl,
[ElKTeb]), render: render_122002};
const ROLE_SUBSCRIPTIONS = GuildSettingsSections.ROLE_SUBSCRIPTIONS;
const object24 = {};
object24.title = intl.string(t['KzCF/6']);
object24.render = render_122003;
object[ROLE_SUBSCRIPTIONS] = object24;
const ROLE_SUBSCRIPTIONS_ENABLE_MONETIZATION = GuildSettingsSections.ROLE_SUBSCRIPTIONS_ENABLE_MONETIZATION;
const object25 = {};
object25.title = intl.string(t['KzCF/6']);
object25.render = render_122004;
object[ROLE_SUBSCRIPTIONS_ENABLE_MONETIZATION] = object25;
const ROLE_SUBSCRIPTIONS_BASIC = GuildSettingsSections.ROLE_SUBSCRIPTIONS_BASIC;
const object26 = {};
object26.title = intl.string(t['/CfKoD']);
object26.render = render_122005;
object[ROLE_SUBSCRIPTIONS_BASIC] = object26;
const ROLE_SUBSCRIPTIONS_TIERS = GuildSettingsSections.ROLE_SUBSCRIPTIONS_TIERS;
object[ROLE_SUBSCRIPTIONS_TIERS] = {title: intl.string(t.pXbGYc), render: render_122006};
const ROLE_SUBSCRIPTIONS_TIER_EDIT = GuildSettingsSections.ROLE_SUBSCRIPTIONS_TIER_EDIT;
const object27 = {};
object27.title = intl.string(t['KzCF/6']);
object27.render = render_122007;
object[ROLE_SUBSCRIPTIONS_TIER_EDIT] = object27;
const ROLE_SUBSCRIPTIONS_PAYMENTS = GuildSettingsSections.ROLE_SUBSCRIPTIONS_PAYMENTS;
object[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;
object[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 object28 = {};
object28.title = intl.string(t['KzCF/6']);
object28.render = render_122010;
object[ROLE_SUBSCRIPTIONS_TIER_TEMPLATE_SELECTION] = object28;
const OFFICIAL_MESSAGES = GuildSettingsSections.OFFICIAL_MESSAGES;
object[OFFICIAL_MESSAGES] = {title: intl.string(t.xHEzFh), render: render_122011};
return object;
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} />)(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} />)(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} />)(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} />)(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} />)(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} />)(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} />)(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} />)(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 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} />)(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 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} />)(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 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} />)(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} />)(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} />)(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} />)(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} />)(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} />)(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} />)(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} />)(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} />)(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 = (GuildSettingsModalMemberEditModule).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} />)(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} />)(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} />)(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}} />)(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} />)(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} />)(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} />)(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} />)(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} />)(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}} />)(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} />)(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} />)(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}} />)(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} />)(GuildSettingsModalOfficialMessages);
}
}
}
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 _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 */);
}
global.__d(_fun121966, 15857, [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]) /* metro module 15857, 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] */;
File diff suppressed because it is too large. Load diff
@@ -1,285 +1,321 @@
/* 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] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GuildSettingsEmojiStore from '../GuildSettingsEmojiStore.tsx'; /* Metro dependency 15904 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as NavigatorHeaderNativeModule from '../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as NavScrimAndroidModule from '../../../design/components/Navigator/native/NavScrim.android.tsx'; /* Metro dependency 5462 */
import * as GuildBoostingUtilsModule from '../../../utils/GuildBoostingUtils.tsx'; /* Metro dependency 8249 */
import * as EmojiActionCreatorsModule from '../../../actions/EmojiActionCreators.tsx'; /* Metro dependency 8629 */
import * as UseManageResourcePermissionsModule from '../../permissions/useManageResourcePermissions.tsx'; /* Metro dependency 9077 */
import * as HeaderRowModule from './GuildSettingsModalEmoji/HeaderRow.tsx'; /* Metro dependency 15910 */
import * as EmptyServerSettingsEmojiModule from '../../../design/components/Illustration/native/redesign/generated/EmptyServerSettingsEmoji.tsx'; /* Metro dependency 15911 */
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 ManageEmojisModal2 = 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 */;
let value = ReactNativeModule;
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);
const env0_12 = value.throttle((EmojiActionCreatorsModule).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;
object = {loadingContainer: {'flex': 1, 'paddingTop': 40}};
object.emptyState = {paddingTop: 30};
const PX_12 = (Native).space.PX_12;
object.list = {paddingHorizontal: PX_12};
const PX_16 = (Native).space.PX_16;
object.section = {paddingVertical: PX_16};
object.titleContainer = {'paddingLeft': 16, 'paddingRight': 16};
const env0_13 = Reflect.apply(createStyles, value, [object]);
const computeSectionItem2 = 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');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalEmoji.tsx');
exports.default = GuildSettingsModalEmoji;
exports.computeSectionItem = closure2;
exports.computeSectionItem = computeSectionItem2;
exports.computeEmojiItem = closure3;
exports.ManageEmojisModal = closure;
}
exports.ManageEmojisModal = ManageEmojisModal2;
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 guildSettingsEmojiStoreBinding = GuildSettingsEmojiStore;
var guildBinding = guild;
object.emojis = guildSettingsEmojiStoreBinding.getEmojis(guildBinding.id);
object.revision = GuildSettingsEmojiStore.getEmojiRevision(guildBinding.id);
return object;
});
const emojis = value4.emojis;
const emojis2 = emojis;
const revision = value4.revision;
const useManageResourcePermissions = UseManageResourcePermissionsModule.useManageResourcePermissions;
const canManageGuildExpression = Reflect.apply(useManageResourcePermissions, UseManageResourcePermissionsModule,
[guild]).canManageGuildExpression;
const emojiItems = computeEmojiItems(emojis ?? [], guild);
const styles = useStyles();
let binding = emojis2;
const env0_9 = binding.useRef(revision);
emojis2.useEffect(_fun122692, [guild.id]);
emojis2.useEffect(_fun122693, [guild.id, revision]);
binding = emojis2;
let useCallback = binding.useCallback;
const value5 = Reflect.apply(useCallback, binding, [_fun122694, [guild.id, disabled, emojiItems, styles,
onSelectRolesForEmoji, canManageGuildExpression]]);
binding = emojis2;
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 = emojis2;
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={emojis2.useCallback(function(a0) {
return a0.key;
}, [])}
renderItem={value5}
contentContainerStyle={[contentContainerStyle, styles.list]}
/>
);
}
return r0;
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 object;
var Text;
var section;
let type = item.type;
if (type === 'SECTION') {
value = environment.__proto__;
Text = (require(4573) /* metro dependency 4573: Text */).Text;
object = {'style': null, 'variant': 'text-xs/bold', 'color': 'text-default'};
section = styles.section;
object.style = section;
section = item.section;
return (
<Text {...object}>
{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 = (HeaderRowModule).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 = (NativeModule).EmptyState;
const object = {};
const EmptyServerSettingsEmoji = (EmptyServerSettingsEmojiModule).EmptyServerSettingsEmoji;
object.Illustration = EmptyServerSettingsEmoji;
object.style = styles.emptyState;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.lxsmBd]);
string = intl.string;
const RBbtMy = (require(1244) /* metro dependency 1244: indexNative */).t.RBbtMy;
object.body = Reflect.apply(string, intl, [RBbtMy]);
return <EmptyState {...object} />;
}
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 = [];
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};
}
items2 = [];
value = arraySpread(items2, r1, 0, dependencyMap);
if (property2.length > 0) {
items3 = [sectionItem];
arraySpread(items3, property2, 1, dependencyMap);
r1 = items3;
} else {
r1 = [];
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 = Module00057(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 _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);
}
}
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>
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 = (UseNavigationNativeModule).useNavigation();
const styles = useStyles();
styles.useLayoutEffect(_fun122705, [value2, guild, isLandingScreen, styles]);
if (guild == null) {
return null;
}
const maxEmojiSlots = (GuildBoostingUtilsModule).getMaxEmojiSlots(guild);
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const TA1BR0 = (IndexNativeModule).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 = (NavScrimAndroidModule).NavScrim;
return (
<>
{manageEmojisModal}
<NavScrim />
</>
);
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 = Module00057;
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 = (NavigatorHeaderNativeModule).NavigatorHeader;
return (
<View style={styles.titleContainer}>
<NavigatorHeader title={guild.name} />
</View>
);
}
}
}
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>
);
}
global.__d(_fun122689, 15903, [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]) /* metro module 15903, 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] */;
@@ -1,192 +1,305 @@
/* 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] */
import AvatarUtils from '../../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserUtils from '../../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
import NicknameUtils from '../../../../utils/NicknameUtils.tsx'; /* Metro dependency 4617 */
import ShowEmojiOverflowActionSheet from '../showEmojiOverflowActionSheet.tsx'; /* Metro dependency 15907 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as UseManageResourcePermissionsModule from '../../../permissions/useManageResourcePermissions.tsx'; /* Metro dependency 9077 */
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 createStyles = CreateStylesModule.createStyles;
object = {};
object.flex = {flex: 1};
object.flexCenterRow = {'flexDirection': 'row', 'alignItems': 'center'};
const object3 = {'paddingVertical': 4, 'borderRadius': null, 'alignItems': 'center', 'flexDirection': 'row'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object.nameContainer = object3;
const object4 = {};
object4.padding = PlatformUtilsModule.isAndroid() ? value : value4;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object4.alignItems = 'center';
object4.flexDirection = 'row';
object.activeNameContainer = object4;
object.usernameContainer = {'marginRight': 8, 'maxWidth': 150, 'flexShrink': 1};
const object5 = {fontSize: 16};
object5.padding = PlatformUtilsModule.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};
object5.color = MOBILE_TEXT_HEADING_PRIMARY;
object.emojiText = object5;
object.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'};
object.username = {fontSize: 13, color: TEXT_MUTED};
object.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%',
object.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');
const env0_11 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).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>;
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
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
var r9;
const Text = (TextModule).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 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 = (TableRowNativeModule).TableRow;
object = {};
const available = emoji.available;
let defaultImport = AvatarUtils;
const getEmojiURL = defaultImport.getEmojiURL;
object.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 = 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 = 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)
);
object.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_122741} 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>;
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>;
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>;
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;
object.label = r9;
object.disabled = disabled;
object.onPress = value6;
object.onLongPress = value7;
object.start = start;
object.end = end;
return <TableRow {...object} />;
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 object;
if (env0_3 !== emoji.name) {
value2 = environment.__proto__;
moduleValue = require(8629) /* metro dependency 8629: EmojiActionCreators */;
updateEmoji = moduleValue.updateEmoji;
object = {};
object.guildId = guildId;
object.emojiId = emoji.id;
object.name = (importDefault(3801) /* metro dependency 3801: EmojiUtils */).sanitizeEmojiName(env0_3);
Reflect.apply(updateEmoji, moduleValue, [object]);
}
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__;
(ShowEmojiOverflowActionSheet)({guildId: guildId, emoji: emoji,
onEdit: onEdit_122738, onSelectRolesForEmoji: onSelectRolesForEmoji});
function onEdit_122738() { // fn#122738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16114:1519, offset: 0x0202da0c, size: 18 bytes, params: 1, frame: 11
env1_5(true);
}
}
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) {
(0, ReactNativeModule.Image)();
} 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
(0, ReactNativeModule.Image)();
}
function EmojiRowOnChangeText(a0) { // fn#122741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16114:1687, owner: EmojiRow.onChangeText, offset: 0x01e67c9c, size: 19 bytes, params: 2, frame: 11
env0_4(a0);
}
}
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();
}
global.__d(_fun122733, 15906, [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]) /* metro module 15906, 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] */;
@@ -1,456 +1,493 @@
/* 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] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildSettingsEmojiStore from '../../GuildSettingsEmojiStore.tsx'; /* Metro dependency 15904 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as EmojiConstantsModule from '../../../emojis/EmojiConstants.tsx'; /* Metro dependency 1881 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseManageResourcePermissionsModule from '../../../permissions/useManageResourcePermissions.tsx'; /* Metro dependency 9077 */
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 */;
let value = ReactNativeModule;
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 = {};
object = {};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.uploadInstructionsContainer = {marginTop: PX_12};
object.uploadInstructionsContainer = {marginTop: PX_12};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.uploadInstructionsHeading = {marginVertical: PX_12};
object2.uploadInstructionsList = {marginLeft: 8};
object.uploadInstructionsHeading = {marginVertical: PX_12};
object.uploadInstructionsList = {marginLeft: 8};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.headerContainer = {paddingTop: PX_16};
object.headerContainer = {paddingTop: PX_16};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.errorText = {marginTop: PX_8};
object.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');
object.uploadListItem = {paddingRight: PX_8};
const env0_16 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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}
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 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 = (TextModule).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>
</View>
</>
);
}
</>
);
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* _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 object;
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 {
object = {};
} 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 {
object.guild_id = id;
} catch (error) {
env2_4(false);
throw error;
}
try {
} catch (error) {
env2_4(false);
throw error;
}
try {
object.upload_id = View;
} catch (error) {
env2_4(false);
throw error;
}
try {
Reflect.apply(track, value6, [EMOJI_UPLOAD_STARTED, object]);
} 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 {
object = {};
} catch (error) {
env2_4(false);
throw error;
}
try {
binding = env3_11;
} catch (error) {
env2_4(false);
throw error;
}
try {
object.size = binding;
} catch (error) {
env2_4(false);
throw error;
}
try {
value8 = Reflect.apply(openImagePicker, value7, [object]);
} 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 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 _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 object;
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;
object = {};
value4 = environment.__proto__.__proto__.__proto__.__proto__;
object.guild_id = require.id;
object.file_size = global.Buffer.byteLength(env0_0);
object.upload_id = View;
Reflect.apply(track, value3, [EMOJI_UPLOAD_FILE_SIZE_LIMIT_EXCEEDED, object]);
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);
}
}
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;
function _fun122761() { // fn#122761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16118:1806, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
r3 = value13;
}
yield r3;
try {
value14 = undefined;
value15 = false;
} catch (error) {
env2_4(false);
throw error;
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 = (TextModule).Text;
return (
<Text
style={styles.uploadListItem}
variant="text-xs/medium"
color="text-muted"
accessibilityLabel={item.text}
>
{'•'}
{' '}
{item.text}
</Text>
);
}
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;
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;
}
r2 = r3;
} else {
r2 = undefined;
}
if (r2 != null) {
value9 = environment.__proto__.__proto__.__proto__.__proto__;
env4_5(r2);
return (
<HeaderRow
isUploading={(require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsEmojiStore],
function() {
return GuildSettingsEmojiStore.isUploadingEmoji();
})}
{...copyDataProperties({}, a0, undefined, undefined)}
/>
);
}
}
global.__d(_fun122753, 15910, [5, 57, 31, 27, 15904, 661, 1881, 33, 4501, 697, 9077, 8629, 683, 1244, 491, 4660,
4578, 4573, 566,
2]) /* metro module 15910, dependencies: [5, 57, 31, 27, 15904, 661, 1881, 33, 4501, 697, 9077, 8629, 683, 1244, 491, 4660, 4578, 4573, 566, 2] */;
@@ -1,300 +1,355 @@
/* 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] */
import Module00022 from '../../../by-id/module-00022.js'; /* Metro dependency 22 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GuildSettingsStore from '../GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import GuildIncidentsStore from '../../guild_antiraid/GuildIncidentsStore.tsx'; /* Metro dependency 10906 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as TableCheckboxRowNativeModule from '../../../design/components/TableRow/native/TableCheckboxRow.native.tsx'; /* Metro dependency 8950 */
import * as GuildInvitesDisabledUtilsModule from '../safety/GuildInvitesDisabledUtils.tsx'; /* Metro dependency 11838 */
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 InvitesDisabledRow2 = 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 */;
let value = ReactNativeModule;
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},
const env0_15 = (CreateStylesModule).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');
(FileImportTrackerModule).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);
exports.InvitesDisabledRow = InvitesDisabledRow2;
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 {
r2 = value6;
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)}]);
}
r10 = r2;
const TableCheckboxRow = (TableCheckboxRowNativeModule).TableCheckboxRow;
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).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
/>
);
}
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}]);
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 = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
showChannel = !(showChannel === undefined) && showChannel;
const styles = useStyles();
const value4 = (GuildInvitesDisabledUtilsModule).useInvitesDisabledPermission(guild);
const env0_3 = value4;
const guildIncident = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildIncidentsStore],
function() {
return GuildIncidentsStore.getGuildIncident(guild.id);
});
const guildIncident2 = 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;
}
} catch (error) {
env0_7(false);
throw error;
r10 = r2;
}
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} />;
let binding = guildIncident2;
const [property, env0_7] = env0_3(binding.useState(false), 2);
const [property2, env0_8] = env0_3(guildIncident2.useState(21), 2);
const value18 = guildIncident2.useMemo(_fun123640, [guildIncident2.useMemo(_fun123637, [invites, value4,
showChannel]), (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ChannelStore],
function() {
return ChannelStore.getSortedLinkedChannelsForGuild(guild.id);
})]);
guildIncident2.useEffect(_fun123643, []);
binding = guildIncident2;
let useCallback = binding.useCallback;
const value19 = Reflect.apply(useCallback, binding, [function(a0) {
return a0.type === 'invite' ? a0.data.code : a0.data.id;
}, []]);
const value20 = guildIncident2.useCallback(_fun123645, [property, guildIncident, guild]);
binding = guildIncident2;
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 {
value = importDefault(12132) /* metro dependency 12132: InstantInvite */;
value = ((Component) => <Component invite={item.data} />)(value);
r1 = value;
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]}
/>
);
}
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 _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 = Module00022;
const value3 = defaultImport.sortBy(invites, _fun123638);
if (env0_3) {
value3.unshift(env1_17);
}
return value3;
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;
}
}
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 = ConstantsModule.GuildFeatures;
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 object;
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 {
object = {};
value2 = environment.__proto__;
property = dependencyMap[20];
moduleValue = require(property);
GuildIncidentActionSources = moduleValue.GuildIncidentActionSources;
MESSAGE = GuildIncidentActionSources.MESSAGE;
object.source = MESSAGE;
property = dependencyMap[21];
moduleValue2 = require(property);
incidentAlertType = moduleValue2.getIncidentAlertType(guildIncident);
object.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: object}]);
} 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={ConstantsModule.HelpdeskArticles}
/>
);
} 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;
}
}
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 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 _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 guildSettingsStoreBinding = GuildSettingsStore;
const getProps = guildSettingsStoreBinding.getProps;
return Reflect.apply(getProps, guildSettingsStoreBinding, []).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;
}
global.__d(_fun123633, 15983, [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]) /* metro module 15983, 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] */;
@@ -1,4 +1,29 @@
/* 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] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildChannelStore from '../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import PermissionStore from '../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import GuildSettingsActionCreators from '../GuildSettingsActionCreators.tsx'; /* Metro dependency 9112 */
import GuildSettingsStore from '../GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import IconLabelBlock from '../../../components_native/common/IconLabelBlock.tsx'; /* Metro dependency 15211 */
import GuildSettingsModalChannelsStore from '../GuildSettingsModalChannelsStore.tsx'; /* Metro dependency 15860 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseTokenModule from '../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as CircleInformationIconModule from '../../../design/components/Icon/native/redesign/generated/CircleInformationIcon.tsx'; /* Metro dependency 4068 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as NavScrimAndroidModule from '../../../design/components/Navigator/native/NavScrim.android.tsx'; /* Metro dependency 5462 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as GroupIconModule from '../../../design/components/Icon/native/redesign/generated/GroupIcon.tsx'; /* Metro dependency 6699 */
import * as GuildRoleSubscriptionSettingUtilsModule from '../../guild_role_subscriptions/feature_gating/GuildRoleSubscriptionSettingUtils.tsx'; /* Metro dependency 6850 */
import * as NativeModule from '../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as UseChannelsAllowedToUnlinkModule from '../../lobbies/hooks/useChannelsAllowedToUnlink.tsx'; /* Metro dependency 15866 */
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) {
@@ -9,14 +34,7 @@ function _fun122020(global, require, importDefault, importAll, module, exports,
};
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 */;
let value = ConstantsModule;
const env0_11 = value.GuildFeatures;
const env0_12 = value.GuildSettingsSections;
const env0_13 = value.ChannelTypes;
@@ -28,309 +46,356 @@ function _fun122020(global, require, importDefault, importAll, module, exports,
const pushRow = function(a0, a1) {
a1.push(a0);
};
const env0_19 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {flex: 1},
const env0_19 = (CreateStylesModule).createStyles({container: {flex: 1},
containerContent: {paddingTop: 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalLanding.tsx');
(FileImportTrackerModule).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);
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 object2;
var object3;
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 = (CircleInformationIconModule).CircleInformationIcon;
object.icon = <Icon IconComponent={CircleInformationIcon} />;
object.onPress = function() {
return pushScreen(GuildSettingsSections.OVERVIEW);
};
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);
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 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);
}
}
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;
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 = (TableRowGroupNativeModule).TableRowGroup;
const object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.title = Reflect.apply(string, intl, [t['1g9A/f']]);
object.hasIcons = true;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const object2 = {};
string = intl.string;
if (value2) {
object2.label = Reflect.apply(string, intl, [t.nRtNqn]);
object2.arrow = true;
object2.icon = ((Icon) => <Icon IconComponent={(require(13142) /* metro dependency 13142: TreehouseIcon */).TreehouseIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon);
object2.onPress = function() {
var pushScreenBinding = pushScreen;
var COMMUNITY = GuildSettingsSections.COMMUNITY;
return pushScreenBinding(COMMUNITY, {});
};
tableRow = <TableRow {...object2} key="community-overview" />;
} else {
object2.label = Reflect.apply(string, intl, [t.ElKTeb]);
object2.arrow = true;
object2.icon = ((Icon) => <Icon IconComponent={(require(13142) /* metro dependency 13142: TreehouseIcon */).TreehouseIcon} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon);
object2.onPress = onPress_122035;
tableRow = <TableRow {...object2} key="community-intro" />;
}
return (
<TableRowGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3D5yo/'])} hasIcons>
{object}
<TableRowGroup {...object}>
{tableRow}
</TableRowGroup>
);
}
}
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 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, {});
}
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 = (GroupIconModule).GroupIcon;
object.icon = <Icon IconComponent={GroupIcon} />;
object.onPress = function() {
return pushScreen(GuildSettingsSections.MEMBERS);
};
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" />;
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>
);
}
}
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;
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 useToken = UseTokenModule.useToken;
const TABLE_ROW_PADDING = (Native).modules.mobile.TABLE_ROW_PADDING;
const value2 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_PADDING]);
const styles = useStyles();
let value3 = (UseNavigationNativeModule).useNavigation();
let value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildChannelStore], function() {
var guildChannelStoreBinding = GuildChannelStore;
var property = guildChannelStoreBinding.getChannels;
var guildBinding = guild;
var value3 = undefined;
var value4 = Reflect.apply(property, guildChannelStoreBinding, [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);
});
ReactModule.useEffect(function() {
trackPaneViewed(GuildSettingsSections.LANDING);
}, []);
const value6 = ReactModule.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 useChannelsAllowedToUnlink = UseChannelsAllowedToUnlinkModule.useChannelsAllowedToUnlink;
const value7 = Reflect.apply(useChannelsAllowedToUnlink, UseChannelsAllowedToUnlinkModule, [guild.id]).length > 0;
const value8 = (GuildRoleSubscriptionSettingUtilsModule).useCanManageGuildRoleSubscriptions(guild);
const r21 = canManageGuild && (require(6858) /* metro dependency 6858: GuildOfficialMessageUtils */).isGuildOfficialMessagesEnabled(guild,
'GuildSettingsModalLanding');
ReactModule.useLayoutEffect(_fun122046, [updateErrors.message]);
const jsxRuntimeEnv0_17Binding = jsxRuntimeEnv0_17;
const Form = (NativeModule).Form;
const items3 = [styles.containerContent, contentContainerStyle];
const Stack = (StackNativeModule).Stack;
const object2 = {paddingHorizontal: value2};
const PX_24 = (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" />)(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={object2} spacing={PX_24}>
{items2}
</Stack>
</Form>
);
const NavScrim = (NavScrimAndroidModule).NavScrim;
return (
<TableRowGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+OecxG'])} hasIcons>
{object}
</TableRowGroup>
<>
{form}
<NavScrim />
</>
);
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];
(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;
}
}
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 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;
}
global.__d(_fun122020, 15859, [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]) /* metro module 15859, 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] */;
@@ -1,196 +1,213 @@
/* 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] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UserUtils from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
import GuildJoinRequestStore from '../../guild_member_verification/GuildJoinRequestStore.tsx'; /* Metro dependency 7068 */
import OpenJoinRequestActionSheet from '../../guild_member_verification/native/openJoinRequestActionSheet.tsx'; /* Metro dependency 15004 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as UseTokenModule from '../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NavScrimAndroidModule from '../../../design/components/Navigator/native/NavScrim.android.tsx'; /* Metro dependency 5462 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as FlashListModule from '../../../external/discord_common/js/packages/flash-list/index.jsx'; /* Metro dependency 8416 */
import * as UseSortedMemberApplicationsModule from '../../guild_member_verification/hooks/useSortedMemberApplications.tsx'; /* Metro dependency 15009 */
import * as UsePaginatedMemberApplicationsModule from '../../guild_member_verification/hooks/usePaginatedMemberApplications.tsx'; /* Metro dependency 15010 */
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]);
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const PX_12 = (Native).space.PX_12;
object.containerInner = {'paddingHorizontal': null, 'flex': 1, 'marginTop': 16, paddingHorizontal: PX_12};
object.spinnerContainer = {padding: 32};
object.footerSpinner = {paddingVertical: 16};
const TEXT_BRAND = (Native).colors.TEXT_BRAND;
object.spinner = {color: TEXT_BRAND};
const env0_10 = Reflect.apply(createStyles, CreateStylesModule, [object]);
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');
(FileImportTrackerModule).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;
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 = (TextModule).Text;
const globalName = (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>
);
}
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) {
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 = (TableRowNativeModule).TableRow;
const Avatar = (NativeModule).Avatar;
const AvatarSizes = (NativeModule).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 _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__;
(OpenJoinRequestActionSheet)(joinRequest);
}
}
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 = (NavScrimAndroidModule).NavScrim;
var r12;
var r9;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var jsxRuntimeEnv0_9Binding;
const FlashList = (FlashListModule).FlashList;
var object;
var object4;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
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 useSortedMemberApplications = UseSortedMemberApplicationsModule.useSortedMemberApplications;
const object5 = {guildId: guildId, applicationStatus: applicationStatus};
const GuildJoinRequestSortOrders = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestSortOrders;
let TIMESTAMP_DESC = GuildJoinRequestSortOrders.TIMESTAMP_DESC;
object5.sortOrder = TIMESTAMP_DESC;
const guildJoinRequests = Reflect.apply(useSortedMemberApplications, UseSortedMemberApplicationsModule,
[object5]).guildJoinRequests;
const usePaginatedMemberApplications = UsePaginatedMemberApplicationsModule.usePaginatedMemberApplications;
const fetchNextPage = Reflect.apply(usePaginatedMemberApplications, UsePaginatedMemberApplicationsModule,
[{guildId: guildId, guildJoinRequests: guildJoinRequests}]).fetchNextPage;
const fetchNextPage2 = fetchNextPage;
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildJoinRequestStore],
function() {
return GuildJoinRequestStore.isFetching();
});
const binding = fetchNextPage2;
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) {
object = {keyExtractor: value7, data: guildJoinRequests, renderItem: value6, estimatedItemSize: value3};
object4 = {};
object4.paddingBottom = bottom + (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.contentContainerStyle = object4;
object.onEndReached = value5;
object.ListFooterComponent = ListFooterComponent_113421;
r9 = <FlashList {...object} />;
} else {
const EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
r9 = <EmptyState Illustration={(require(8754) /* metro dependency 8754: NoResults */).NoResults} body={r12} />;
}
return (
<View style={styles.spinnerContainer}>
<ActivityIndicator size="large" color={styles.spinner.color} />
</View>
<>
<View {...viewBindingProps}>
{r9}
</View>
<NavScrim />
</>
);
}
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']);
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;
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} />;
if (guildJoinRequests.length !== 0) {
object = {keyExtractor: value7, data: guildJoinRequests, renderItem: value6, estimatedItemSize: value3};
object4 = {};
object4.paddingBottom = bottom + (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.contentContainerStyle = object4;
object.onEndReached = value5;
object.ListFooterComponent = ListFooterComponent_113421;
r9 = <FlashList {...object} />;
} else {
const EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
r9 = <EmptyState Illustration={(require(8754) /* metro dependency 8754: NoResults */).NoResults} body={r12} />;
const EmptyState2 = (require(1305) /* metro dependency 1305: native */).EmptyState;
r9 = <EmptyState2 Illustration={(require(8754) /* metro dependency 8754: NoResults */).NoResults} body={r12} />;
}
return (
<>
<View {...viewBindingProps}>
<View style={styles.containerInner}>
{r9}
</View>
<NavScrim />
</>
);
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) {
(0, ReactNativeModule.View)();
}
}
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 (
ReactNativeModule.ActivityIndicator
? (
<View style={styles.footerSpinner}>
<ActivityIndicator size="small" color={styles.spinner.color} />
</View>
)
: null
);
}
}
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;
}
global.__d(_fun113411, 15003, [31, 27, 7068, 33, 4501, 697, 3995, 4573, 15004, 1423, 6238, 1305, 1585, 3860, 15009,
3972, 15010, 566, 1244, 8416, 8754, 5462,
2]) /* metro module 15003, dependencies: [31, 27, 7068, 33, 4501, 697, 3995, 4573, 15004, 1423, 6238, 1305, 1585, 3860, 15009, 3972, 15010, 566, 1244, 8416, 8754, 5462, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,145 +1,169 @@
/* 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] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import Module09139 from '../../../by-id/module-09139.js'; /* Metro dependency 9139 */
import GuildSettingsModalMemberApplications from './GuildSettingsModalMemberApplications.tsx'; /* Metro dependency 15003 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as MemberVerificationTypesModule from '../../guild_member_verification/MemberVerificationTypes.tsx'; /* Metro dependency 3972 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as HeaderActionButtonNativeModule from '../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as ContextMenuNativeModule from '../../../design/components/ContextMenu/native/ContextMenu.native.tsx'; /* Metro dependency 8811 */
import * as TabsNativeModule from '../../../design/components/Tabs/native/Tabs.native.tsx'; /* Metro dependency 8859 */
import * as SegmentedControlPagesNativeModule from '../../../design/components/SegmentedControl/native/SegmentedControlPages.native.tsx'; /* Metro dependency 8861 */
import * as UseSubmittedGuildJoinRequestTotalModule from '../../guild_member_verification/hooks/useSubmittedGuildJoinRequestTotal.tsx'; /* Metro dependency 14596 */
import * as MemberSafetyPageTypesModule from '../../guild_mod_dash_member_safety/MemberSafetyPageTypes.tsx'; /* Metro dependency 14996 */
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,
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (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');
(FileImportTrackerModule).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} />
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 = (UseWindowDimensionsNative)().width;
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 = (UseNavigationNativeModule).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 = (TabsNativeModule).Tabs;
const view = (
<View style={styles.tabContainer}>
<Tabs
state={value6}
grow
formatCount={value7}
/>
</View>
</View>
);
}
);
const SegmentedControlPages = (SegmentedControlPagesNativeModule).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 object = {};
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;
object.label = Reflect.apply(string, intl, [NOOm1Z]);
const MemberSafetyPageTab = (MemberSafetyPageTypesModule).MemberSafetyPageTab;
const ALL_MEMBERS = MemberSafetyPageTab.ALL_MEMBERS;
object.id = ALL_MEMBERS;
object.page = ((Component) => <Component guildId={guildId} />)(importDefault(14997) /* metro dependency 14997: GuildSettingsModalMembers */);
const items2 = [object];
object = {};
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4eQVBO']);
const PENDING = MemberSafetyPageTab.PENDING;
object.id = PENDING;
object.count = env0_1 > 0 ? env0_1 : value2;
guildIdBinding = guildId;
const GuildJoinRequestApplicationStatuses = (MemberVerificationTypesModule).GuildJoinRequestApplicationStatuses;
const SUBMITTED = GuildJoinRequestApplicationStatuses.SUBMITTED;
object.page = <GuildSettingsModalMemberApplications guildId={guildIdBinding} applicationStatus={SUBMITTED} />;
items2[1] = object;
object = {};
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bSZkla);
let REJECTED = MemberSafetyPageTab.REJECTED;
object.id = REJECTED;
value = GuildSettingsModalMemberApplications;
REJECTED = GuildJoinRequestApplicationStatuses.REJECTED;
object.page = ((Component) => <Component guildId={guildIdBinding} applicationStatus={REJECTED} />)(value);
items2[2] = object;
object = {};
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.aURgY2);
let APPROVED = MemberSafetyPageTab.APPROVED;
object.id = APPROVED;
value = GuildSettingsModalMemberApplications;
APPROVED = GuildJoinRequestApplicationStatuses.APPROVED;
object.page = ((Component) => <Component guildId={guildIdBinding} applicationStatus={APPROVED} />)(value);
items2[3] = object;
return items2;
}
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;
var guildStoreBinding;
if (a0 === 0) {
value = environment.__proto__;
guildStoreBinding = GuildStore;
var env0_0 = guildStoreBinding.getGuild(guildId);
binding = env0_2;
binding.setOptions({headerRight: headerRight_113333});
} else {
env0_2.setOptions({headerRight: function() {
return null;
}});
}
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 = (ContextMenuNativeModule).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 = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {source: Module09139};
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} />;
}
}
}
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_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} />;
}
global.__d(_fun113329, 14995, [31, 27, 1867, 33, 4501, 697, 1478, 14596, 1244, 14996, 14997, 15003, 3972, 1484,
8853, 8811, 14998, 5277, 9139, 8859, 8859, 8861,
2]) /* metro module 14995, dependencies: [31, 27, 1867, 33, 4501, 697, 1478, 14596, 1244, 14996, 14997, 15003, 3972, 1484, 8853, 8811, 14998, 5277, 9139, 8859, 8859, 8861, 2] */;
@@ -1,16 +1,21 @@
/* Metro module 15986; source: modules/guild_settings/native/GuildSettingsModalMembersWrapper.tsx; dependencies: [31, 33, 6855, 14995, 14997, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
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;
let value = ReactModule;
value = value.memo(_fun123659);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalMembersWrapper.tsx');
(FileImportTrackerModule).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]));
}
}
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]));
}
global.__d(_fun123658, 15986, [31, 33, 6855, 14995, 14997,
2]) /* metro module 15986, dependencies: [31, 33, 6855, 14995, 14997, 2] */;
@@ -1,62 +1,85 @@
/* 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] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Module00674 from '../../../by-id/module-00674.js'; /* Metro dependency 674 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import GuildSettingsActionCreators from '../GuildSettingsActionCreators.tsx'; /* Metro dependency 9112 */
import GuildSettingsStore from '../GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import ColorBlock from '../../../components_native/common/color_picker/ColorBlock.tsx'; /* Metro dependency 13187 */
import Module13745 from '../../../by-id/module-13745.js'; /* Metro dependency 13745 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as ColorUtilsModule from '../../../external/discord_common/js/shared/utils/ColorUtils.tsx'; /* Metro dependency 673 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as HeaderActionButtonNativeModule from '../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorHeaderNativeModule from '../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as TableRowConstantsModule from '../../../design/components/TableRow/native/TableRowConstants.tsx'; /* Metro dependency 6233 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as SegmentedControlStateNativeModule from '../../../design/components/SegmentedControl/native/SegmentedControlState.native.tsx'; /* Metro dependency 8853 */
import * as SegmentedControlNativeModule from '../../../design/components/SegmentedControl/native/SegmentedControl.native.tsx'; /* Metro dependency 9221 */
import * as ThemeDarkIconModule from '../../../design/components/Icon/native/redesign/generated/ThemeDarkIcon.tsx'; /* Metro dependency 11256 */
import * as ThemeLightIconModule from '../../../design/components/Icon/native/redesign/generated/ThemeLightIcon.tsx'; /* Metro dependency 13730 */
import * as ThemeMidnightIconModule from '../../../design/components/Icon/native/redesign/generated/ThemeMidnightIcon.tsx'; /* Metro dependency 13732 */
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 */;
let value = ReactNativeModule;
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;
const TABLE_ROW_PADDING = (TableRowConstantsModule).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 = {};
object = {};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.container = {gap: PX_8, height: '100%'};
const object7 = {};
object.container = {gap: PX_8, height: '100%'};
const object3 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object7.gap = PX_16;
object7.alignItems = 'center';
object3.gap = PX_16;
object3.alignItems = 'center';
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object7.paddingHorizontal = PX_16;
object3.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,
object3.marginBottom = PX_16;
object.segmentedControlContainer = object3;
object.trailingColorContainer = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center'};
object.colorBlock = {'marginHorizontal': 0, 'marginVertical': 0, 'marginRight': 8, 'minWidth': 24, 'height': 24,
'borderRadius': 3};
const object8 = {paddingHorizontal: TABLE_ROW_PADDING};
const object4 = {paddingHorizontal: TABLE_ROW_PADDING};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.gap = PX_8;
object2.chatSection = object8;
const object9 = {};
object4.gap = PX_8;
object.chatSection = object4;
const object5 = {};
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'};
object5.paddingVertical = PX_24;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object5.borderWidth = StyleSheet.hairlineWidth;
object.chatContainer = object5;
const object6 = {flexDirection: 'row'};
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object10.backgroundColor = BACKGROUND_BASE_LOW;
object6.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]);
object6.gap = PX_8;
object.chatContainerInner = object6;
object.chatContent = {flex: 1};
object.chatHeader = {'flexDirection': 'row', 'alignItems': 'baseline', 'gap': 6};
object.chatTimestamp = {marginTop: -8};
const env0_14 = Reflect.apply(createStyles, value, [object]);
value = require(4501) /* metro dependency 4501: createStyles */;
let createAnimatedThemedStyles = value.createAnimatedThemedStyles;
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
@@ -73,261 +96,303 @@ function _fun124477(global, require, importDefault, importAll, module, exports,
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');
object = {code: 'function GuildSettingsModalOfficialMessagesTsx1(){const{activeIndex}=this.__closure;return activeIndex.get();}'};
object = {code: 'function GuildSettingsModalOfficialMessagesTsx2(activeIndex){const{runOnJS,setCurrentThemeIndex}=this.__closure;runOnJS(setCurrentThemeIndex)(Math.round(activeIndex));}'};
(FileImportTrackerModule).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 = ReactModule.useMemo(_fun124479, []);
const internal = (Native).internal;
const resolveSemanticColor = internal.resolveSemanticColor;
const BACKGROUND_BASE_LOWER = (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 = (Module00674)(selectedColor);
const value8 = value6.alpha(GUILD_OFFICIAL_HIGHLIGHT_ALPHA).hex();
const View2 = (ReanimatedRexport).View;
const items3 = [styles.chatContainer];
items3[1] = animatedStyles.borderStrong;
items3[2] = animatedStyles.bgBaseLow;
const items2 = [styles.chatContainerInner];
items2[1] = {backgroundColor: value8};
const Avatar = (NativeModule).Avatar;
const avatar = <Avatar source={Module13745} />;
const Text = (TextModule).Text;
const textStrong = animatedStyles.textStrong;
const intl = (IndexNativeModule).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, [(IndexNativeModule).t.cqpybK])}
</Text>
<Text
animated
variant="text-xs/medium"
style={[styles.chatTimestamp, animatedStyles.textMuted]}
>
{value2}
</Text>
</View>
);
const object2 = {color: value5};
string = intl.string;
const Mi9Kbe = (IndexNativeModule).t.Mi9Kbe;
return (
<View2 style={items3} pointerEvents="none">
<View style={items2}>
{avatar}
<View style={styles.chatContent}>
{view}
<Text
animated
variant="text-md/normal"
style={object2}
>
{Reflect.apply(string, intl, [Mi9Kbe])}
</Text>
</View>
</View>
</View2>
);
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 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>
}
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
const styles = useStyles();
const value3 = (UseNavigationNativeModule).useNavigation();
const {guild, submitting,
hasChanges} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
function() {
var object = {};
var guildSettingsStoreBinding = GuildSettingsStore;
object.guild = guildSettingsStoreBinding.getGuild();
object.submitting = guildSettingsStoreBinding.isSubmitting();
object.hasChanges = guildSettingsStoreBinding.hasChanges();
return object;
});
const hasChanges2 = 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 = hasChanges2;
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 = (SegmentedControlStateNativeModule).useSegmentedControlState({items: value11,
pageWidth: property3, defaultIndex: property});
const activeIndex = value12.activeIndex;
const useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
closure = function() {
return activeIndex.get();
};
closure.__closure = {activeIndex: activeIndex};
closure.__workletHash = 4687220686460;
closure.__initData = env0_19;
const GuildSettingsModalOfficialMessagesB2 = GuildSettingsModalOfficialMessagesB;
GuildSettingsModalOfficialMessagesB2.__closure = {runOnJS: ReanimatedRexportModule.runOnJS,
setCurrentThemeIndex: property2};
GuildSettingsModalOfficialMessagesB2.__workletHash = 5332792853021;
GuildSettingsModalOfficialMessagesB2.__initData = env0_20;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure, GuildSettingsModalOfficialMessagesB2]);
object = {bgBaseLow: env0_15(activeIndex), borderStrong: env0_16(activeIndex), textStrong: env0_17(activeIndex),
textMuted: env0_18(activeIndex)};
const TableRow = (TableRowNativeModule).TableRow;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const tableRow = (
<TableRow
label={Reflect.apply(string, intl, [(IndexNativeModule).t['2uQ6wZ']])}
onPress={value8}
arrow
trailing={<View style={styles.trailingColorContainer}>
{((Component) => <Component color={r20} style={styles.colorBlock} />)(ColorBlock)}
</View>}
subLabel={(ColorUtilsModule).int2hex(r20)}
/>
);
const Text = (TextModule).Text;
string = intl.string;
const VI0jGW = (IndexNativeModule).t.VI0jGW;
const items3 = [
<Text variant="heading-md/semibold">
{Reflect.apply(string, intl, [VI0jGW])}
</Text>,
];
items3[1] = (
<MessagePreview_124478
animatedStyles={object}
selectedColor={r20}
theme={value11[property].id}
/>
);
const SegmentedControl = (SegmentedControlNativeModule).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>
</View2>
);
}
);
function _fun124483() { // fn#124483, offset: 0x025ba19d, size: 11 bytes, params: 1, frame: 1
return _fun124484;
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 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 _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 handleSaveChanges_124486() { // 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 _fun124483() { // fn#124483, offset: 0x025ba19d, size: 11 bytes, params: 1, frame: 1
return _fun124484;
}
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 = (NavigatorHeaderNativeModule).HeaderSubmittingIndicator;
return <HeaderSubmittingIndicator />;
}
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 _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 = (HeaderActionButtonNativeModule).HeaderActionButton;
const handleSaveChanges_124486Binding = handleSaveChanges_124486;
const intl = (IndexNativeModule).intl;
return (
<HeaderActionButton
onPress={handleSaveChanges_124486Binding}
text={intl.string((IndexNativeModule).t['R3BPH+'])}
/>
);
}
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 _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 object = {};
object.color = env0_4;
object.defaultColor = env0_5;
const intl = require(dependencyMap[12]).intl;
const string = intl.string;
const XqMe3N = require(dependencyMap[12]).t.XqMe3N;
object.confirmLabel = Reflect.apply(string, intl, [XqMe3N]);
object.onSelect = onSelect_124491;
Reflect.apply(openLazy, defaultImport, [value, 'RoleColorPicker', object]);
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__;
(GuildSettingsActionCreators).updateGuild({officialMessageColor: a0});
}
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 _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 _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 _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 object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const K2sFfo = (require(1244) /* metro dependency 1244: indexNative */).t.K2sFfo;
object.label = Reflect.apply(string, intl, [K2sFfo]);
const LIGHT = ThemeTypes.LIGHT;
object.id = LIGHT;
const ThemeLightIcon = (ThemeLightIconModule).ThemeLightIcon;
object.icon = <ThemeLightIcon />;
object.page = null;
const items2 = [object];
object = {};
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.b8Cei3);
const DARKER = ThemeTypes.DARKER;
object.id = DARKER;
const ThemeDarkIcon = (ThemeDarkIconModule).ThemeDarkIcon;
object.icon = <ThemeDarkIcon />;
object.page = null;
items2[1] = object;
object = {};
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pQwSpQ);
const MIDNIGHT = ThemeTypes.MIDNIGHT;
object.id = MIDNIGHT;
const ThemeMidnightIcon = (ThemeMidnightIconModule).ThemeMidnightIcon;
object.icon = <ThemeMidnightIcon />;
object.page = null;
items2[2] = object;
return items2;
}
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 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 _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});
}
global.__d(_fun124477, 16127, [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]) /* metro module 16127, 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] */;
File diff suppressed because it is too large. Load diff
@@ -1,105 +1,130 @@
/* 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] */
import GuildRoleStore from '../../../stores/GuildRoleStore.tsx'; /* Metro dependency 1938 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import GuildSettingsStore from '../GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as TableRadioRowNativeModule from '../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
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 */;
let value = JsxRuntimeModule;
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'};
object = {};
const object2 = {'marginVertical': 8, 'borderRadius': null, 'overflow': 'hidden'};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.listView = object2;
object.roleDot = {marginEnd: 4};
object.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');
object.label = {color: INTERACTIVE_TEXT_DEFAULT};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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);
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
selectedRoleId = selectedRoleId === undefined ? GuildSettingsStore.getProps().selectedRoleId : selectedRoleId;
const styles = useStyles();
const styles2 = styles;
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 = styles2;
const value6 = binding.useCallback(_fun113380, [binding.useCallback(_fun113378, [onFilterRoleId, selectedRoleId]),
FluxModule.useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.roleStyle;
}), selectedRoleId, styles]);
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
object = {scrollable: true};
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.header = (
<BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pEasFX)} />
);
const BottomSheetFlatList = (Module06277Module).BottomSheetFlatList;
return (
<ActionSheet {...object}>
<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');
}
}
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 = (TableRadioRowNativeModule).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 = (TextModule).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;
tableRadioRowProps.legacyCompat_selected = item.id === selectedRoleId;
return <TableRadioRow {...tableRadioRowProps} />;
function legacyCompat_onPress() { // fn#113381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15196:1314, offset: 0x023b4826, size: 28 bytes, params: 1, frame: 11
return env1_4(item.id);
}
}
}
}
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} />;
}
global.__d(_fun113374, 14999, [31, 27, 4502, 1938, 9113, 33, 4501, 697, 566, 9112, 4080, 7987, 1305, 4573, 6805,
6758, 1244, 6277,
2]) /* metro module 14999, dependencies: [31, 27, 4502, 1938, 9113, 33, 4501, 697, 566, 9112, 4080, 7987, 1305, 4573, 6805, 6758, 1244, 6277, 2] */;
@@ -1,132 +1,156 @@
/* 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] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as TableRadioRowNativeModule from '../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
import * as PrunePreviewStoreModule from '../../guild_mod_dash_member_safety/PrunePreviewStore.tsx'; /* Metro dependency 15001 */
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 */;
let value = PrunePreviewStoreModule;
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');
(FileImportTrackerModule).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 object3;
const env0_1 = guild.id;
const [property, env0_3] = env0_3Binding(ReactModule.useState(7), 2);
const {count, isLoading} = usePrunePreview(guild.id, property, []);
ReactModule.useEffect(_fun113385, [guild.id, property]);
ReactModule.useEffect(_fun113388, [guild.id, property, count]);
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
object3 = {};
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object3.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl, [t.zbyz7p])} />;
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
const object = {};
string = intl.string;
const YccTvK = (require(1244) /* metro dependency 1244: indexNative */).t.YccTvK;
object.title = Reflect.apply(string, intl, [YccTvK]);
object.defaultValue = property;
object.onChange = onChange_113389;
object.hasIcons = false;
const TableRadioRow = (TableRadioRowNativeModule).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 {...object}>
{tableRadioRow}
<TableRadioRow value={30} label={Reflect.apply(formatToPlainString, intl, [FM1dHS, {days: 30}])} />
</TableRadioGroup>,
];
const Text = (TextModule).Text;
items2[1] = (
<Text variant="text-sm/medium">
{intl.format(isLoading ? t['98cHOp'] : t.f13az9, {members: count ?? -1, days: property})}
</Text>
);
const Button = (ButtonNativeModule).Button;
items2[2] = (
<Button
variant="destructive"
onPress={onPress_113390}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2mIlKQ'])}
/>
);
return (
<ActionSheet {...object3}>
{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 handlePruneUpdate2 = handlePruneUpdate;
const value = environment.__proto__;
(Dispatcher).subscribe('GUILD_PRUNE_UPDATE', handlePruneUpdate2);
return _fun113387;
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 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 _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);
}
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 _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 _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);
}
global.__d(_fun113383, 15000, [57, 31, 15001, 33, 694, 15002, 6805, 6758, 1244, 7988, 7987, 4573, 4578, 4080,
2]) /* metro module 15000, dependencies: [57, 31, 15001, 33, 694, 15002, 6805, 6758, 1244, 7988, 7987, 4573, 4578, 4080, 2] */;
@@ -1,87 +1,104 @@
/* Metro module 14994; source: modules/guild_settings/native/StandaloneMembersView.tsx; dependencies: [31, 33, 1484, 1585, 9112, 5282, 1244, 14995, 10296, 10311, 10313, 5280, 2] */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import KickConfirm from '../../guild_moderation/native/KickConfirm.tsx'; /* Metro dependency 10311 */
import BanConfirm from '../../guild_moderation/native/BanConfirm.tsx'; /* Metro dependency 10313 */
import GuildSettingsModalMembersWithTabs from './GuildSettingsModalMembersWithTabs.tsx'; /* Metro dependency 14995 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as NavigatorHeaderNativeModule from '../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as GuildSettingsModalMemberEditModule from './GuildSettingsModalMemberEdit.tsx'; /* Metro dependency 10296 */
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');
(FileImportTrackerModule).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 object3;
const env0_1 = (UseNavigationNativeModule).useNavigation();
const bottom = (UseSafeAreaInsetsNative)().bottom;
let binding = ReactModule;
binding.useEffect(_fun113320, [guildId]);
object3 = {contentContainerStyle: {paddingBottom: 16 + bottom}};
object3 = {};
binding = env0_5;
let MAIN = binding.MAIN;
const object = {};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun113321);
object.headerTitle = headerTitle_113322;
object.render = render_113323;
object3[MAIN] = object;
const MEMBER_EDIT = binding.MEMBER_EDIT;
object3[MEMBER_EDIT] = {render: render_113324};
const MEMBER_KICK = binding.MEMBER_KICK;
object3[MEMBER_KICK] = {headerTitle: function() {
return null;
}, render: render_113326};
const MEMBER_BAN = binding.MEMBER_BAN;
object3[MEMBER_BAN] = {headerTitle: function() {
return null;
}, render: render_113328};
const Navigator = (NavigatorNativeModule).Navigator;
MAIN = binding.MAIN;
const intl = (IndexNativeModule).intl;
return (
<Navigator
screens={object3}
initialRouteName={MAIN}
headerBackTitle={intl.string((IndexNativeModule).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 _fun113321() { // fn#113321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15191:586, offset: 0x022358e7, size: 19 bytes, params: 1, frame: 9
return env0_1.goBack();
}
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 = (NavigatorHeaderNativeModule).NavigatorHeader;
const intl = (IndexNativeModule).intl;
return <NavigatorHeader title={intl.string((IndexNativeModule).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} />)(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 = (GuildSettingsModalMemberEditModule).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} />)(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} />)(BanConfirm);
}
}
}
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 */);
}
global.__d(_fun113318, 14994, [31, 33, 1484, 1585, 9112, 5282, 1244, 14995, 10296, 10311, 10313, 5280,
2]) /* metro module 14994, dependencies: [31, 33, 1484, 1585, 9112, 5282, 1244, 14995, 10296, 10311, 10313, 5280, 2] */;
@@ -1,24 +1,28 @@
/* Metro module 15907; source: modules/guild_settings/native/showEmojiOverflowActionSheet.tsx; dependencies: [4080, 15908, 1962, 2] */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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 object = {onClose: onClose_122745};
copyDataProperties(object, a0, undefined);
Reflect.apply(openLazy, defaultImport, [value, 'EmojiOverflowActionSheet', object]);
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 (ActionSheetActionCreators).hideActionSheet('EmojiOverflowActionSheet');
}
}
}
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');
}
global.__d(_fun122743, 15907, [4080, 15908, 1962, 2]) /* metro module 15907, dependencies: [4080, 15908, 1962, 2] */;
@@ -1,84 +1,110 @@
/* Metro module 14998; source: modules/guild_settings/native/showMembersManagementActionSheet.tsx; dependencies: [3784, 661, 1244, 4080, 14999, 1962, 483, 15000, 6802, 2] */
import PermissionStore from '../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BigFlagUtilsModule from '../../../external/discord_common/js/shared/utils/BigFlagUtils.tsx'; /* Metro dependency 483 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ShowSimpleActionSheetModule from '../../action_sheet/native/showSimpleActionSheet.tsx'; /* Metro dependency 6802 */
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');
(FileImportTrackerModule).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 object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
object.label = Reflect.apply(string, intl, [t.pEasFX]);
object.onPress = onPress_113369;
const items2 = [object];
const permissionStoreBinding = PermissionStore;
const can = permissionStoreBinding.can;
const combine = BigFlagUtilsModule.combine;
const MANAGE_GUILD = Permissions.MANAGE_GUILD;
const KICK_MEMBERS = Permissions.KICK_MEMBERS;
if (Reflect.apply(can, permissionStoreBinding, [Reflect.apply(combine, BigFlagUtilsModule, [MANAGE_GUILD,
KICK_MEMBERS]), guild])) {
push = items2.push;
object = {};
object.label = intl.string(t['2mIlKQ']);
object.onPress = onPress_113370;
object.isDestructive = true;
Reflect.apply(push, items2, [object]);
}
(ShowSimpleActionSheetModule).showSimpleActionSheet({'key': 'GuildSettingsMembersMore',
'options': null, 'hasIcons': false, options: 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}]);
}
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]);
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 object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
object.label = Reflect.apply(string, intl, [t.pEasFX]);
object.action = action_113372;
const items2 = [object];
const permissionStoreBinding = PermissionStore;
const can = permissionStoreBinding.can;
const combine = BigFlagUtilsModule.combine;
const MANAGE_GUILD = Permissions.MANAGE_GUILD;
const KICK_MEMBERS = Permissions.KICK_MEMBERS;
if (Reflect.apply(can, permissionStoreBinding, [Reflect.apply(combine, BigFlagUtilsModule, [MANAGE_GUILD,
KICK_MEMBERS]), guild])) {
push = items2.push;
object = {};
object.label = intl.string(t['2mIlKQ']);
object.action = action_113373;
object.variant = 'destructive';
Reflect.apply(push, items2, [object]);
}
return items2;
function getMembersManagementActionsAction() { // fn#113372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:948, owner: getMembersManagementActions.action, 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 getMembersManagementActionsAction_113373() { // fn#113373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15195:1179, owner: getMembersManagementActions.action, 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}]);
}
}
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}]);
}
global.__d(_fun113367, 14998, [3784, 661, 1244, 4080, 14999, 1962, 483, 15000, 6802,
2]) /* metro module 14998, dependencies: [3784, 661, 1244, 4080, 14999, 1962, 483, 15000, 6802, 2] */;