Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,127 @@
|
||||
/* Metro module 15889; source: modules/guild_moderation/native/AuditLogActionIcon.tsx; dependencies: [31, 27, 15879, 661, 33, 4501, 697, 15890, 15863, 7950, 4068, 13467, 4056, 8665, 6699, 15117, 6707, 9133, 6684, 10976, 8770, 10284, 15892, 10139, 6682, 9411, 15894, 15895, 15896, 1305, 2] */
|
||||
function _fun122623(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16097:6, offset: 0x0256e125, size: 1134 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(15879) /* metro dependency 15879: AuditLogRecord */;
|
||||
const env0_4 = value.getTargetType;
|
||||
const env0_5 = value.getActionType;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const AuditLogTargetTypes = value.AuditLogTargetTypes;
|
||||
const env0_6 = value.AuditLogActionTypes;
|
||||
const env0_7 = value.AuditLogActions;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object4 = {'borderRadius': null, 'width': 13, 'height': 13, 'bottom': 0, 'right': 0};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
const env0_10 = Reflect.apply(createStyles, value, [{actionImageContainer: {'height': 24, 'width': 24},
|
||||
actionImageOverlay: object4, iconComponent: {'width': 22, 'height': 22}, actionImage: {position: 'absolute'}}]);
|
||||
object3 = {};
|
||||
const ALL = AuditLogTargetTypes.ALL;
|
||||
const ListBulletsIcon = (require(15890) /* metro dependency 15890: ListBulletsIcon */).ListBulletsIcon;
|
||||
object3[ALL] = ListBulletsIcon;
|
||||
const CHANNEL = AuditLogTargetTypes.CHANNEL;
|
||||
const ChannelListIcon = (require(15863) /* metro dependency 15863: ChannelListIcon */).ChannelListIcon;
|
||||
object3[CHANNEL] = ChannelListIcon;
|
||||
const CHANNEL_OVERWRITE = AuditLogTargetTypes.CHANNEL_OVERWRITE;
|
||||
object3[CHANNEL_OVERWRITE] = ChannelListIcon;
|
||||
const EMOJI = AuditLogTargetTypes.EMOJI;
|
||||
const ReactionIcon = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon;
|
||||
object3[EMOJI] = ReactionIcon;
|
||||
const GUILD = AuditLogTargetTypes.GUILD;
|
||||
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
|
||||
object3[GUILD] = CircleInformationIcon;
|
||||
const GUILD_PROFILE = AuditLogTargetTypes.GUILD_PROFILE;
|
||||
object3[GUILD_PROFILE] = CircleInformationIcon;
|
||||
const INTEGRATION = AuditLogTargetTypes.INTEGRATION;
|
||||
const PuzzlePieceIcon = (require(13467) /* metro dependency 13467: PuzzlePieceIcon */).PuzzlePieceIcon;
|
||||
object3[INTEGRATION] = PuzzlePieceIcon;
|
||||
const INVITE = AuditLogTargetTypes.INVITE;
|
||||
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
|
||||
object3[INVITE] = LinkIcon;
|
||||
const ROLE = AuditLogTargetTypes.ROLE;
|
||||
const FlagIcon = (require(8665) /* metro dependency 8665: FlagIcon */).FlagIcon;
|
||||
object3[ROLE] = FlagIcon;
|
||||
const USER = AuditLogTargetTypes.USER;
|
||||
const GroupIcon = (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
|
||||
object3[USER] = GroupIcon;
|
||||
const WEBHOOK = AuditLogTargetTypes.WEBHOOK;
|
||||
const WebhookIcon = (require(15117) /* metro dependency 15117: WebhookIcon */).WebhookIcon;
|
||||
object3[WEBHOOK] = WebhookIcon;
|
||||
const STAGE_INSTANCE = AuditLogTargetTypes.STAGE_INSTANCE;
|
||||
const StageIcon = (require(6707) /* metro dependency 6707: StageIcon */).StageIcon;
|
||||
object3[STAGE_INSTANCE] = StageIcon;
|
||||
const GUILD_SCHEDULED_EVENT = AuditLogTargetTypes.GUILD_SCHEDULED_EVENT;
|
||||
const CalendarIcon = (require(9133) /* metro dependency 9133: CalendarIcon */).CalendarIcon;
|
||||
object3[GUILD_SCHEDULED_EVENT] = CalendarIcon;
|
||||
const GUILD_SCHEDULED_EVENT_EXCEPTION = AuditLogTargetTypes.GUILD_SCHEDULED_EVENT_EXCEPTION;
|
||||
object3[GUILD_SCHEDULED_EVENT_EXCEPTION] = CalendarIcon;
|
||||
const THREAD = AuditLogTargetTypes.THREAD;
|
||||
const ThreadIcon = (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
|
||||
object3[THREAD] = ThreadIcon;
|
||||
const STICKER = AuditLogTargetTypes.STICKER;
|
||||
const StickerIcon = (require(10976) /* metro dependency 10976: StickerIcon */).StickerIcon;
|
||||
object3[STICKER] = StickerIcon;
|
||||
const APPLICATION_COMMAND = AuditLogTargetTypes.APPLICATION_COMMAND;
|
||||
const SlashBoxIcon = (require(8770) /* metro dependency 8770: SlashBoxIcon */).SlashBoxIcon;
|
||||
object3[APPLICATION_COMMAND] = SlashBoxIcon;
|
||||
const AUTO_MODERATION_RULE = AuditLogTargetTypes.AUTO_MODERATION_RULE;
|
||||
object3[AUTO_MODERATION_RULE] = WebhookIcon;
|
||||
const GUILD_SOUNDBOARD = AuditLogTargetTypes.GUILD_SOUNDBOARD;
|
||||
const SoundboardIcon = (require(10284) /* metro dependency 10284: SoundboardIcon */).SoundboardIcon;
|
||||
object3[GUILD_SOUNDBOARD] = SoundboardIcon;
|
||||
const ONBOARDING_PROMPT = AuditLogTargetTypes.ONBOARDING_PROMPT;
|
||||
object3[ONBOARDING_PROMPT] = GroupIcon;
|
||||
const GUILD_ONBOARDING = AuditLogTargetTypes.GUILD_ONBOARDING;
|
||||
object3[GUILD_ONBOARDING] = GroupIcon;
|
||||
const HOME_SETTINGS = AuditLogTargetTypes.HOME_SETTINGS;
|
||||
object3[HOME_SETTINGS] = GroupIcon;
|
||||
const GUILD_MEMBER_VERIFICATION = AuditLogTargetTypes.GUILD_MEMBER_VERIFICATION;
|
||||
object3[GUILD_MEMBER_VERIFICATION] = GroupIcon;
|
||||
const VOICE_CHANNEL_STATUS = AuditLogTargetTypes.VOICE_CHANNEL_STATUS;
|
||||
object3[VOICE_CHANNEL_STATUS] = ChannelListIcon;
|
||||
const GUILD_HOME = AuditLogTargetTypes.GUILD_HOME;
|
||||
const HomeIcon = (require(15892) /* metro dependency 15892: HomeIcon */).HomeIcon;
|
||||
object3[GUILD_HOME] = HomeIcon;
|
||||
const UNKNOWN = AuditLogTargetTypes.UNKNOWN;
|
||||
const CircleQuestionIcon = (require(10139) /* metro dependency 10139: CircleQuestionIcon */).CircleQuestionIcon;
|
||||
object3[UNKNOWN] = CircleQuestionIcon;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_moderation/native/AuditLogActionIcon.tsx');
|
||||
exports.default = AuditLogActionIcon;
|
||||
}
|
||||
|
||||
function AuditIcons({action}) { // fn#122624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16097:1583, offset: 0x0256e593, size: 461 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const actionType = getActionType(action);
|
||||
const CREATE = AuditLogActionTypes.CREATE;
|
||||
const r8 = CREATE === actionType ? importDefault(15894) /* metro dependency 15894 */ : AuditLogActionTypes.UPDATE === actionType ? importDefault(15895) /* metro dependency 15895 */ : AuditLogActionTypes.DELETE !== actionType ? null : importDefault(15896) /* metro dependency 15896 */;
|
||||
const targetType = getTargetType(action);
|
||||
const MESSAGE_DELETE = AuditLogActions.MESSAGE_DELETE;
|
||||
const items2 = [((Component) => <Component size="custom" style={styles.iconComponent} />)(action === MESSAGE_DELETE ? (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon : action === AuditLogActions.AUTO_MODERATION_BLOCK_MESSAGE || action === AuditLogActions.AUTO_MODERATION_FLAG_TO_CHANNEL || (action === AuditLogActions.AUTO_MODERATION_USER_COMMUNICATION_DISABLED || action === AuditLogActions.AUTO_MODERATION_QUARANTINE_USER) ? (require(9411) /* metro dependency 9411: RobotIcon */).RobotIcon : env0_11[targetType])];
|
||||
items2[1] = <View style={[styles.actionImageOverlay, styles.actionImage]} />;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
items2[2] = <Icon style={styles.actionImage} source={r8} disableColor />;
|
||||
return (
|
||||
<View style={styles.actionImageContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function AuditLogActionIcon({action}) { // fn#122625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16097:2289, offset: 0x0256e760, size: 73 bytes, params: 2, frame: 17
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.actionImageContainer}>
|
||||
<AuditIcons action={action} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,251 @@
|
||||
/* Metro module 10313; source: modules/guild_moderation/native/BanConfirm.tsx; dependencies: [57, 31, 27, 1867, 1878, 33, 1244, 672, 4501, 697, 5463, 10302, 566, 6593, 10314, 4573, 3995, 7988, 7987, 7681, 4578, 2] */
|
||||
function _fun80030(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10499:6, offset: 0x01e6a8b8, size: 961 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value2.Image;
|
||||
const env0_6 = value2.View;
|
||||
const env0_7 = value2.ScrollView;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value3.jsx;
|
||||
const env0_11 = value3.jsxs;
|
||||
const env0_12 = value3.Fragment;
|
||||
const items2 = [{value: 0, getLabel: function() {
|
||||
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['4obaMS']);
|
||||
}}];
|
||||
let Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
|
||||
let HOUR = Seconds.HOUR;
|
||||
items2[1] = {value: 1 * HOUR, getLabel: function() {
|
||||
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.RKpitY);
|
||||
}};
|
||||
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
|
||||
HOUR = Seconds.HOUR;
|
||||
items2[2] = {value: 6 * HOUR, getLabel: function() {
|
||||
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['8WfJZ8']);
|
||||
}};
|
||||
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
|
||||
HOUR = Seconds.HOUR;
|
||||
items2[3] = {value: 12 * HOUR, getLabel: function() {
|
||||
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.p1up7u);
|
||||
}};
|
||||
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
|
||||
let DAY = Seconds.DAY;
|
||||
items2[4] = {value: 1 * DAY, getLabel: function() {
|
||||
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.XuVkkD);
|
||||
}};
|
||||
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
|
||||
DAY = Seconds.DAY;
|
||||
items2[5] = {value: 3 * DAY, getLabel: function() {
|
||||
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['gMcDS+']);
|
||||
}};
|
||||
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
|
||||
DAY = Seconds.DAY;
|
||||
items2[6] = {value: 7 * DAY, getLabel: function() {
|
||||
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.FA7IUk);
|
||||
}};
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const object4 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.marginTop = PX_16;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingTop = PX_8;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingBottom = PX_16;
|
||||
object4.alignItems = 'center';
|
||||
object2.iconLabelBlock = object4;
|
||||
const PX_96 = (importDefault(697) /* metro dependency 697: native */).space.PX_96;
|
||||
object2.iconStyles = {height: 1.25 * PX_96};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.blurb = {marginVertical: PX_16};
|
||||
const object5 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.marginTop = PX_12;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.marginBottom = PX_4;
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
object5.color = TEXT_FEEDBACK_CRITICAL;
|
||||
object2.redText = object5;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.errorText = {marginBottom: PX_16};
|
||||
const env0_14 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.memo(BanConfirm);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_moderation/native/BanConfirm.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function BanConfirm({guildId, userId, onBan}) { // fn#80038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10499:1374, offset: 0x01e6ae2b, size: 1486 bytes, params: 2, frame: 45
|
||||
var r9;
|
||||
var r0;
|
||||
var space;
|
||||
var jsxRuntimeEnv0_12Binding;
|
||||
var items2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var Qd6w7T;
|
||||
var object;
|
||||
var items3;
|
||||
var property2;
|
||||
var object2;
|
||||
var TableRadioGroup;
|
||||
var string;
|
||||
var TextArea;
|
||||
var object3;
|
||||
var PX_16;
|
||||
var object4;
|
||||
var Button;
|
||||
var object5;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
let binding = env0_4;
|
||||
const value3 = binding.useRef(null);
|
||||
const value4 = binding.useRef(null);
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
||||
(importDefault(10302) /* metro dependency 10302: useSafeAreaAvoidingInputsNative */)({insets: insets,
|
||||
inputs: [{ref: value4, offset: {type: 'toBottom'}}], scrollViewRef: value3});
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const env0_3 = guild;
|
||||
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(userId);
|
||||
});
|
||||
const env0_5 = binding.useRef(0);
|
||||
const env0_6 = binding.useRef('');
|
||||
let [property, env0_7] = env0_3(binding.useState(function() {
|
||||
return {'banning': false, 'banError': false};
|
||||
}), 2);
|
||||
const useCallback = binding.useCallback;
|
||||
if (user != null) {
|
||||
if (guild != null) {
|
||||
var scrollViewBindingProps = {style: styles.container, ref: value3};
|
||||
space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
scrollViewBindingProps.contentContainerStyle = {paddingHorizontal: space.PX_24,
|
||||
paddingBottom: insets.bottom};
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
var viewBindingProps = {style: styles.iconLabelBlock};
|
||||
items2 = [<Image style={styles.iconStyles} source={importDefault(10314) /* metro dependency 10314 */} resizeMode="contain" />];
|
||||
var textProps2 = {style: styles.redText, variant: 'text-md/semibold'};
|
||||
format = intl.format;
|
||||
Qd6w7T = t.Qd6w7T;
|
||||
object = {};
|
||||
object.username = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
items2[1] = <Text {...textProps2}>{Reflect.apply(format, intl, [Qd6w7T, object])}</Text>;
|
||||
items2[2] = <Text variant="text-lg/bold" color="text-feedback-warning">{guild.name}</Text>;
|
||||
items3 = [<View {...viewBindingProps}>{items2}</View>];
|
||||
var textProps3 = {'style': null, 'variant': 'heading-md/normal', 'color': 'text-feedback-warning',
|
||||
style: styles.blurb};
|
||||
format = intl.format;
|
||||
property2 = t['8jV9fx'];
|
||||
object2 = {};
|
||||
object2.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
items3[1] = <Text {...textProps3}>{Reflect.apply(format, intl, [property2, object2])}</Text>;
|
||||
TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
string = intl.string;
|
||||
binding = env0_13;
|
||||
items3[2] = <TableRadioGroup title={Reflect.apply(string, intl,
|
||||
[t['8l3W0y']])} defaultValue={binding[0].value} onChange={onChange_80044} hasIcons={false}>{binding.map(_fun80045)}</TableRadioGroup>;
|
||||
TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
|
||||
object3 = {ref: value4};
|
||||
space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
PX_16 = space.PX_16;
|
||||
object3.containerStyle = {marginVertical: PX_16};
|
||||
object3.label = intl.string(t.w4Ivys);
|
||||
object3.maxLength = 512;
|
||||
object3.onChange = onChange_80046;
|
||||
items3[3] = <TextArea {...object3} />;
|
||||
object4 = {};
|
||||
space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
PX_16 = space.PX_16;
|
||||
object4.style = {marginBottom: PX_16};
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
items3[4] = <View {...object4}><Button variant="destructive" text={Reflect.apply(string, intl,
|
||||
[t['5MBJ5M']])} onPress={Reflect.apply(useCallback, binding, [_fun80042, [guild, user,
|
||||
onBan]])} disabled={property.banning} /></View>;
|
||||
if (property.banError) {
|
||||
var textProps = {'style': null, 'variant': 'text-md/semibold', 'color': 'input-text-error-default',
|
||||
style: styles.errorText};
|
||||
format = intl.format;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['/K6eer'];
|
||||
object5 = {};
|
||||
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
object5.user = value.getName(user);
|
||||
value = <Text {...textProps}>{Reflect.apply(format, intl, [property, object5])}</Text>;
|
||||
r9 = value;
|
||||
} else {
|
||||
r9 = null;
|
||||
}
|
||||
items3[5] = r9;
|
||||
value = <ScrollView {...scrollViewBindingProps}><>{items3}</></ScrollView>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun80042() { // fn#80042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10499:1824, offset: 0x01e6b409, size: 178 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var binding;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
var banUser;
|
||||
var id;
|
||||
var id2;
|
||||
var current;
|
||||
var value5;
|
||||
var value6;
|
||||
if (guild != null && user != null) {
|
||||
binding = env0_7;
|
||||
binding({'banning': true, 'banError': false});
|
||||
value4 = environment.__proto__;
|
||||
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
banUser = defaultImport.banUser;
|
||||
id = guild.id;
|
||||
id2 = user.id;
|
||||
binding = env1_13;
|
||||
current = env0_5.current;
|
||||
value5 = binding[current].value;
|
||||
current = env0_6.current;
|
||||
value6 = Reflect.apply(banUser, defaultImport, [id, id2, value5, current]);
|
||||
value6.then(onBan).catch(_fun80043);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80045(a0, a1) { // fn#80045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10499:2816, offset: 0x01e6b4d9, size: 70 bytes, params: 3, frame: 17
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
return (
|
||||
<TableRadioRow
|
||||
value={a1}
|
||||
label={a0.getLabel()}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function BanConfirmOnChange_80046(a0) { // fn#80046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10499:3031, owner: BanConfirm.onChange, offset: 0x01e6b51f, size: 20 bytes, params: 2, frame: 2
|
||||
env0_6.current = a0;
|
||||
}
|
||||
|
||||
function _fun80043() { // fn#80043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10499:1949, offset: 0x01e6b4bb, size: 30 bytes, params: 1, frame: 11
|
||||
env1_7({'banning': false, 'banError': true});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 10324; source: modules/guild_moderation/native/BanConfirmModal.tsx; dependencies: [31, 33, 9882, 9883, 1244, 10313, 2] */
|
||||
function _fun80064(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10510:6, offset: 0x01e6ba99, size: 138 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_moderation/native/BanConfirmModal.tsx');
|
||||
exports.default = BanConfirmModal;
|
||||
}
|
||||
|
||||
function BanConfirmModal({cancelButtonCallback, guildId, userId}) { // fn#80065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10510:213, offset: 0x01e6bb23, size: 180 bytes, params: 2, frame: 19
|
||||
const env0_2 = (importDefault(9882) /* metro dependency 9882: useNavigatorBackHandlerNative */)({onBeforeGoBack: cancelButtonCallback}).onGoBack;
|
||||
const ModalStackNavigator = importDefault(9883) /* metro dependency 9883: ModalStackNavigator */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const R3QeLQ = (require(1244) /* metro dependency 1244: indexNative */).t.R3QeLQ;
|
||||
return (
|
||||
<ModalStackNavigator
|
||||
screenKey="ban"
|
||||
title={Reflect.apply(string, intl, [R3QeLQ])}
|
||||
render={render_80066}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function BanConfirmModalRender() { // fn#80066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10510:411, owner: BanConfirmModal.render, offset: 0x01e6bbd7, size: 67 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component onBan={onGoBack} guildId={guildId} userId={userId} />)(importDefault(10313) /* metro dependency 10313: BanConfirm */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
/* Metro module 10311; source: modules/guild_moderation/native/KickConfirm.tsx; dependencies: [57, 31, 27, 1867, 1878, 33, 4501, 697, 5463, 10302, 566, 6593, 10312, 4573, 1244, 3995, 7681, 4578, 2] */
|
||||
function _fun80021(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10497:6, offset: 0x01e69fa4, size: 640 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value2.Image;
|
||||
const env0_6 = value2.View;
|
||||
const env0_7 = value2.ScrollView;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value3.jsx;
|
||||
const env0_11 = value3.jsxs;
|
||||
const env0_12 = value3.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const object4 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.marginTop = PX_16;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingTop = PX_8;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingBottom = PX_16;
|
||||
object4.alignItems = 'center';
|
||||
object2.iconLabelBlock = object4;
|
||||
const PX_96 = (importDefault(697) /* metro dependency 697: native */).space.PX_96;
|
||||
object2.iconStyles = {height: 1.25 * PX_96};
|
||||
const object6 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.marginTop = PX_12;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object6.marginBottom = PX_4;
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
object6.color = TEXT_FEEDBACK_CRITICAL;
|
||||
object2.redText = object6;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.blurb = {marginVertical: PX_16};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.errorText = {marginBottom: PX_16};
|
||||
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.memo(KickConfirm);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_moderation/native/KickConfirm.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function KickConfirm({guildId, userId, onKick}) { // fn#80022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10497:788, offset: 0x01e6a224, size: 1332 bytes, params: 2, frame: 44
|
||||
var r9;
|
||||
var r0;
|
||||
var space;
|
||||
var jsxRuntimeEnv0_12Binding;
|
||||
var items2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var property2;
|
||||
var object;
|
||||
var items3;
|
||||
var format;
|
||||
var property3;
|
||||
var object2;
|
||||
var TextArea;
|
||||
var object3;
|
||||
var PX_16;
|
||||
var UktD5J;
|
||||
var object4;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const value3 = binding.useRef(null);
|
||||
const value4 = binding.useRef(null);
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
||||
(importDefault(10302) /* metro dependency 10302: useSafeAreaAvoidingInputsNative */)({insets: insets,
|
||||
inputs: [{ref: value4, offset: {type: 'toBottom'}}], scrollViewRef: value3});
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const env0_3 = guild;
|
||||
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(userId);
|
||||
});
|
||||
const env0_5 = binding.useRef('');
|
||||
const [property, env0_6] = env0_3(binding.useState(function() {
|
||||
return {'kicking': false, 'kickError': false};
|
||||
}), 2);
|
||||
const useCallback = binding.useCallback;
|
||||
if (user != null) {
|
||||
if (guild != null) {
|
||||
var scrollViewBindingProps = {style: styles.container, ref: value3};
|
||||
space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
scrollViewBindingProps.contentContainerStyle = {paddingHorizontal: space.PX_24,
|
||||
paddingBottom: insets.bottom};
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
var viewBindingProps = {style: styles.iconLabelBlock};
|
||||
items2 = [<Image style={styles.iconStyles} source={importDefault(10312) /* metro dependency 10312 */} resizeMode="contain" />];
|
||||
var textProps2 = {style: styles.redText, variant: 'text-md/semibold'};
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property2 = t['1Ie87p'];
|
||||
object = {};
|
||||
object.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
items2[1] = <Text {...textProps2}>{Reflect.apply(formatToPlainString, intl, [property2, object])}</Text>;
|
||||
items2[2] = <Text variant="text-lg/bold" color="text-feedback-warning">{guild.name}</Text>;
|
||||
items3 = [<View {...viewBindingProps}>{items2}</View>];
|
||||
var textProps3 = {'style': null, 'variant': 'heading-md/normal', 'color': 'text-feedback-warning',
|
||||
style: styles.blurb};
|
||||
format = intl.format;
|
||||
property3 = t['/yH0UT'];
|
||||
object2 = {};
|
||||
object2.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
items3[1] = <Text {...textProps3}>{Reflect.apply(format, intl, [property3, object2])}</Text>;
|
||||
TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
|
||||
object3 = {ref: value4};
|
||||
space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
PX_16 = space.PX_16;
|
||||
object3.containerStyle = {marginBottom: PX_16};
|
||||
object3.label = intl.string(t['+2QEPt']);
|
||||
object3.maxLength = 512;
|
||||
object3.onChange = onChange_80028;
|
||||
items3[2] = <TextArea {...object3} />;
|
||||
space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
PX_16 = space.PX_16;
|
||||
items3[3] = <View style={{marginBottom: PX_16}}>{((Button) => <Button variant="destructive" text={intl.string(t['3glT6Z'])} onPress={Reflect.apply(useCallback,
|
||||
|
||||
|
||||
binding, [_fun80026, [guild, onKick,
|
||||
user]])} disabled={property.kicking} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button)}</View>;
|
||||
if (property.kickError) {
|
||||
var textProps = {'style': null, 'variant': 'text-md/semibold', 'color': 'input-text-error-default',
|
||||
style: styles.errorText};
|
||||
format = intl.format;
|
||||
UktD5J = (require(1244) /* metro dependency 1244: indexNative */).t.UktD5J;
|
||||
object4 = {};
|
||||
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
object4.user = value.getName(user);
|
||||
value = <Text {...textProps}>{Reflect.apply(format, intl, [UktD5J, object4])}</Text>;
|
||||
r9 = value;
|
||||
} else {
|
||||
r9 = null;
|
||||
}
|
||||
items3[4] = r9;
|
||||
value = <ScrollView {...scrollViewBindingProps}><>{items3}</></ScrollView>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun80026() { // fn#80026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10497:1223, offset: 0x01e6a79e, size: 182 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
var binding;
|
||||
var value4;
|
||||
var value5;
|
||||
var defaultImport;
|
||||
var value6;
|
||||
if (guild != null && user != null) {
|
||||
binding = env0_6;
|
||||
value4 = undefined;
|
||||
binding({'kicking': true, 'kickError': false});
|
||||
value5 = environment.__proto__;
|
||||
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
value6 = defaultImport.kickUser(guild == null ? value4 : guild.id, user == null ? value4 : user.id,
|
||||
env0_5.current);
|
||||
value6.then(onKick).catch(_fun80027);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80027() { // fn#80027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10497:1360, offset: 0x01e6a854, size: 30 bytes, params: 1, frame: 11
|
||||
env1_6({'kicking': false, 'kickError': true});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 10322; source: modules/guild_moderation/native/KickConfirmModal.tsx; dependencies: [31, 33, 9882, 9883, 1244, 10311, 2] */
|
||||
function _fun80059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10508:6, offset: 0x01e6b8b1, size: 138 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_moderation/native/KickConfirmModal.tsx');
|
||||
exports.default = KickConfirmModal;
|
||||
}
|
||||
|
||||
function KickConfirmModal({cancelButtonCallback, guildId, userId}) { // fn#80060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10508:214, offset: 0x01e6b93b, size: 180 bytes, params: 2, frame: 19
|
||||
const env0_2 = (importDefault(9882) /* metro dependency 9882: useNavigatorBackHandlerNative */)({onBeforeGoBack: cancelButtonCallback}).onGoBack;
|
||||
const ModalStackNavigator = importDefault(9883) /* metro dependency 9883: ModalStackNavigator */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const R3QeLQ = (require(1244) /* metro dependency 1244: indexNative */).t.R3QeLQ;
|
||||
return (
|
||||
<ModalStackNavigator
|
||||
screenKey="kick"
|
||||
title={Reflect.apply(string, intl, [R3QeLQ])}
|
||||
render={render_80061}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function KickConfirmModalRender() { // fn#80061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10508:414, owner: KickConfirmModal.render, offset: 0x01e6b9ef, size: 67 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component onKick={onGoBack} guildId={guildId} userId={userId} />)(importDefault(10311) /* metro dependency 10311: KickConfirm */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 10323; source: modules/guild_moderation/native/showBanConfirmModal.tsx; dependencies: [4080, 5080, 10324, 1962, 2] */
|
||||
function _fun80062(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10509:6, offset: 0x01e6ba32, 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_moderation/native/showBanConfirmModal.tsx');
|
||||
exports.default = showBanConfirmModal;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 10321; source: modules/guild_moderation/native/showKickConfirmModal.tsx; dependencies: [4080, 5080, 10322, 1962, 2] */
|
||||
function _fun80057(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10507:6, offset: 0x01e6b7e9, 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_moderation/native/showKickConfirmModal.tsx');
|
||||
exports.default = showKickConfirmModal;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user