Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,90 @@
/* Metro module 9731; source: modules/self_mod/shared/SafetyWarningUtils.tsx; dependencies: [1878, 661, 683, 2] */
function _fun76459(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9917:6, offset: 0x01dcfc29, size: 797 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/SafetyWarningUtils.tsx');
exports.trackViewedEvent = trackViewedEvent;
exports.ViewNameTypes = {SAFETY_WARNING_BANNER: 'safety_warning_banner',
SAFETY_TAKEOVER_MODAL: 'safety_takeover_modal', SAFETY_TOOLS_NUDGE_TOOLTIP: 'safety_tools_nudge_tooltip',
SAFETY_TOOLS_BUTTON: 'safety_tools_button'};
exports.trackNamedViewEvent = trackNamedViewEvent;
exports.CtaEventTypes = {OPEN_MORE_TIPS: 'open_more_tips', USER_BANNER_DISMISS: 'user_banner_dismiss',
USER_BANNER_BLOCK_CONFIRM: 'user_banner_block_confirm',
USER_BANNER_BLOCK_AND_REPORT_CONFIRM: 'user_banner_block_and_report_confirm',
USER_BANNER_BLOCK_CANCEL: 'user_banner_block_cancel',
USER_BANNER_OPEN_SAFETY_TOOLS: 'user_banner_open_safety_tools',
USER_BANNER_IGNORE_CONFIRM: 'user_banner_ignore_confirm', USER_BANNER_MUTE: 'user_banner_mute',
USER_MODAL_BLOCK_CONFIRM: 'user_modal_block_confirm', USER_MODAL_BLOCK_CANCEL: 'user_modal_block_cancel',
USER_TAKEOVER_MODAL_DISMISS: 'user_takeover_modal_dismiss',
USER_TAKEOVER_MODAL_TAKE_ACTION: 'user_takeover_modal_take_action',
USER_TAKEOVER_MODAL_SAFETY_TIPS: 'user_takeover_modal_safety_tips',
USER_TAKEOVER_MODAL_BLOCK: 'user_takeover_modal_block',
USER_TAKEOVER_MODAL_UNBLOCK: 'user_takeover_modal_unblock',
USER_TAKEOVER_MODAL_REPORT: 'user_takeover_modal_report',
USER_TAKEOVER_MODAL_NO_FILTR: 'user_takeover_modal_no_filtr',
USER_TAKEOVER_MODAL_THROUGHLINE: 'user_takeover_modal_throughline',
USER_TAKEOVER_MODAL_CTL: 'user_takeover_modal_ctl', USER_TAKEOVER_MODAL_CTL_SMS: 'user_takeover_modal_ctl_sms',
USER_TAKEOVER_MODAL_CTL_WEB: 'user_takeover_modal_ctl_web',
USER_SAFETY_TOOLS_BUTTON_CLICK: 'user_safety_tools_button_click',
USER_SAFETY_TOOLS_IGNORE: 'user_safety_tools_ignore', USER_SAFETY_TOOLS_UNIGNORE: 'user_safety_tools_unignore',
USER_SAFETY_TOOLS_BLOCK_CONFIRM: 'user_safety_tools_block_confirm',
USER_SAFETY_TOOLS_BLOCK_AND_REPORT_CONFIRM: 'user_safety_tools_block_and_report_confirm',
USER_SAFETY_TOOLS_BLOCK_CANCEL: 'user_safety_tools_block_cancel',
USER_SAFETY_TOOLS_UNBLOCK: 'user_safety_tools_unblock', USER_SAFETY_TOOLS_REPORT: 'user_safety_tools_report',
USER_SAFETY_TOOLS_NO_FILTR: 'user_safety_tools_no_filtr',
USER_SAFETY_TOOLS_THROUGHLINE: 'user_safety_tools_throughline', USER_SAFETY_TOOLS_CTL: 'user_safety_tools_ctl',
USER_SAFETY_TOOLS_CTL_SMS: 'user_safety_tools_ctl_sms', USER_SAFETY_TOOLS_CTL_WEB: 'user_safety_tools_ctl_web',
USER_SAFETY_TOOLS_VIBING_WUMPUS: 'user_safety_tools_vibing_wumpus',
USER_SAFETY_TOOLS_SAFETY_TIPS: 'user_safety_tools_safety_tips',
USER_SAFETY_TOOLS_ABOUT_SAFETY_ALERTS: 'user_safety_tools_about_safety_alerts',
USER_SAFETY_TOOLS_ABOUT_SAFETY_ALERTS_DISMISS: 'user_safety_tools_about_safety_alerts_dismiss',
USER_SAFETY_TOOLS_DISMISS: 'user_safety_tools_dismiss', USER_MODAL_LEARN_MORE: 'user_modal_learn_more',
USER_MODAL_MUTE: 'user_modal_mute', USER_MODAL_UNMUTE: 'user_modal_unmute',
USER_MODAL_IGNORE: 'user_modal_ignore', USER_MODAL_UNIGNORE: 'user_modal_unignore',
FEEDBACK_UPVOTE: 'feedback_upvote', FEEDBACK_DOWNVOTE: 'feedback_downvote'};
exports.trackCtaEvent = trackCtaEvent;
exports.getUserIsTeen = getUserIsTeen;
}
function trackViewedEvent(a0, {channelId, warningId, senderId, warningType}) { // fn#76460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9917:3138, offset: 0x01dcff46, size: 112 bytes, params: 3, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const object2 = {channel_id: channelId};
object2.warning_id = warningId != null ? global.parseInt(warningId) : undefined;
object2.warning_type = warningType;
object2.other_user_id = senderId;
Reflect.apply(track, defaultImport, [a0, object2]);
}
function trackNamedViewEvent({channelId, warningId, senderId, warningType, viewName, isNudgeWarning}) { // fn#76461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9917:3360, offset: 0x01dcffb6, size: 143 bytes, params: 2, frame: 21
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const SAFETY_WARNING_VIEWED = AnalyticEvents.SAFETY_WARNING_VIEWED;
const object2 = {channel_id: channelId};
object2.warning_id = warningId != null ? global.parseInt(warningId) : undefined;
object2.warning_type = warningType;
object2.other_user_id = senderId;
object2.view_name = viewName;
object2.is_nudge_warning = isNudgeWarning;
Reflect.apply(track, defaultImport, [SAFETY_WARNING_VIEWED, object2]);
}
function trackCtaEvent({channelId, warningId, senderId, warningType, cta, isNudgeWarning}) { // fn#76462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9917:3658, offset: 0x01dd0045, size: 141 bytes, params: 2, frame: 21
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const SAFETY_WARNING_CTA_CLICKED = AnalyticEvents.SAFETY_WARNING_CTA_CLICKED;
const object2 = {channel_id: channelId};
object2.warning_id = warningId != null ? global.parseInt(warningId) : undefined;
object2.warning_type = warningType;
object2.other_user_id = senderId;
object2.cta = cta;
object2.is_nudge_warning = isNudgeWarning;
Reflect.apply(track, defaultImport, [SAFETY_WARNING_CTA_CLICKED, object2]);
}
function getUserIsTeen() { // fn#76463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9917:3926, offset: 0x01dd00d2, size: 41 bytes, params: 1, frame: 10
return UserStore.getCurrentUser()?.nsfwAllowed === false;
}
@@ -0,0 +1,16 @@
/* Metro module 9756; source: modules/self_mod/shared/ShowSafetyToast.native.tsx; dependencies: [3857, 8035, 8036, 2] */
function _fun76584(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9942:6, offset: 0x01ddc3d3, 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/self_mod/shared/ShowSafetyToast.native.tsx');
exports.showSafetyToast = function({id, text}) {
var defaultImport = importDefault(dependencyMap[0]);
var object = {key: id, icon: importDefault(dependencyMap[1])};
object.IconComponent = require(dependencyMap[2]).ShieldIcon;
object.iconColor = 'text-brand';
object.content = text;
defaultImport.open(object);
};
}
@@ -0,0 +1,120 @@
/* Metro module 9745; source: modules/self_mod/shared/native/ConfirmBlockUserAlert.tsx; dependencies: [31, 27, 1878, 9734, 33, 4501, 697, 566, 9736, 3995, 8783, 6264, 8153, 4596, 4578, 1244, 4573, 2] */
function _fun76541(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9931:6, offset: 0x01dd2ca0, size: 442 bytes, params: 8, frame: 23
var object2;
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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_6 = (require(9734) /* metro dependency 9734: Constants */).LOCATION_CONTEXT_MOBILE;
let 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 = {};
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object2.header = {color: MOBILE_TEXT_HEADING_PRIMARY, textAlign: 'center'};
const object5 = {};
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
object5.color = TEXT_SUBTLE;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object5.marginTop = PX_8;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object5.marginBottom = PX_24;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object5.marginHorizontal = PX_4;
object5.textAlign = 'center';
object2.text = object5;
const object6 = {};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.gap = PX_12;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.marginBottom = -PX_8;
object2.buttonsContainer = object6;
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/ConfirmBlockUserAlert.tsx');
exports.default = ConfirmBlockUserAlert;
}
function ConfirmBlockUserAlert({userId, channelId, description, onCancel, onClose, onBlockAndReport, onBlock, blockButtonVariant}) { // fn#76542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9931:534, offset: 0x01dd2e5a, size: 881 bytes, params: 2, frame: 33
var object2;
var r9;
var object8;
const env0_3 = onClose;
const styles = useStyles();
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
});
const value2 = (require(9736) /* metro dependency 9736: useLastChannelMessage */).useLastChannelMessage(channelId);
const value3 = (importDefault(3995) /* metro dependency 3995: UserUtils */).useName(user);
const binding = env0_3;
const value4 = binding.useCallback(_fun76544, [userId, channelId]);
const env0_8 = binding.useCallback(function() {
onClose();
onCancel();
}, [onClose, onCancel]);
const value5 = binding.useCallback(_fun76547, [onClose, value4, onBlock]);
const value6 = binding.useCallback(_fun76548, [value2, onClose, value4, onBlockAndReport]);
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
object2 = {renderConfirmButton: renderConfirmButton};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const items2 = [<Text style={styles.header} variant="heading-lg/bold" color="mobile-text-heading-primary">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.x5pOn9,
{name: value3})}</Text>];
items2[1] = <Text style={styles.text} variant="text-md/medium">{description ?? intl.format((require(1244) /* metro dependency 1244: indexNative */).t.pegItC,
{name: value3})}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const button = <Button size="lg" onPress={value5} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.l4Emac)} variant={blockButtonVariant ?? 'destructive'} />;
const value11 = onBlockAndReport != null;
if (value11) {
r9 = <Button size="lg" onPress={value6} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['39O+8F'])} variant="secondary" />;
} else {
r9 = value11;
}
items2[2] = <View style={styles.buttonsContainer}>{button}{r9}</View>;
return (
<Alert {...object2}>
{items2}
</Alert>
);
}
function _fun76544() { // fn#76544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9931:810, offset: 0x01dd31e6, size: 75 bytes, params: 1, frame: 15
var environment;
const value = environment.__proto__;
const defaultImport = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
defaultImport.blockUser(userId, {location: LOCATION_CONTEXT_MOBILE}).then(_fun76545);
}
function _fun76547() { // fn#76547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9931:965, offset: 0x01dd327a, size: 31 bytes, params: 1, frame: 10
onClose();
env0_7();
onBlock();
}
function _fun76548() { // fn#76548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9931:1010, offset: 0x01dd3299, size: 79 bytes, params: 1, frame: 13
onClose();
env0_7();
(require(8153) /* metro dependency 8153: ReportModals */).showReportModalForInappropriateConversationSafetyAlert(env0_6);
if (onBlockAndReport != null) {
onBlockAndReport();
}
}
function ConfirmBlockUserAlertRenderConfirmButton() { // fn#76549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9931:1155, owner: ConfirmBlockUserAlert.renderConfirmButton, offset: 0x01dd32e8, size: 122 bytes, params: 1, frame: 18
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const buttonProps = {size: 'lg', onPress: env0_8};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
buttonProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
buttonProps.variant = 'secondary';
return <Button {...buttonProps} />;
}
function _fun76545() { // fn#76545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9931:856, offset: 0x01dd3231, size: 50 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
value.showBlockSuccessToast(userId, channelId);
}
@@ -0,0 +1,46 @@
/* Metro module 6237; source: modules/self_mod/shared/native/SafetyTipsRow.tsx; dependencies: [31, 27, 33, 4501, 697, 6238, 4573, 2] */
function _fun49311(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6415:6, offset: 0x011f4be5, size: 279 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'width': 32, 'height': 32, 'backgroundColor': null, 'borderRadius': null, 'alignItems': 'center',
'justifyContent': 'center'};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object.backgroundColor = BACKGROUND_MOD_SUBTLE;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object.marginRight = PX_4;
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{indexContainer: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyTipsRow.tsx');
exports.default = SafetyTipsRow;
}
function SafetyTipsRow({index, tip, description, end}) { // fn#49312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6415:448, offset: 0x011f4cfc, size: 117 bytes, params: 2, frame: 19
const env0_0 = useStyles();
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
icon={((Component) => <Component index={index} />)(_fun49313)}
label={tip}
subLabel={description}
end={end}
/>
);
}
function _fun49313({index}) { // fn#49313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6415:553, offset: 0x011f4d71, size: 101 bytes, params: 2, frame: 16
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.indexContainer}>
<Text variant="heading-md/semibold" color="text-brand">
{index}
</Text>
</View>
);
}
@@ -0,0 +1,53 @@
/* Metro module 9754; source: modules/self_mod/shared/native/SafetyTipsSection.tsx; dependencies: [31, 27, 33, 4501, 697, 4572, 5473, 4573, 1244, 6237, 2] */
function _fun76574(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9940:6, offset: 0x01ddb9f6, size: 296 bytes, params: 8, frame: 23
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(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.overflow = 'hidden';
const env0_6 = Reflect.apply(createStyles, value, [{image: {'alignSelf': 'center', 'justifySelf': 'center'},
tips: object, text: {textAlign: 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyTipsSection.tsx');
exports.default = SafetyTipsContainer;
}
function SafetyTipsContainer({description, safetyTips, showHeader}) { // fn#76575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9940:453, offset: 0x01ddbb1e, size: 433 bytes, params: 2, frame: 30
var r7;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var intl;
const styles = useStyles();
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const SafetyBookletSpotIllustration = (require(5473) /* metro dependency 5473: native */).SafetyBookletSpotIllustration;
const items2 = [<View style={styles.image}><SafetyBookletSpotIllustration /></View>];
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
if (showHeader) {
var textProps = {style: styles.text, variant: 'heading-xl/semibold'};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r7 = <Text {...textProps}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eAbVfS)}</Text>;
} else {
r7 = showHeader;
}
items2[1] = <Stack2 spacing={8} align="center" justify="center">{r7}<Text style={styles.text} accessibilityRole="header" variant="text-md/medium" color="text-default">{description}</Text></Stack2>;
items2[2] = <View style={styles.tips}>{safetyTips.map(_fun76576)}</View>;
return (
<Stack spacing={16}>
{items2}
</Stack>
);
}
function _fun76576(a0, a1) { // fn#76576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9940:986, offset: 0x01ddbccf, size: 86 bytes, params: 3, frame: 17
const value = environment.__proto__;
return ((Component) => <Component index={a1 + 1} tip={a0} end={a1 === safetyTips.length - 1} key={a1} />)(importDefault(6237) /* metro dependency 6237: SafetyTipsRow */);
}
@@ -0,0 +1,146 @@
/* Metro module 9755; source: modules/self_mod/shared/native/SafetyToolsAboutActionSheet.tsx; dependencies: [57, 31, 27, 9734, 661, 33, 4501, 697, 9728, 4080, 9731, 9732, 9756, 1244, 3856, 9741, 6766, 1948, 4578, 4573, 2] */
function _fun76577(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9941:6, offset: 0x01ddbd25, size: 379 bytes, params: 8, frame: 22
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;
const env0_6 = (require(9734) /* metro dependency 9734: Constants */).getSafetyToolsActionSheetKey;
const env0_7 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
let value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object2.aboutContainer = {marginHorizontal: PX_32};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.description = {'alignSelf': 'center', 'textAlign': 'center', marginBottom: PX_24};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.reportFalsePositive = {'alignSelf': 'center', 'textAlign': 'center', marginTop: PX_8};
const env0_10 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyToolsAboutActionSheet.tsx');
exports.default = SafetyToolsAboutScreen;
}
function SafetyToolsAboutScreen({channelId, recipientId, warningId, warningType, onClose}) { // fn#76578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9941:484, offset: 0x01ddbea0, size: 738 bytes, params: 2, frame: 33
var object2;
const env0_3 = warningType;
const binding = env0_4;
const [property, env0_5] = env0_3(binding.useState(false), 2);
const styles = useStyles();
const value6 = binding.useCallback(_fun76579, [channelId, warningId, warningType, recipientId,
(require(9728) /* metro dependency 9728: useShouldShowSafetyToolsButtonTooltipForChannel */).useSafetyToolsButtonTooltipForChannel(channelId) != null]);
const env0_7 = binding.useCallback(_fun76580, [channelId, property]);
const SafetyToolsActionSheetWrapper = importDefault(9741) /* metro dependency 9741: SafetyToolsActionSheetWrapper */;
object2 = {hasHeaderBack: true, recipientId: recipientId, warningId: warningId, warningType: warningType};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.headerTitle = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t.qI14KM]);
object2.channelId = channelId;
object2.onClose = onClose;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const format = intl.format;
const property2 = (require(1244) /* metro dependency 1244: indexNative */).t['njJ/Cg'];
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const SAFETY_ALERTS = HelpdeskArticles.SAFETY_ALERTS;
let value = <TextWithIOSLinkWorkaround variant="text-md/medium" style={styles.description}>{Reflect.apply(format,
intl, [property2, {learnMoreLink: Reflect.apply(getArticleURL, defaultImport2,
[SAFETY_ALERTS])}])}</TextWithIOSLinkWorkaround>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const Xb2REN = (require(1244) /* metro dependency 1244: indexNative */).t.Xb2REN;
value = <View style={styles.aboutContainer}>{value}<Button variant="secondary" size="lg" disabled={property} text={Reflect.apply(string,
intl, [Xb2REN])} onPress={value6} /></View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<SafetyToolsActionSheetWrapper {...object2}>
{value}
<Text variant="text-md/medium" style={styles.reportFalsePositive}>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['2uYViD'],
{reportFalsePositiveHook: reportFalsePositiveHook})}
</Text>
</SafetyToolsActionSheetWrapper>
);
}
function _fun76579() { // fn#76579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9941:705, offset: 0x01ddc182, size: 149 bytes, params: 1, frame: 17
let value = environment.__proto__;
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
const hideActionSheet = defaultImport.hideActionSheet;
const getSafetyToolsActionSheetKeyBinding = getSafetyToolsActionSheetKey;
const channelIdBinding = channelId;
Reflect.apply(hideActionSheet, defaultImport, [getSafetyToolsActionSheetKeyBinding(channelIdBinding)]);
value = require(9731) /* metro dependency 9731: SafetyWarningUtils */;
const trackCtaEvent = value.trackCtaEvent;
const object2 = {channelId: channelIdBinding};
object2.warningId = warningId;
object2.warningType = warningType;
object2.senderId = recipientId;
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
const USER_SAFETY_TOOLS_ABOUT_SAFETY_ALERTS_DISMISS = CtaEventTypes.USER_SAFETY_TOOLS_ABOUT_SAFETY_ALERTS_DISMISS;
object2.cta = USER_SAFETY_TOOLS_ABOUT_SAFETY_ALERTS_DISMISS;
object2.isNudgeWarning = result;
Reflect.apply(trackCtaEvent, value, [object2]);
}
function _fun76580() { // fn#76580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9941:937, offset: 0x01ddc217, size: 102 bytes, params: 1, frame: 14
var environment;
var value2;
var moduleValue;
var value;
if (!env0_4) {
env0_5(true);
value2 = environment.__proto__;
moduleValue = require(9732) /* metro dependency 9732: ChannelSafetyWarningsActionCreators */;
value = moduleValue.reportFalsePositive(channelId);
value = value.then(_fun76581);
value.catch(_fun76582);
}
}
function reportFalsePositiveHook(a0, a1) { // fn#76583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9941:1898, owner: SafetyToolsAboutScreen.reportFalsePositiveHook, offset: 0x01ddc37d, size: 86 bytes, params: 3, frame: 16
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-sm/medium"
color="text-link"
disabled={env0_4}
onPress={env0_7}
key={a1}
>
{a0}
</Text>
);
}
function _fun76581() { // fn#76581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9941:990, offset: 0x01ddc27d, size: 157 bytes, params: 1, frame: 19
env1_5(false);
const showSafetyToastNativeModule = require(9756) /* metro dependency 9756: ShowSafetyToastNative */;
const showSafetyToast = showSafetyToastNativeModule.showSafetyToast;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const FhgVWi = (require(1244) /* metro dependency 1244: indexNative */).t.FhgVWi;
Reflect.apply(showSafetyToast, showSafetyToastNativeModule, [{id: 'safety-tools-report-false-positive',
text: Reflect.apply(string, intl, [FhgVWi])}]);
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
defaultImport.hideActionSheet(getSafetyToolsActionSheetKey(channelId));
}
function _fun76582() { // fn#76582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9941:1154, offset: 0x01ddc31a, size: 99 bytes, params: 1, frame: 16
let value = environment.__proto__;
env1_5(false);
value = environment.__proto__.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
const presentError = value.presentError;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const R0RpRX = (require(1244) /* metro dependency 1244: indexNative */).t.R0RpRX;
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
}
@@ -0,0 +1,364 @@
/* Metro module 9735; source: modules/self_mod/shared/native/SafetyToolsActionSheet.tsx; dependencies: [31, 27, 3793, 9734, 33, 4501, 697, 9736, 9737, 9728, 566, 9731, 6818, 1244, 8664, 8663, 4080, 9740, 1962, 3853, 9000, 8748, 8999, 8998, 8783, 9743, 6988, 6264, 4496, 9744, 8666, 8665, 8153, 8842, 8841, 5080, 9746, 9751, 9752, 9753, 8035, 8036, 9755, 9741, 6231, 6238, 6242, 2] */
function _fun76478(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:6, offset: 0x01dd080c, size: 337 bytes, params: 8, frame: 22
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 relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
let value = require(9734) /* metro dependency 9734: Constants */;
const env0_6 = value.ACTION_SHEET_CONTEXT_MOBILE;
const env0_7 = value.getSafetyToolsActionSheetKey;
const env0_8 = value.THROUGHLINE_URL;
const env0_9 = value.NOFILTR_URL;
const env0_10 = value.VIBING_WUMPUS_MODAL_KEY;
const env0_11 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.marginHorizontal = PX_16;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object.marginBottom = PX_24;
const env0_12 = Reflect.apply(createStyles, value, [{container: {flex: 1}, actionRowGroup: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyToolsActionSheet.tsx');
exports.default = SafetyToolsActionSheet;
}
function SafetyToolsActionSheet({channelId, warningId, warningType, recipientId, onClose}) { // fn#76479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:518, offset: 0x01dd095d, size: 561 bytes, params: 2, frame: 32
const env0_3 = recipientId;
const styles = useStyles();
const value2 = (require(9736) /* metro dependency 9736: useLastChannelMessage */).useLastChannelMessage(channelId);
const value3 = (require(9737) /* metro dependency 9737: useHelpLineVisibility */).useShouldShowHelplineLink();
const value4 = (require(9737) /* metro dependency 9737: useHelpLineVisibility */).useShouldShowThroughlineLink();
const value6 = (require(9728) /* metro dependency 9728: useShouldShowSafetyToolsButtonTooltipForChannel */).useSafetyToolsButtonTooltipForChannel(channelId) != null;
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() {
return RelationshipStore.isBlocked(recipientId);
}, [recipientId]);
const value8 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() {
return RelationshipStore.isIgnored(recipientId);
}, [recipientId]);
const binding = env0_3;
const value10 = binding.useMemo(_fun76483, [value7, value8, value3, value4, binding.useCallback(_fun76482,
[channelId, warningId, warningType, recipientId, value6]), recipientId, channelId, warningId, warningType,
onClose, value2]);
const SafetyToolsActionSheetWrapper = importDefault(9741) /* metro dependency 9741: SafetyToolsActionSheetWrapper */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const MAhAp6 = (require(1244) /* metro dependency 1244: indexNative */).t.MAhAp6;
return (
<SafetyToolsActionSheetWrapper
headerTitle={Reflect.apply(string, intl, [MAhAp6])}
channelId={channelId}
recipientId={recipientId}
warningId={warningId}
warningType={warningType}
onClose={onClose}
>
<View style={styles.container}>
{value10.map(_fun76500)}
</View>
</SafetyToolsActionSheetWrapper>
);
}
function _fun76482(a0) { // fn#76482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:933, offset: 0x01dd0bc4, size: 95 bytes, params: 2, frame: 14
const value = environment.__proto__;
(require(9731) /* metro dependency 9731: SafetyWarningUtils */).trackCtaEvent({channelId: channelId,
warningId: warningId, senderId: recipientId, warningType: warningType, cta: a0, isNudgeWarning: result});
}
function _fun76483() { // fn#76483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:1063, offset: 0x01dd0c23, size: 1699 bytes, params: 1, frame: 28
var object18;
const value2 = undefined;
const ChevronSmallRightIcon = require(dependencyMap[12]).ChevronSmallRightIcon;
const INTERACTIVE_TEXT_DEFAULT = importDefault(dependencyMap[6]).colors.INTERACTIVE_TEXT_DEFAULT;
const chevronSmallRightIcon = <ChevronSmallRightIcon size="md" color={INTERACTIVE_TEXT_DEFAULT} />;
object18 = {};
const intl = require(dependencyMap[13]).intl;
let string = intl.string;
const t = require(dependencyMap[13]).t;
let ZSbbMJ = t.ZSbbMJ;
object18.label = Reflect.apply(string, intl, [ZSbbMJ]);
object18.subLabel = intl.string(require(dependencyMap[13]).t.iNcsrW);
object18.icon = importDefault(dependencyMap[14]);
const HeartIcon = require(dependencyMap[15]).HeartIcon;
object18.IconComponent = HeartIcon;
object18.trailing = chevronSmallRightIcon;
object18.onPress = onPress_76484;
const object4 = {};
string = intl.string;
ZSbbMJ = require(dependencyMap[13]).t.ZSbbMJ;
object4.label = Reflect.apply(string, intl, [ZSbbMJ]);
string = intl.string;
const S9O1ZZ = require(dependencyMap[13]).t.S9O1ZZ;
object4.subLabel = Reflect.apply(string, intl, [S9O1ZZ]);
object4.icon = importDefault(dependencyMap[14]);
object4.IconComponent = HeartIcon;
object4.onPress = onPress_76486;
const object8 = {};
string = intl.string;
ZSbbMJ = require(dependencyMap[13]).t.ZSbbMJ;
object8.label = Reflect.apply(string, intl, [ZSbbMJ]);
object8.subLabel = intl.string(require(dependencyMap[13]).t.g5uwC5);
object8.icon = importDefault(dependencyMap[14]);
object8.IconComponent = HeartIcon;
object8.onPress = onPress_76487;
const object12 = {};
let binding = env0_11;
string = intl.string;
object12.label = binding ? Reflect.apply(string, intl, [t['9e0wLn']]) : Reflect.apply(string, intl, [t.B7ZT06]);
object12.subLabel = env0_11 ? value2 : intl.string(require(dependencyMap[13]).t.fCfp49);
object12.icon = importDefault(env0_11 ? dependencyMap[20] : dependencyMap[21]);
object12.IconComponent = env0_11 ? require(dependencyMap[22]).EyeIcon : require(dependencyMap[23]).EyeSlashIcon;
binding = env0_10;
object12.disabled = binding;
object12.onPress = onPress_76488;
const items4 = [object12];
const object13 = {};
string = intl.string;
object13.label = binding ? Reflect.apply(string, intl, [t.Hro40y]) : Reflect.apply(string, intl, [t.oDxaKy]);
string = intl.string;
const Lj37az = require(dependencyMap[13]).t.Lj37az;
object13.subLabel = Reflect.apply(string, intl, [Lj37az]);
object13.icon = importDefault(dependencyMap[25]);
const CircleXIcon = require(dependencyMap[26]).CircleXIcon;
object13.IconComponent = CircleXIcon;
object13.onPress = onPress_76489;
items4[1] = object13;
const object14 = {};
string = intl.string;
const X27yhD = require(dependencyMap[13]).t.X27yhD;
object14.label = Reflect.apply(string, intl, [X27yhD]);
object14.subLabel = intl.string(require(dependencyMap[13]).t['0tydOa']);
object14.icon = importDefault(dependencyMap[30]);
const FlagIcon = require(dependencyMap[31]).FlagIcon;
object14.IconComponent = FlagIcon;
object14.onPress = onPress_76493;
items4[2] = object14;
const items2 = [{sectionKey: 'action', buttons: items4}];
const object15 = {};
object15.label = intl.string(require(dependencyMap[13]).t.syuaPI);
string = intl.string;
const LLBnNk = require(dependencyMap[13]).t.LLBnNk;
object15.subLabel = Reflect.apply(string, intl, [LLBnNk]);
object15.icon = importDefault(dependencyMap[33]);
const MusicIcon = require(dependencyMap[34]).MusicIcon;
object15.IconComponent = MusicIcon;
object15.trailing = chevronSmallRightIcon;
object15.onPress = onPress_76494;
const items3 = [object15];
const object16 = {};
object16.label = intl.string(require(dependencyMap[13]).t['7LgVmt']);
object16.subLabel = intl.string(require(dependencyMap[13]).t.pwoRjc);
object16.icon = importDefault(dependencyMap[37]);
const EducationIcon = require(dependencyMap[38]).EducationIcon;
object16.IconComponent = EducationIcon;
object16.trailing = chevronSmallRightIcon;
object16.onPress = onPress_76496;
items3[1] = object16;
items3[2] = env0_7 ? object18 : env0_8 ? object4 : object8;
items2[1] = {sectionKey: 'support', buttons: items3};
const object17 = {};
object17.label = intl.string(require(dependencyMap[13]).t.otdt24);
object17.icon = importDefault(dependencyMap[40]);
const ShieldIcon = require(dependencyMap[41]).ShieldIcon;
object17.IconComponent = ShieldIcon;
object17.trailing = chevronSmallRightIcon;
object17.onPress = onPress_76498;
items2[2] = {sectionKey: 'info', buttons: [object17]};
return items2;
}
function _fun76500(a0) { // fn#76500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:4789, offset: 0x01dd1910, size: 124 bytes, params: 2, frame: 20
const viewBindingProps = {style: styles.actionRowGroup};
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
return (
<View {...viewBindingProps} key={a0.sectionKey}>
<TableRowGroup hasIcons>
{a0.buttons.map(_fun76501)}
</TableRowGroup>
</View>
);
}
function onPress_76484() { // fn#76484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:1322, offset: 0x01dd12c6, size: 184 bytes, params: 1, frame: 22
var environment;
let value = environment.__proto__.__proto__;
const getSafetyToolsActionSheetKeyBinding = getSafetyToolsActionSheetKey;
const channelIdBinding = channelId;
const env0_0 = getSafetyToolsActionSheetKeyBinding(channelIdBinding);
const defaultImport = importDefault(dependencyMap[16]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[18]);
value = value(dependencyMap[17], dependencyMap.paths);
const safetyToolsActionSheetKeyBinding = getSafetyToolsActionSheetKeyBinding(channelIdBinding);
const binding = env1_12;
Reflect.apply(openLazy, defaultImport, [value, safetyToolsActionSheetKeyBinding, {recipientId: recipientId,
channelId: channelIdBinding, warningId: warningId, warningType: warningType, onClose: onClose_76485,
trackAnalyticsEvent: binding}]);
const CtaEventTypes = require(dependencyMap[11]).CtaEventTypes;
const USER_SAFETY_TOOLS_CTL = CtaEventTypes.USER_SAFETY_TOOLS_CTL;
binding(USER_SAFETY_TOOLS_CTL);
}
function onPress_76486() { // fn#76486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:1701, offset: 0x01dd13ab, size: 82 bytes, params: 1, frame: 14
(importDefault(3853) /* metro dependency 3853: Linking */).openURL(THROUGHLINE_URL);
const binding = env1_12;
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
const USER_SAFETY_TOOLS_THROUGHLINE = CtaEventTypes.USER_SAFETY_TOOLS_THROUGHLINE;
binding(USER_SAFETY_TOOLS_THROUGHLINE);
}
function onPress_76487() { // fn#76487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:1934, offset: 0x01dd13fd, size: 82 bytes, params: 1, frame: 14
(importDefault(3853) /* metro dependency 3853: Linking */).openURL(NOFILTR_URL);
const binding = env1_12;
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
const USER_SAFETY_TOOLS_NO_FILTR = CtaEventTypes.USER_SAFETY_TOOLS_NO_FILTR;
binding(USER_SAFETY_TOOLS_NO_FILTR);
}
function onPress_76488() { // fn#76488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:2294, offset: 0x01dd144f, size: 163 bytes, params: 1, frame: 19
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
const binding = env1_11;
const defaultImport = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
if (binding) {
defaultImport.unignoreUser(recipientId, ACTION_SHEET_CONTEXT_MOBILE, channelId);
env1_12(CtaEventTypes.USER_SAFETY_TOOLS_UNIGNORE);
} else {
defaultImport.ignoreUser(recipientId, ACTION_SHEET_CONTEXT_MOBILE, channelId);
env1_12(CtaEventTypes.USER_SAFETY_TOOLS_IGNORE);
}
}
function onPress_76489() { // fn#76489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:2659, offset: 0x01dd14f2, size: 173 bytes, params: 1, frame: 19
var environment;
var defaultImport;
var unblockUser;
var recipientIdBinding;
var defaultImport2;
let value = environment.__proto__;
if (env1_10) {
defaultImport = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
unblockUser = defaultImport.unblockUser;
recipientIdBinding = recipientId;
Reflect.apply(unblockUser, defaultImport, [recipientIdBinding, {location: ACTION_SHEET_CONTEXT_MOBILE}]);
defaultImport2 = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
defaultImport2.showUnblockSuccessToast(recipientIdBinding, channelId);
env1_12((require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes.USER_SAFETY_TOOLS_UNBLOCK);
} else {
value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
value.openLazy({importer: importer_76490});
}
}
function onPress_76493() { // fn#76493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:3343, offset: 0x01dd16bc, size: 86 bytes, params: 1, frame: 15
onClose();
(require(8153) /* metro dependency 8153: ReportModals */).showReportModalForInappropriateConversationSafetyAlert(env1_6);
const binding = env1_12;
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
const USER_SAFETY_TOOLS_REPORT = CtaEventTypes.USER_SAFETY_TOOLS_REPORT;
binding(USER_SAFETY_TOOLS_REPORT);
}
function onPress_76494() { // fn#76494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:3664, offset: 0x01dd1712, size: 152 bytes, params: 1, frame: 19
importDefault(dependencyMap[16]).hideActionSheet();
const defaultImport2 = importDefault(dependencyMap[35]);
defaultImport2.pushLazy(require(dependencyMap[18])(dependencyMap[36], dependencyMap.paths), {onClose: function() {
}}, VIBING_WUMPUS_MODAL_KEY);
const binding = env1_12;
const CtaEventTypes = require(dependencyMap[11]).CtaEventTypes;
const USER_SAFETY_TOOLS_VIBING_WUMPUS = CtaEventTypes.USER_SAFETY_TOOLS_VIBING_WUMPUS;
binding(USER_SAFETY_TOOLS_VIBING_WUMPUS);
}
function onPress_76496() { // fn#76496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:3984, offset: 0x01dd17aa, size: 179 bytes, params: 1, frame: 22
var environment;
let value = environment.__proto__.__proto__;
const getSafetyToolsActionSheetKeyBinding = getSafetyToolsActionSheetKey;
const channelIdBinding = channelId;
const env0_0 = getSafetyToolsActionSheetKeyBinding(channelIdBinding);
const defaultImport = importDefault(dependencyMap[16]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[18]);
value = value(dependencyMap[39], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, getSafetyToolsActionSheetKeyBinding(channelIdBinding),
{recipientId: recipientId, channelId: channelIdBinding, warningId: warningId, warningType: warningType,
onClose: onClose_76497}]);
const binding = env1_12;
const CtaEventTypes = require(dependencyMap[11]).CtaEventTypes;
const USER_SAFETY_TOOLS_SAFETY_TIPS = CtaEventTypes.USER_SAFETY_TOOLS_SAFETY_TIPS;
binding(USER_SAFETY_TOOLS_SAFETY_TIPS);
}
function onPress_76498() { // fn#76498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:4350, offset: 0x01dd185d, size: 179 bytes, params: 1, frame: 22
var environment;
let value = environment.__proto__.__proto__;
const getSafetyToolsActionSheetKeyBinding = getSafetyToolsActionSheetKey;
const channelIdBinding = channelId;
const env0_0 = getSafetyToolsActionSheetKeyBinding(channelIdBinding);
const defaultImport = importDefault(dependencyMap[16]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[18]);
value = value(dependencyMap[42], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, getSafetyToolsActionSheetKeyBinding(channelIdBinding),
{recipientId: recipientId, channelId: channelIdBinding, warningId: warningId, warningType: warningType,
onClose: onClose_76499}]);
const binding = env1_12;
const CtaEventTypes = require(dependencyMap[11]).CtaEventTypes;
const USER_SAFETY_TOOLS_ABOUT_SAFETY_ALERTS = CtaEventTypes.USER_SAFETY_TOOLS_ABOUT_SAFETY_ALERTS;
binding(USER_SAFETY_TOOLS_ABOUT_SAFETY_ALERTS);
}
function _fun76501({label, subLabel, IconComponent, icon, trailing, onPress, disabled}, a1) { // fn#76501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:4891, offset: 0x01dd198c, size: 149 bytes, params: 3, frame: 23
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TableRowIcon = (require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon;
return (
<TableRow
label={label}
subLabel={subLabel}
onPress={onPress}
trailing={trailing}
disabled={disabled}
icon={<TableRowIcon source={icon} IconComponent={IconComponent} />}
key={a1}
/>
);
}
function onPress_76484OnClose() { // fn#76485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:1443, owner: onPress_76484.onClose, offset: 0x01dd137e, size: 45 bytes, params: 1, frame: 12
const value = environment.__proto__.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(env0_0);
}
function onPress_76489Importer() { // fn#76490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:2828, owner: onPress_76489.importer, offset: 0x01dd159f, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__.__proto__.__proto__;
value = require(dependencyMap[18]);
value = value(dependencyMap[29], dependencyMap.paths);
return value.then(function({default: env0_0}) {
return _fun76492;
});
}
function _fun76491({default: env0_0}) { // fn#76491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:2862, offset: 0x01dd15df, size: 23 bytes, params: 2, frame: 2
return _fun76492;
}
function _fun76492(a0) { // fn#76492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9921:2877, offset: 0x01dd15f6, size: 198 bytes, params: 2, frame: 18
const binding = env0_0;
const bindingProps = {...a0};
bindingProps['channelId'] = channelId;
bindingProps['warningId'] = warningId;
bindingProps['warningType'] = warningType;
bindingProps['senderId'] = recipientId;
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
const USER_SAFETY_TOOLS_BLOCK_CONFIRM = CtaEventTypes.USER_SAFETY_TOOLS_BLOCK_CONFIRM;
bindingProps['analyticsBlockContext'] = USER_SAFETY_TOOLS_BLOCK_CONFIRM;
const USER_SAFETY_TOOLS_BLOCK_AND_REPORT_CONFIRM = CtaEventTypes.USER_SAFETY_TOOLS_BLOCK_AND_REPORT_CONFIRM;
bindingProps['analyticsBlockAndReportContext'] = USER_SAFETY_TOOLS_BLOCK_AND_REPORT_CONFIRM;
const USER_SAFETY_TOOLS_BLOCK_CANCEL = CtaEventTypes.USER_SAFETY_TOOLS_BLOCK_CANCEL;
bindingProps['analyticsCancelContext'] = USER_SAFETY_TOOLS_BLOCK_CANCEL;
return ((Component) => <Component {...bindingProps} />)(binding);
}
@@ -0,0 +1,47 @@
/* Metro module 9742; source: modules/self_mod/shared/native/SafetyToolsActionSheetHeader.tsx; dependencies: [31, 27, 33, 4501, 697, 9733, 5282, 4573, 2] */
function _fun76530(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9928:6, offset: 0x01dd2700, size: 256 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const env0_6 = Reflect.apply(createStyles, value, [{navbarContainer: {'display': 'flex', 'flexDirection': 'row',
'justifyContent': 'center'}, navbarLeft: {position: 'absolute', left: PX_16}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyToolsActionSheetHeader.tsx');
exports.default = SafetyToolsActionSheetHeader;
}
function SafetyToolsActionSheetHeader({title, channelId, recipientId, warningId, warningType, hasBackButton}) { // fn#76531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9928:315, offset: 0x01dd2800, size: 263 bytes, params: 2, frame: 22
const env0_2 = warningId;
const styles = useStyles();
const binding = env0_2;
const value2 = binding.useCallback(_fun76532, [channelId, recipientId, warningId, warningType]);
const useMemo = binding.useMemo;
const r6 = hasBackButton != null && Reflect.apply(useMemo, binding, [_fun76533, [value2, styles.navbarLeft]]);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.navbarContainer}>
{r6}
<Text variant="heading-lg/bold" color="mobile-text-heading-primary">
{title}
</Text>
</View>
);
}
function _fun76532() { // fn#76532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9928:459, offset: 0x01dd2907, size: 59 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(9733) /* metro dependency 9733: SafetyToolsActionCreatorsNative */;
value.openSafetyToolsActionSheet(channelId, recipientId, warningId, warningType);
}
function _fun76533() { // fn#76533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9928:534, offset: 0x01dd2942, size: 71 bytes, params: 1, frame: 15
return ((Component) => <Component style={styles.navbarLeft} />)((require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton(env0_5));
}
@@ -0,0 +1,35 @@
/* Metro module 9741; source: modules/self_mod/shared/native/SafetyToolsActionSheetWrapper.tsx; dependencies: [31, 1379, 33, 566, 6275, 9742, 2] */
function _fun76526(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9927:6, offset: 0x01dd2536, size: 158 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyToolsActionSheetWrapper.tsx');
exports.default = SafetyToolsActionSheetWrapper;
}
function SafetyToolsActionSheetWrapper({headerTitle, hasHeaderBack, channelId, warningId, warningType, recipientId, children, onClose}) { // fn#76527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9927:136, offset: 0x01dd25d4, size: 273 bytes, params: 2, frame: 25
var r0;
var BottomSheet;
var value;
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
env0_3.useEffect(function() {
if (channel == null) {
onClose();
}
}, [channel, onClose]);
if (channel != null) {
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
value = importDefault(9742) /* metro dependency 9742: SafetyToolsActionSheetHeader */;
value = <BottomSheet showGradient startExpanded header={((Component) => <Component recipientId={recipientId} warningId={warningId} warningType={warningType} hasBackButton={hasHeaderBack} title={headerTitle} channelId={channelId} />)(value)}>{children}</BottomSheet>;
r0 = value;
} else {
r0 = null;
}
return r0;
}
@@ -0,0 +1,60 @@
/* Metro module 9740; source: modules/self_mod/shared/native/SafetyToolsCrisisTextLineActionSheet.tsx; dependencies: [31, 27, 9734, 33, 4501, 697, 9741, 1244, 4573, 4578, 3853, 9731, 2] */
function _fun76522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9926:6, offset: 0x01dd213a, size: 342 bytes, params: 8, frame: 22
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(9734) /* metro dependency 9734: Constants */;
const env0_4 = value.CRISIS_TEXT_LINE_SMS_URI;
const env0_5 = value.CRISIS_TEXT_LINE_URL;
value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {'display': 'flex', 'alignItems': 'center', 'gap': null, 'padding': null, 'paddingTop': 0};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.gap = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.padding = PX_16;
object3.container = object4;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.description = {'textAlign': 'center', 'marginBottom': null, 'maxWidth': 300, marginBottom: PX_8};
const env0_8 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyToolsCrisisTextLineActionSheet.tsx');
exports.default = SafetyToolsCrisisTextLineActionSheet;
}
function SafetyToolsCrisisTextLineActionSheet({channelId, recipientId, warningId, warningType, onClose, trackAnalyticsEvent}) { // fn#76523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9926:542, offset: 0x01dd2290, size: 514 bytes, params: 2, frame: 27
const styles = useStyles();
const SafetyToolsActionSheetWrapper = importDefault(9741) /* metro dependency 9741: SafetyToolsActionSheetWrapper */;
const object2 = {hasHeaderBack: true, recipientId: recipientId, warningId: warningId, warningType: warningType};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const NUMAsF = (require(1244) /* metro dependency 1244: indexNative */).t.NUMAsF;
object2.headerTitle = Reflect.apply(string, intl, [NUMAsF]);
object2.channelId = channelId;
object2.onClose = onClose;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [<Text variant="text-md/medium" color="text-default" style={styles.description}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uicS5l)}</Text>];
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[1] = <Button variant="secondary" size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lkUb4S)} grow onPress={function() {
importDefault(dependencyMap[10]).openURL(CRISIS_TEXT_LINE_SMS_URI);
trackAnalyticsEvent(require(dependencyMap[11]).CtaEventTypes.USER_SAFETY_TOOLS_CTL_SMS);
}} />;
items2[2] = <Button variant="secondary" size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ogLlvy)} grow onPress={function() {
importDefault(dependencyMap[10]).openURL(CRISIS_TEXT_LINE_URL);
trackAnalyticsEvent(require(dependencyMap[11]).CtaEventTypes.USER_SAFETY_TOOLS_CTL_WEB);
}} />;
return (
<SafetyToolsActionSheetWrapper {...object2}>
<View style={styles.container}>
{items2}
</View>
</SafetyToolsActionSheetWrapper>
);
}
@@ -0,0 +1,47 @@
/* Metro module 9753; source: modules/self_mod/shared/native/SafetyToolsSafetyTipsActionSheet.tsx; dependencies: [31, 27, 9734, 33, 4501, 697, 9741, 1244, 9754, 4573, 2] */
function _fun76571(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9939:6, offset: 0x01ddb798, size: 243 bytes, params: 8, frame: 21
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;
const env0_4 = (require(9734) /* metro dependency 9734: Constants */).getInappropriateConversationsSafetyTips;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{safetyTipsContainer: {marginHorizontal: PX_16}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyToolsSafetyTipsActionSheet.tsx');
exports.default = SafetyToolsSafetyTipsActionSheet;
}
function SafetyToolsSafetyTipsActionSheet({channelId, recipientId, warningId, warningType, onClose}) { // fn#76572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9939:380, offset: 0x01ddb88b, size: 298 bytes, params: 2, frame: 24
const styles = useStyles();
const SafetyToolsActionSheetWrapper = importDefault(9741) /* metro dependency 9741: SafetyToolsActionSheetWrapper */;
const object2 = {hasHeaderBack: true, recipientId: recipientId, warningId: warningId, warningType: warningType};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const EtNxi6 = (require(1244) /* metro dependency 1244: indexNative */).t.EtNxi6;
object2.headerTitle = Reflect.apply(string, intl, [EtNxi6]);
object2.channelId = channelId;
object2.onClose = onClose;
const SafetyTipsSection = importDefault(9754) /* metro dependency 9754: SafetyTipsSection */;
string = intl.string;
const DJMZX6 = (require(1244) /* metro dependency 1244: indexNative */).t.DJMZX6;
return (
<SafetyToolsActionSheetWrapper {...object2}>
<View style={styles.safetyTipsContainer}>
<SafetyTipsSection
description={Reflect.apply(string, intl, [DJMZX6])}
safetyTips={getInappropriateConversationsSafetyTips().map(_fun76573)}
/>
</View>
</SafetyToolsActionSheetWrapper>
);
}
function _fun76573(a0, a1) { // fn#76573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9939:776, offset: 0x01ddb9b5, size: 65 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return <Text {...{variant: 'text-sm/medium', children: a0}} key={a1} />;
}
@@ -0,0 +1,117 @@
/* Metro module 11298; source: modules/self_mod/shared/native/SafetyWarningBanner.tsx; dependencies: [31, 27, 33, 4501, 697, 4826, 4831, 9731, 1244, 1305, 11299, 11300, 4573, 4578, 2] */
function _fun86212(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11484:6, offset: 0x01f8bdff, size: 643 bytes, params: 8, frame: 25
var object4;
const env0_0 = require;
const closure = SafetyWarningBanner;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.Image;
const env0_5 = value.Pressable;
const env0_6 = value.View;
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;
object4 = {};
const object6 = {};
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object6.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.paddingHorizontal = PX_16;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.paddingVertical = PX_12;
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
copyDataProperties(object6, SHADOW_LOW, undefined);
object4.container = object6;
object4.contentContainer = {'flexDirection': 'row', 'alignItems': 'center'};
object4.safetyShieldIconContainer = {'width': 42, 'height': 50};
object4.safetyShieldIcon = {'flex': 1, 'width': 'auto', 'height': 'auto'};
const object8 = {flex: 1};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object8.marginLeft = PX_16;
const PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object8.marginRight = PX_40;
object4.textContainer = object8;
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object4.text = {color: MOBILE_TEXT_HEADING_PRIMARY};
const object9 = {position: 'absolute'};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.top = PX_8;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object9.right = PX_16;
object9.zIndex = 1;
object4.closeButton = object9;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object4.closeButtonIcon = {tintColor: INTERACTIVE_TEXT_DEFAULT};
const object10 = {flexDirection: 'row'};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object10.marginTop = PX_16;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object10.gap = PX_8;
object4.buttonsContainer = object10;
const env0_9 = Reflect.apply(createStyles, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/shared/native/SafetyWarningBanner.tsx');
exports.default = closure;
exports.SafetyWarningBanner = closure;
}
function SafetyWarningBanner({channelId, warningId, senderId, warningType, header, description, onDismiss, buttons}) { // fn#86213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11484:929, offset: 0x01f8c082, size: 693 bytes, params: 2, frame: 34
const env0_3 = warningType;
const styles = useStyles();
env0_3.useEffect(function() {
var defaultImport = importDefault(dependencyMap[5]);
var object = {};
object.name = require(dependencyMap[6]).MetricEvents.SAFETY_WARNING_VIEW;
defaultImport.increment(object);
}, []);
const pressableBindingProps = {style: styles.closeButton, onPress: env0_3.useCallback(function() {
if (onDismiss != null) {
onDismiss();
}
var moduleValue = require(dependencyMap[7]);
var object = {};
object.channelId = channelId;
object.warningId = warningId;
object.senderId = senderId;
object.warningType = warningType;
object.cta = require(dependencyMap[7]).CtaEventTypes.USER_BANNER_DISMISS;
moduleValue.trackCtaEvent(object);
}, [onDismiss, channelId, warningId, senderId, warningType])};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
pressableBindingProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1UatJ0']);
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const iconProps2 = {style: styles.closeButtonIcon, source: importDefault(11299) /* metro dependency 11299 */};
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
const MEDIUM = IconSizes.MEDIUM;
iconProps2.size = MEDIUM;
const items2 = [<Pressable {...pressableBindingProps}><Icon {...iconProps2} /></Pressable>];
const view = <View style={styles.safetyShieldIconContainer}><Image style={styles.safetyShieldIcon} source={importDefault(11300) /* metro dependency 11300 */} resizeMode="contain" /></View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <View style={styles.contentContainer}>{view}<View style={styles.textContainer}><Text style={styles.text} variant="heading-md/semibold">{header}</Text><Text style={styles.text} variant="heading-sm/normal">{description}</Text></View></View>;
items2[2] = <View style={styles.buttonsContainer}>{buttons.map(_fun86216)}</View>;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function _fun86216(a0, a1) { // fn#86216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11484:1956, offset: 0x01f8c3fb, size: 119 bytes, params: 3, frame: 18
const value = environment.__proto__;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<Button
size="md"
variant={a0.variant ?? 'primary'}
text={a0.text}
accessibilityLabel={a0.text}
onPress={a0.onpress}
grow
key={a1}
/>
);
}