/* 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 (
);
}
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 = [{Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['7bdzNo']])}];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
string = intl.string;
const Lbpk6m = (require(1244) /* metro dependency 1244: indexNative */).t.Lbpk6m;
items3[1] = {Reflect.apply(string,
intl, [Lbpk6m])};
items3[2] = {value2.map(_fun87709)};
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] = ;
return (
{items3}
);
}
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 (
);
}
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 (
{a0}
);
}
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 (
}
label={SubmitFeedbackScreenLabel(name)}
/>
{a1 < env0_3.length - 1 && ((FormDivider) => )((require(7972) /* metro dependency 7972: native */).FormDivider)}
);
}
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 ;
}
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 (
);
}