Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,192 @@
|
||||
/* Metro module 11458; source: modules/guild_automod/native/AutomodSubmitFeedbackModal.tsx; dependencies: [57, 31, 27, 661, 33, 4501, 697, 6618, 5277, 1244, 8160, 5061, 1585, 4573, 1305, 7972, 4578, 4863, 11459, 5060, 3856, 5280, 2] */
|
||||
function _fun87705(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:6, offset: 0x01fc8897, size: 575 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 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = value.AnalyticEvents;
|
||||
const Fonts = value.Fonts;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {'flex': 1, 'paddingHorizontal': 16, 'paddingVertical': 0, 'backgroundColor': null,
|
||||
'flexDirection': 'column', 'height': '100%', 'paddingTop': 8, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.header = {'flexDirection': 'row', 'justifyContent': 'flex-end', 'paddingVertical': 8,
|
||||
backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const object3 = {'fontSize': 24, 'fontFamily': null, 'textAlign': 'center', 'color': null, 'lineHeight': 30};
|
||||
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
|
||||
object3.fontFamily = PRIMARY_BOLD;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object3.color = MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.headerTitle = object3;
|
||||
object2.headerSubtitle = {'textAlign': 'center', 'marginTop': 8};
|
||||
object2.closeButtonContainer = {marginVertical: 14};
|
||||
const object5 = {marginTop: 24};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object2.formBody = object5;
|
||||
object2.formRow = {paddingVertical: 2};
|
||||
object2.radioIndicator = {marginRight: 0};
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.submitButtonContainer = {'position': 'absolute', 'bottom': 0, 'left': 0, 'right': 0,
|
||||
'paddingHorizontal': 16, 'paddingVertical': 16, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_automod/native/AutomodSubmitFeedbackModal.tsx');
|
||||
exports.default = AutomodSubmitFeedbackModal;
|
||||
}
|
||||
|
||||
function Navbar({onClose}) { // fn#87706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:1076, offset: 0x01fc8ad6, size: 216 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<SafeAreaPaddingView top style={styles.header}>
|
||||
<View style={styles.closeButtonContainer}>
|
||||
<HeaderActionButton
|
||||
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
||||
onPress={onClose}
|
||||
source={importDefault(8160) /* metro dependency 8160 */}
|
||||
/>
|
||||
</View>
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function SubmitFeedbackScreen({feedback, onChange, onSubmit}) { // fn#87707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:1346, offset: 0x01fc8bae, size: 556 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const value2 = (require(5061) /* metro dependency 5061: AutomodFeedback */).generateFeedbackOptions();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const items3 = [<LegacyText style={styles.headerTitle}>{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['7bdzNo']])}</LegacyText>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
string = intl.string;
|
||||
const Lbpk6m = (require(1244) /* metro dependency 1244: indexNative */).t.Lbpk6m;
|
||||
items3[1] = <Text style={styles.headerSubtitle} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
|
||||
intl, [Lbpk6m])}</Text>;
|
||||
items3[2] = <View style={styles.formBody}>{value2.map(_fun87709)}</View>;
|
||||
const items2 = [styles.submitButtonContainer];
|
||||
items2[1] = {paddingBottom: bottom + 16};
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const Z6DZZ6 = (require(1244) /* metro dependency 1244: indexNative */).t.Z6DZZ6;
|
||||
items3[3] = <View style={items2}><Button size="md" text={Reflect.apply(string, intl,
|
||||
[Z6DZZ6])} onPress={onSubmit} /></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function AutomodSubmitFeedbackModal({onCloseModal, automodDecision}) { // fn#87711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:2385, offset: 0x01fc8f29, size: 224 bytes, params: 2, frame: 21
|
||||
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
|
||||
const binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const Feedback = (require(5061) /* metro dependency 5061: AutomodFeedback */).Feedback;
|
||||
const BUG = Feedback.BUG;
|
||||
const value3 = env0_3(Reflect.apply(useState, binding, [BUG]), 2);
|
||||
const property = value3[0];
|
||||
var env0_3 = value3[1];
|
||||
const value4 = env0_4.useMemo(_fun87712, [property, onCloseModal, automodDecision]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
return (
|
||||
<Navigator
|
||||
screens={value4}
|
||||
initialRouteName="SUBMIT_FEEDBACK"
|
||||
headerStatusBarHeight={top}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function SubmitFeedbackScreenLabel(a0) { // fn#87708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:1485, owner: SubmitFeedbackScreen.label, offset: 0x01fc8dda, size: 82 bytes, params: 2, frame: 14
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
style={styles.formRow}
|
||||
variant="text-md/semibold"
|
||||
color="interactive-text-active"
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87709({name, value}, a1) { // fn#87709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:1901, offset: 0x01fc8e2c, size: 253 bytes, params: 3, frame: 26
|
||||
const Fragment = env1_4.Fragment;
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const RadioIndicator = (require(1305) /* metro dependency 1305: native */).RadioIndicator;
|
||||
return (
|
||||
<Fragment key={value}>
|
||||
<FormRow
|
||||
onPress={function() {
|
||||
return onChange(value);
|
||||
}}
|
||||
trailing={<RadioIndicator active={feedback === value} style={styles.radioIndicator} />}
|
||||
label={SubmitFeedbackScreenLabel(name)}
|
||||
/>
|
||||
{a1 < env0_3.length - 1 && ((FormDivider) => <FormDivider />)((require(7972) /* metro dependency 7972: native */).FormDivider)}
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87712() { // fn#87712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:2550, offset: 0x01fc9009, size: 65 bytes, params: 1, frame: 12
|
||||
return (({onCloseModal, feedback, onChange, onSubmit}) => ({['SUBMIT_FEEDBACK']: {'ignoreKeyboard': true,
|
||||
'title': '', customNavbar: _fun87714, headerLeft: _fun87715, render: _fun87716}}))({onCloseModal: onCloseModal,
|
||||
feedback: env0_2, onChange: onChange_87717, onSubmit: onSubmit_87718});
|
||||
}
|
||||
|
||||
function getScreens_87713({onCloseModal, feedback, onChange, onSubmit}) { // fn#87713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:2554, offset: 0x01fc904a, size: 108 bytes, params: 2, frame: 4
|
||||
return {['SUBMIT_FEEDBACK']: {'ignoreKeyboard': true, 'title': '', customNavbar: customNavbar_87714,
|
||||
headerLeft: function() {
|
||||
return null;
|
||||
}, render: render_87716}};
|
||||
}
|
||||
|
||||
function onSubmit_87718() { // fn#87718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:2851, offset: 0x01fc9121, size: 187 bytes, params: 1, frame: 20
|
||||
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
|
||||
const GUILD_AUTOMOD_FEEDBACK = AnalyticEvents.GUILD_AUTOMOD_FEEDBACK;
|
||||
const automodDecisionBinding = automodDecision;
|
||||
let messageId = automodDecisionBinding.messageId;
|
||||
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [GUILD_AUTOMOD_FEEDBACK, {feedback_type: env1_2,
|
||||
message_id: messageId, content: automodDecisionBinding.messageContent,
|
||||
decision_id: automodDecisionBinding.decisionId}]);
|
||||
const guildAutomodActionCreatorsModule = require(11459) /* metro dependency 11459: GuildAutomodActionCreators */;
|
||||
const executeAlertAction = guildAutomodActionCreatorsModule.executeAlertAction;
|
||||
messageId = automodDecisionBinding.messageId;
|
||||
const channel = automodDecisionBinding.channel;
|
||||
const AutomodAlertActionType = (require(5060) /* metro dependency 5060: AutomodAlert */).AutomodAlertActionType;
|
||||
const SUBMIT_FEEDBACK = AutomodAlertActionType.SUBMIT_FEEDBACK;
|
||||
Reflect.apply(executeAlertAction, guildAutomodActionCreatorsModule, [messageId, channel, SUBMIT_FEEDBACK]);
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentFeedbackSent();
|
||||
onCloseModal();
|
||||
}
|
||||
|
||||
function getScreens_87713CustomNavbar() { // fn#87714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:2677, owner: getScreens_87713.customNavbar, offset: 0x01fc90b6, size: 35 bytes, params: 1, frame: 13
|
||||
return <Navbar onClose={onCloseModal} />;
|
||||
}
|
||||
|
||||
function getScreens_87713Render() { // fn#87716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11644:2730, owner: getScreens_87713.render, offset: 0x01fc90d9, size: 53 bytes, params: 1, frame: 14
|
||||
return (
|
||||
<SubmitFeedbackScreen
|
||||
feedback={feedback}
|
||||
onChange={onChange}
|
||||
onSubmit={onSubmit}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
/* Metro module 11461; source: modules/guild_automod/native/AutomodUserProfileQuarantineAlert.tsx; dependencies: [57, 29, 31, 27, 1226, 1945, 1867, 11454, 661, 3772, 33, 4501, 697, 4596, 1244, 1305, 11462, 4573, 11463, 7007, 632, 3790, 4594, 683, 2] */
|
||||
function _fun87756(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11647:6, offset: 0x01fc9e77, size: 539 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['title', 'description', 'buttonCta', 'onConfirm'];
|
||||
const env0_4 = ['guildId', 'guildName', 'automodReason'];
|
||||
const env0_5 = ['guildName'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_6 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_7 = importDefault(29) /* metro dependency 29 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_8 = (require(27) /* metro dependency 27 */).View;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_12 = (require(11454) /* metro dependency 11454: Constants */).QUARANTINE_USER_ALERT_KEY;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_13 = value.AnalyticEvents;
|
||||
const env0_14 = value.UserSettingsSections;
|
||||
const env0_15 = (require(3772) /* metro dependency 3772: GuildMemberConstants */).GuildMemberFlags;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_16 = value.jsx;
|
||||
const env0_17 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
const env0_18 = Reflect.apply(createStyles, value, [{wrapper: {padding: 16}, body: {'flexDirection': 'column',
|
||||
'alignItems': 'center'}, mainIcon: {'width': 48, 'height': 48, 'tintColor': null, 'marginBottom': 16,
|
||||
tintColor: TEXT_FEEDBACK_CRITICAL}, title: {'marginBottom': 16, 'textAlign': 'center'},
|
||||
description: {textAlign: 'center'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_automod/native/AutomodUserProfileQuarantineAlert.tsx');
|
||||
exports.default = AutomodUserProfileQuarantineAlert;
|
||||
}
|
||||
|
||||
function ChatBlockedAlert(a0) { // fn#87757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11647:697, offset: 0x01fca092, size: 477 bytes, params: 2, frame: 28
|
||||
const title = a0.title;
|
||||
const description = a0.description;
|
||||
const buttonCta = a0.buttonCta;
|
||||
const onConfirm = a0.onConfirm;
|
||||
const binding = env0_7;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(a0, env0_3);
|
||||
const styles = useStyles();
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const defaultImportProps = {...value3};
|
||||
defaultImportProps['style'] = styles.wrapper;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
defaultImportProps['cancelText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
|
||||
defaultImportProps['onCancel'] = value3 == null ? value2 : value3.onClose;
|
||||
defaultImportProps['confirmText'] = buttonCta;
|
||||
defaultImportProps['onConfirm'] = onConfirm;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const iconProps = {source: importDefault(11462) /* metro dependency 11462 */};
|
||||
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Sizes = Icon2.Sizes;
|
||||
const CUSTOM = Sizes.CUSTOM;
|
||||
iconProps.size = CUSTOM;
|
||||
iconProps.style = styles.mainIcon;
|
||||
const items2 = [<Icon {...iconProps} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="heading-md/medium" color="mobile-text-heading-primary">{title}</Text>;
|
||||
items2[2] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{description}</Text>;
|
||||
return (
|
||||
<Alert {...defaultImportProps}>
|
||||
<View style={styles.body}>
|
||||
{items2}
|
||||
</View>
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
function PerServerProfileAlert(a0) { // fn#87758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11647:1310, offset: 0x01fca26f, size: 506 bytes, params: 2, frame: 22
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const guildId = a0.guildId;
|
||||
const guildName = a0.guildName;
|
||||
const automodReason = a0.automodReason;
|
||||
const value2 = env0_7(a0, env0_4);
|
||||
const AUTOMOD_QUARANTINED_USERNAME_OR_GUILD_NICKNAME = GuildMemberFlags.AUTOMOD_QUARANTINED_USERNAME_OR_GUILD_NICKNAME;
|
||||
let r7 = automodReason === AUTOMOD_QUARANTINED_USERNAME_OR_GUILD_NICKNAME ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.SpDXI7) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TBeZmG);
|
||||
const automodQuarantineUtilsModule = require(11463) /* metro dependency 11463: AutomodQuarantineUtils */;
|
||||
const useOpenFixQuarantinedProfileModal = automodQuarantineUtilsModule.useOpenFixQuarantinedProfileModal;
|
||||
const value6 = env0_6(Reflect.apply(useOpenFixQuarantinedProfileModal, automodQuarantineUtilsModule,
|
||||
[{guildId: guildId}]), 2);
|
||||
const env0_0 = value6[0];
|
||||
const property = value6[1];
|
||||
r7 = !property ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.FFj5Dt) : r7;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const r6 = property ? Reflect.apply(string, intl, [t['/PGQf0']]) : Reflect.apply(string, intl, [t.WikgZ1]);
|
||||
const chatBlockedAlertBindingProps = {...value2};
|
||||
chatBlockedAlertBindingProps['title'] = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.kcYdTq,
|
||||
{guildName: guildName});
|
||||
chatBlockedAlertBindingProps['description'] = r7;
|
||||
chatBlockedAlertBindingProps['buttonCta'] = r6;
|
||||
chatBlockedAlertBindingProps['onConfirm'] = PerServerProfileAlertOnConfirm;
|
||||
return <ChatBlockedAlert {...chatBlockedAlertBindingProps} />;
|
||||
}
|
||||
|
||||
function ServerTagAlert(a0) { // fn#87760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11647:1895, offset: 0x01fca469, size: 255 bytes, params: 2, frame: 21
|
||||
const guildName = a0.guildName;
|
||||
const chatBlockedAlertBindingProps = {...env0_7(a0, env0_5)};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
chatBlockedAlertBindingProps['title'] = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.c8TwbL,
|
||||
{guildName: guildName});
|
||||
let string = intl.string;
|
||||
const EJJLHp = (require(1244) /* metro dependency 1244: indexNative */).t.EJJLHp;
|
||||
chatBlockedAlertBindingProps['description'] = Reflect.apply(string, intl, [EJJLHp]);
|
||||
string = intl.string;
|
||||
const Viksoo = (require(1244) /* metro dependency 1244: indexNative */).t.Viksoo;
|
||||
chatBlockedAlertBindingProps['buttonCta'] = Reflect.apply(string, intl, [Viksoo]);
|
||||
chatBlockedAlertBindingProps['onConfirm'] = function() {
|
||||
require(dependencyMap[19]).openUserSettings({screen: UserSettingsSections.PROFILE_CUSTOMIZATION});
|
||||
};
|
||||
return <ChatBlockedAlert {...chatBlockedAlertBindingProps} />;
|
||||
}
|
||||
|
||||
function AutomodUserProfileQuarantineAlert(a0) { // fn#87762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11647:2338, offset: 0x01fca59f, size: 390 bytes, params: 2, frame: 22
|
||||
const guildId = a0.guildId;
|
||||
const value2 = undefined;
|
||||
const id = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([AuthenticationStore],
|
||||
function() {
|
||||
return AuthenticationStore.getId();
|
||||
});
|
||||
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildStore],
|
||||
function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
}, [guildId]);
|
||||
const r6 = (value3 == null ? value2 : value3.name) ?? '';
|
||||
const value5 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildMemberStore],
|
||||
_fun87765, [guildId, id]);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
|
||||
var defaultImport = importDefault(dependencyMap[23]);
|
||||
var OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
defaultImport.track(OPEN_MODAL, {type: QUARANTINE_USER_ALERT_KEY, guild_id: guildId, other_user_id: id});
|
||||
});
|
||||
const AUTOMOD_QUARANTINED_BIO = GuildMemberFlags.AUTOMOD_QUARANTINED_BIO;
|
||||
return value5 === AUTOMOD_QUARANTINED_BIO || value5 === GuildMemberFlags.AUTOMOD_QUARANTINED_USERNAME_OR_GUILD_NICKNAME ? <PerServerProfileAlert automodReason={value5} guildName={r6} {...a0} /> : value5 === GuildMemberFlags.AUTOMOD_QUARANTINED_SERVER_TAG ? <ServerTagAlert guildName={r6} {...a0} /> : <PerServerProfileAlert automodReason={value5} guildName={r6} {...a0} />;
|
||||
}
|
||||
|
||||
function _fun87765() { // fn#87765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11647:2586, offset: 0x01fca725, size: 97 bytes, params: 1, frame: 20
|
||||
if (guildId == null) {
|
||||
return null;
|
||||
}
|
||||
const automodPermissionUtilsModule = require(3790) /* metro dependency 3790: AutomodPermissionUtils */;
|
||||
const getAutomodQuarantinedGuildMemberFlags = automodPermissionUtilsModule.getAutomodQuarantinedGuildMemberFlags;
|
||||
const getMember = GuildMemberStore.getMember;
|
||||
return automodPermissionUtilsModule.getAutomodReason(Reflect.apply(getAutomodQuarantinedGuildMemberFlags,
|
||||
automodPermissionUtilsModule, [Reflect.apply(getMember, GuildMemberStore, [guildId, id])]));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
/* Metro module 11450; source: modules/guild_automod/native/ModerateUserActionSheet.tsx; dependencies: [31, 1945, 1867, 3784, 1878, 661, 33, 4501, 566, 10289, 8037, 4617, 4080, 6807, 1244, 7002, 5080, 10296, 1962, 11449, 3773, 10317, 10299, 4054, 10321, 9409, 10323, 6275, 6758, 11451, 6231, 2] */
|
||||
function _fun87660(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:6, offset: 0x01fc6bfc, size: 310 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
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 env0_8 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value2.jsx;
|
||||
const env0_10 = value2.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'padding': 16,
|
||||
'gap': 16}, memberRoles: {justifyContent: 'flex-start'}});
|
||||
value = value.memo(_fun87661);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_automod/native/ModerateUserActionSheet.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun87661({user, guild}) { // fn#87661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:308, offset: 0x01fc6d32, size: 1415 bytes, params: 2, frame: 33
|
||||
var r8;
|
||||
var r7;
|
||||
var push;
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
var t;
|
||||
var isMemberCommunicationDisabled2;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], function() {
|
||||
return GuildMemberStore.getMember(guild?.id, user.id);
|
||||
}, [user, guild]);
|
||||
const r12 = value2 != null ? value2.roles : [];
|
||||
const {canKickUser, canBanUser, canChangeNick, canManageRoles,
|
||||
canModerateMembers} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PermissionStore,
|
||||
UserStore, GuildStore], _fun87663, [user, guild]);
|
||||
if (guild == null) {
|
||||
return null;
|
||||
}
|
||||
if (value2 == null) {
|
||||
return null;
|
||||
}
|
||||
const name = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(guild.id, undefined, user);
|
||||
const env0_3 = (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet;
|
||||
items2 = [];
|
||||
const value5 = value2 != null;
|
||||
if (value5) {
|
||||
r8 = canKickUser || canBanUser;
|
||||
r8 = !r8 ? canChangeNick : r8;
|
||||
r8 = !r8 ? canManageRoles : r8;
|
||||
r7 = r8;
|
||||
} else {
|
||||
r7 = value5;
|
||||
}
|
||||
r7 = r7 && !user.isNonUserBot();
|
||||
if (r7) {
|
||||
items2.push(<ActionSheetRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.HxrBOZ)} icon={((Icon) => <Icon IconComponent={(require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon} />)((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} onPress={onPress_87664} />);
|
||||
}
|
||||
if (value2 != null) {
|
||||
if (canModerateMembers) {
|
||||
isMemberCommunicationDisabled2 = (require(3773) /* metro dependency 3773: CommunicationDisabledUtils */).isMemberCommunicationDisabled(value2);
|
||||
push = items2.push;
|
||||
string = intl.string;
|
||||
t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
Reflect.apply(push, items2, [<ActionSheetRow label={isMemberCommunicationDisabled2 ? Reflect.apply(string,
|
||||
intl,
|
||||
[t.qXtNtS]) : Reflect.apply(string, intl,
|
||||
[t.xpsADY])} icon={((Icon) => <Icon IconComponent={(require(10317) /* metro dependency 10317: ClockWarningIcon */).ClockWarningIcon} />)((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} onPress={onPress_87667} />]);
|
||||
}
|
||||
}
|
||||
if (value2 != null && canKickUser) {
|
||||
items2.push(<ActionSheetRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3glT6Z'])} icon={((Icon) => <Icon IconComponent={(require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon} />)((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} variant="danger" onPress={onPress_87668} />);
|
||||
}
|
||||
if (value2 != null && canBanUser) {
|
||||
items2.push(<ActionSheetRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5MBJ5M'])} icon={((Icon) => <Icon IconComponent={(require(9409) /* metro dependency 9409: HammerIcon */).HammerIcon} />)((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} variant="danger" onPress={onPress_87670} />);
|
||||
}
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object = {};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
object.header = <BottomSheetTitleHeader title={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['792QKT'],
|
||||
{nick: name})} />;
|
||||
object.bodyStyles = styles.container;
|
||||
let value = importDefault(11451) /* metro dependency 11451: MemberRolesList */;
|
||||
value = ((Component) => <Component style={[styles.memberRoles]} guild={guild} userRoles={r12} />)(value);
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<BottomSheet {...object}>
|
||||
{value}
|
||||
<TableRowGroup hasIcons>
|
||||
{items2.map(_fun87672)}
|
||||
</TableRowGroup>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87663() { // fn#87663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:494, offset: 0x01fc72f2, size: 334 bytes, params: 1, frame: 19
|
||||
var r1;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var value5;
|
||||
var moduleValue2;
|
||||
var value12;
|
||||
var moduleValue3;
|
||||
const object2 = {};
|
||||
const value2 = guild != null;
|
||||
if (value2) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(10289) /* metro dependency 10289: GuildMemberUtils */;
|
||||
r1 = moduleValue.canKickMember(user, guild);
|
||||
} else {
|
||||
r1 = value2;
|
||||
}
|
||||
object2.canKickUser = r1;
|
||||
const value4 = guild != null;
|
||||
if (value4) {
|
||||
value5 = environment.__proto__;
|
||||
moduleValue2 = require(10289) /* metro dependency 10289: GuildMemberUtils */;
|
||||
r1 = moduleValue2.canBanMember(user, guild);
|
||||
} else {
|
||||
r1 = value4;
|
||||
}
|
||||
object2.canBanUser = r1;
|
||||
object2.canChangeNick = guild != null && PermissionStore.canManageUser(Permissions.MANAGE_NICKNAMES, user, guild);
|
||||
object2.canManageRoles = guild != null && PermissionStore.can(Permissions.MANAGE_ROLES, guild);
|
||||
const value11 = guild != null;
|
||||
if (value11) {
|
||||
value12 = environment.__proto__;
|
||||
moduleValue3 = require(8037) /* metro dependency 8037: useCanToggleCommunicationDisableOnUser */;
|
||||
r1 = moduleValue3.canToggleCommunicationDisableOnUser(guild.id, user.id, [UserStore, GuildStore,
|
||||
PermissionStore]);
|
||||
} else {
|
||||
r1 = value11;
|
||||
}
|
||||
object2.canModerateMembers = r1;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function onPress_87664() { // fn#87664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:1210, offset: 0x01fc7440, size: 138 bytes, params: 1, frame: 17
|
||||
hideActionSheet();
|
||||
const defaultImport = importDefault(dependencyMap[16]);
|
||||
defaultImport.pushLazy(require(dependencyMap[18])(dependencyMap[17], dependencyMap.paths), {userId: user.id,
|
||||
guildId: guild.id, onClose: onClose_87665, onRemove: onRemove});
|
||||
}
|
||||
|
||||
function onPress_87667() { // fn#87667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:1652, offset: 0x01fc753a, size: 117 bytes, params: 1, frame: 15
|
||||
var openDisableCommunication;
|
||||
var openEnableCommunication;
|
||||
hideActionSheet();
|
||||
let binding = env0_4;
|
||||
const guildDisableCommunicationActionCreatorsNativeModule = require(10299) /* metro dependency 10299: GuildDisableCommunicationActionCreatorsNative */;
|
||||
if (binding) {
|
||||
openEnableCommunication = guildDisableCommunicationActionCreatorsNativeModule.openEnableCommunication;
|
||||
binding = env0_2;
|
||||
Reflect.apply(openEnableCommunication, guildDisableCommunicationActionCreatorsNativeModule,
|
||||
[{guildId: binding.guildId, userId: binding.userId}]);
|
||||
} else {
|
||||
openDisableCommunication = guildDisableCommunicationActionCreatorsNativeModule.openDisableCommunication;
|
||||
binding = env0_2;
|
||||
Reflect.apply(openDisableCommunication, guildDisableCommunicationActionCreatorsNativeModule,
|
||||
[{guildId: binding.guildId, userId: binding.userId}]);
|
||||
}
|
||||
}
|
||||
|
||||
function onPress_87668() { // fn#87668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:2011, offset: 0x01fc75af, size: 77 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(10321) /* metro dependency 10321: showKickConfirmModal */)({guildId: guild.id, userId: user.id,
|
||||
cancelButtonCallback: cancelButtonCallback});
|
||||
}
|
||||
|
||||
function onPress_87670() { // fn#87670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:2304, offset: 0x01fc7631, size: 77 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(10323) /* metro dependency 10323: showBanConfirmModal */)({guildId: guild.id, userId: user.id,
|
||||
cancelButtonCallback: cancelButtonCallback});
|
||||
}
|
||||
|
||||
function _fun87672(a0, a1) { // fn#87672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:2687, offset: 0x01fc767e, size: 64 bytes, params: 3, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const Fragment = env1_3.Fragment;
|
||||
return <Fragment {...{children: a0}} key={'action_' + a1} />;
|
||||
}
|
||||
|
||||
function onPress_87664OnClose() { // fn#87665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:1296, owner: onPress_87664.onClose, offset: 0x01fc74ca, size: 75 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
(importDefault(11449) /* metro dependency 11449: showModerateUserActionSheet */)({guild: guild, user: user});
|
||||
}
|
||||
|
||||
function onPress_87664OnRemove() { // fn#87666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:1355, owner: onPress_87664.onRemove, offset: 0x01fc7515, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function onPress_87668CancelButtonCallback() { // fn#87669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11636:2073, owner: onPress_87668.cancelButtonCallback, offset: 0x01fc75fc, size: 53 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (importDefault(11449) /* metro dependency 11449: showModerateUserActionSheet */)({guild: guild, user: user});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* Metro module 11449; source: modules/guild_automod/native/showModerateUserActionSheet.tsx; dependencies: [4080, 11450, 1962, 2] */
|
||||
function _fun87658(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11635:6, offset: 0x01fc6b43, 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_automod/native/showModerateUserActionSheet.tsx');
|
||||
exports.default = showModerateUserActionSheet;
|
||||
}
|
||||
|
||||
function showModerateUserActionSheet(a0) { // fn#87659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11635:196, offset: 0x01fc6baa, size: 82 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);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'ModerateUserActionSheet', a0]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user