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

No files matched your search

@@ -1,13 +1,22 @@
/* Metro module 12690; source: modules/guild_antiraid/native/GuildAntiRaidReportModal.tsx; dependencies: [57, 31, 27, 12691, 33, 4501, 697, 1585, 4573, 3853, 6766, 1244, 6231, 8950, 4578, 5282, 11447, 5280, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as TableCheckboxRowNativeModule from '../../../design/components/TableRow/native/TableCheckboxRow.native.tsx'; /* Metro dependency 8950 */
import * as GuildReportRaidModalConstantsModule from '../GuildReportRaidModalConstants.tsx'; /* Metro dependency 12691 */
function _fun97239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:6, offset: 0x02178568, size: 404 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
let value = require(12691) /* metro dependency 12691: GuildReportRaidModalConstants */;
let value = GuildReportRaidModalConstantsModule;
const env0_6 = value.COMMUNITY_PORTAL_SERVER_SAFETY_PAGE;
const env0_7 = value.getReportRaidTypeLabel;
const env0_8 = value.REPORT_RAID_OPTIONS;
@@ -16,143 +25,175 @@ function _fun97239(global, require, importDefault, importAll, module, exports, d
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {'flex': 1, 'paddingHorizontal': 16, 'paddingVertical': 0, 'backgroundColor': null,
object.container = {'flex': 1, 'paddingHorizontal': 16, 'paddingVertical': 0, 'backgroundColor': null,
'flexDirection': 'column', 'height': '100%', 'paddingTop': 8, backgroundColor: BACKGROUND_BASE_LOW};
object2.headerSubtitle = {'textAlign': 'center', 'marginTop': 8};
object2.formBody = {marginTop: 24};
object2.formRow = {paddingVertical: 2};
object.headerSubtitle = {'textAlign': 'center', 'marginTop': 8};
object.formBody = {marginTop: 24};
object.formRow = {paddingVertical: 2};
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_11 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_antiraid/native/GuildAntiRaidReportModal.tsx');
object.submitButtonContainer = {'position': 'absolute', 'bottom': 0, 'left': 0, 'right': 0, 'paddingHorizontal': 16,
'paddingVertical': 16, backgroundColor: BACKGROUND_BASE_LOW};
const env0_11 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/guild_antiraid/native/GuildAntiRaidReportModal.tsx');
exports.default = GuildAntiRaidReportModal;
}
function ReportModal({raidTypes, onChange, onSubmit}) { // fn#97240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:719, offset: 0x021786fc, size: 540 bytes, params: 2, frame: 30
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const env0_3 = ReactModule.useCallback(_fun97241, [styles]);
const value2 = ReactModule.useCallback(function() {
importDefault(dependencyMap[9]).openURL(COMMUNITY_PORTAL_SERVER_SAFETY_PAGE);
}, []);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const Hg8Ee7 = (require(1244) /* metro dependency 1244: indexNative */).t.Hg8Ee7;
const items3 = [
<TextWithIOSLinkWorkaround
style={styles.headerSubtitle}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(format, intl, [Hg8Ee7, {onClick: value2}])}
</TextWithIOSLinkWorkaround>,
];
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
items3[1] = (
<View style={styles.formBody}>
<TableRowGroup hasIcons={false}>
{REPORT_RAID_OPTIONS.map(_fun97243)}
</TableRowGroup>
</View>
);
const items2 = [styles.submitButtonContainer];
items2[1] = {paddingBottom: bottom + 16};
const Button = (ButtonNativeModule).Button;
items3[2] = (
<View style={items2}>
<Button
size="md"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.geKm7t)}
onPress={onSubmit}
/>
</View>
);
return (
<View style={styles.container}>
{items3}
</View>
);
function _fun97241(a0) { // fn#97241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:823, offset: 0x02178918, size: 91 bytes, params: 2, frame: 15
const Text = (TextModule).Text;
return (
<Text
style={styles.formRow}
variant="text-md/semibold"
color="interactive-text-active"
>
{getReportRaidTypeLabel(a0)}
</Text>
);
}
function ReportModal({raidTypes, onChange, onSubmit}) { // fn#97240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:719, offset: 0x021786fc, size: 540 bytes, params: 2, frame: 30
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const env0_3 = env0_4.useCallback(_fun97241, [styles]);
const value2 = env0_4.useCallback(function() {
importDefault(dependencyMap[9]).openURL(COMMUNITY_PORTAL_SERVER_SAFETY_PAGE);
}, []);
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const Hg8Ee7 = (require(1244) /* metro dependency 1244: indexNative */).t.Hg8Ee7;
const items3 = [<TextWithIOSLinkWorkaround style={styles.headerSubtitle} variant="text-sm/medium" color="text-default">{Reflect.apply(format,
intl, [Hg8Ee7, {onClick: value2}])}</TextWithIOSLinkWorkaround>];
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
items3[1] = <View style={styles.formBody}><TableRowGroup hasIcons={false}>{REPORT_RAID_OPTIONS.map(_fun97243)}</TableRowGroup></View>;
const items2 = [styles.submitButtonContainer];
items2[1] = {paddingBottom: bottom + 16};
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items3[2] = <View style={items2}><Button size="md" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.geKm7t)} onPress={onSubmit} /></View>;
return (
<View style={styles.container}>
{items3}
</View>
);
}
function _fun97243(a0, a1) { // fn#97243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1281, offset: 0x0217899d, size: 138 bytes, params: 3, frame: 19
const env0_0 = a0;
const TableCheckboxRow = (TableCheckboxRowNativeModule).TableCheckboxRow;
return (
<TableCheckboxRow
start={a1 === 0}
end={a1 === REPORT_RAID_OPTIONS.length - 1}
label={env0_3(a0)}
checked={raidTypes.includes(a0)}
onPress={onPress_97244}
key={a0}
/>
);
function onPress_97244() { // fn#97244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1389, offset: 0x01e3bae8, size: 23 bytes, params: 1, frame: 11
return onChange(env0_0);
}
function GuildAntiRaidReportModal({onCloseModal, guildId}) { // fn#97245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1669, offset: 0x02178a27, size: 205 bytes, params: 2, frame: 20
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
const [property, env0_3] = env0_3Binding(env0_4.useState([]), 2);
const value4 = env0_4.useMemo(_fun97246, [onCloseModal, property, guildId]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
return (
<Navigator
screens={value4}
initialRouteName="REPORT_RAID"
headerStatusBarHeight={top}
/>
);
}
}
function _fun97241(a0) { // fn#97241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:823, offset: 0x02178918, size: 91 bytes, params: 2, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
style={styles.formRow}
variant="text-md/semibold"
color="interactive-text-active"
>
{getReportRaidTypeLabel(a0)}
</Text>
);
}
function _fun97243(a0, a1) { // fn#97243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1281, offset: 0x0217899d, size: 138 bytes, params: 3, frame: 19
const env0_0 = a0;
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
return (
<TableCheckboxRow
start={a1 === 0}
end={a1 === REPORT_RAID_OPTIONS.length - 1}
label={env0_3(a0)}
checked={raidTypes.includes(a0)}
onPress={onPress_97244}
key={a0}
/>
);
}
function _fun97246() { // fn#97246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1804, offset: 0x02178af4, size: 65 bytes, params: 1, frame: 12
return getScreens_97247({onCloseModal: onCloseModal, raidTypes: env0_2, onChange: onChange_97249,
onSubmit: onSubmit_97252});
}
function getScreens_97247({onCloseModal, raidTypes, onChange, onSubmit}) { // fn#97247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1808, offset: 0x02178b35, size: 171 bytes, params: 2, frame: 18
var environment;
const object = {ignoreKeyboard: true};
const value = environment.__proto__.__proto__;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uYPGsS);
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onCloseModal);
object.render = render_97248;
return {['REPORT_RAID']: object};
}
function onChange_97249(a0) { // fn#97249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:2102, offset: 0x02178c15, size: 32 bytes, params: 2, frame: 11
const env0_0 = a0;
env1_3(_fun97250);
}
function onSubmit_97252() { // fn#97252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:2168, offset: 0x02178c83, size: 78 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
value = require(11447) /* metro dependency 11447: GuildAntiRaidActionCreators */;
const trackReportRaidViewed = value.trackReportRaidViewed;
const guildIdBinding = guildId;
Reflect.apply(trackReportRaidViewed, value, [guildIdBinding, env1_2]);
(require(11447) /* metro dependency 11447: GuildAntiRaidActionCreators */).handleReportRaid(guildIdBinding);
onCloseModal();
}
function getScreens_97247Render() { // fn#97248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:2007, owner: getScreens_97247.render, offset: 0x02178be0, size: 53 bytes, params: 1, frame: 14
return (
<ReportModal
raidTypes={raidTypes}
onChange={onChange}
onSubmit={onSubmit}
/>
);
}
function _fun97250(a0) { // fn#97250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:2109, offset: 0x02178c35, size: 78 bytes, params: 2, frame: 14
var r0;
var items2;
var value2;
if (a0.includes(env0_0)) {
r0 = a0.filter(_fun97251);
} else {
items2 = [];
value2 = arraySpread(items2, a0, 0, a0);
items2[value2] = env0_0;
value2 + 1;
r0 = items2;
}
return r0;
function GuildAntiRaidReportModal({onCloseModal, guildId}) { // fn#97245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1669, offset: 0x02178a27, size: 205 bytes, params: 2, frame: 20
const top = (UseSafeAreaInsetsNative)().top;
const [property, env0_3] = env0_3Binding(ReactModule.useState([]), 2);
const value4 = ReactModule.useMemo(_fun97246, [onCloseModal, property, guildId]);
const Navigator = (NavigatorNativeModule).Navigator;
return (
<Navigator
screens={value4}
initialRouteName="REPORT_RAID"
headerStatusBarHeight={top}
/>
);
function _fun97246() { // fn#97246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1804, offset: 0x02178af4, size: 65 bytes, params: 1, frame: 12
return getScreens_97247({onCloseModal: onCloseModal, raidTypes: env0_2, onChange: onChange_97249,
onSubmit: onSubmit_97252});
function getScreens_97247({onCloseModal, raidTypes, onChange, onSubmit}) { // fn#97247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:1808, offset: 0x02178b35, size: 171 bytes, params: 2, frame: 18
var environment;
const object2 = {ignoreKeyboard: true};
const value = environment.__proto__.__proto__;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uYPGsS);
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onCloseModal);
object2.render = render_97248;
return {['REPORT_RAID']: object2};
function getScreens_97247Render() { // fn#97248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:2007, owner: getScreens_97247.render, offset: 0x02178be0, size: 53 bytes, params: 1, frame: 14
return (
<ReportModal
raidTypes={raidTypes}
onChange={onChange}
onSubmit={onSubmit}
/>
);
}
}
function onChange_97249(a0) { // fn#97249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:2102, offset: 0x02178c15, size: 32 bytes, params: 2, frame: 11
const env0_0 = a0;
env1_3(_fun97250);
function _fun97250(a0) { // fn#97250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:2109, offset: 0x02178c35, size: 78 bytes, params: 2, frame: 14
var r0;
var items2;
var value2;
if (a0.includes(env0_0)) {
r0 = a0.filter(_fun97251);
} else {
items2 = [];
value2 = arraySpread(items2, a0, 0, a0);
items2[value2] = env0_0;
value2 + 1;
r0 = items2;
}
return r0;
function _fun97251(a0) { // fn#97251, offset: 0x01379260, size: 16 bytes, params: 2, frame: 2
return a0 !== env1_0;
}
}
}
function onSubmit_97252() { // fn#97252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12880:2168, offset: 0x02178c83, size: 78 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
value = require(11447) /* metro dependency 11447: GuildAntiRaidActionCreators */;
const trackReportRaidViewed = value.trackReportRaidViewed;
const guildIdBinding = guildId;
Reflect.apply(trackReportRaidViewed, value, [guildIdBinding, env1_2]);
(require(11447) /* metro dependency 11447: GuildAntiRaidActionCreators */).handleReportRaid(guildIdBinding);
onCloseModal();
}
}
}
}
global.__d(_fun97239, 12690, [57, 31, 27, 12691, 33, 4501, 697, 1585, 4573, 3853, 6766, 1244, 6231, 8950, 4578,
5282, 11447, 5280,
2]) /* metro module 12690, dependencies: [57, 31, 27, 12691, 33, 4501, 697, 1585, 4573, 3853, 6766, 1244, 6231, 8950, 4578, 5282, 11447, 5280, 2] */;
@@ -1,228 +1,288 @@
/* Metro module 11445; source: modules/guild_antiraid/native/GuildIncidentActionsActionSheet.tsx; dependencies: [31, 10906, 11446, 8276, 661, 33, 4501, 6805, 6758, 1244, 6807, 632, 8275, 4080, 1305, 6238, 6231, 6808, 9149, 8129, 6261, 4578, 11447, 683, 11448, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import GuildIncidentsStore from '../GuildIncidentsStore.tsx'; /* Metro dependency 10906 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ActionSheetActionCreatorsModule from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as ActionSheetRowNativeModule from '../../../design/components/Sheet/native/ActionSheetRow.native.tsx'; /* Metro dependency 6807 */
import * as TableSwitchRowNativeModule from '../../../design/components/TableRow/native/TableSwitchRow.native.tsx'; /* Metro dependency 6808 */
import * as GuildAntiRaidUtilsModule from '../GuildAntiRaidUtils.tsx'; /* Metro dependency 8275 */
import * as GuildAntiRaidConstantsModule from '../GuildAntiRaidConstants.tsx'; /* Metro dependency 8276 */
import * as GuildIncidentsActionSheetStoreModule from './GuildIncidentsActionSheetStore.tsx'; /* Metro dependency 11446 */
import * as GuildAntiRaidActionCreatorsModule from '../GuildAntiRaidActionCreators.tsx'; /* Metro dependency 11447 */
function _fun87602(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:6, offset: 0x01fc5006, size: 354 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const guildIncidentsStore = importDefault(10906) /* metro dependency 10906: GuildIncidentsStore */;
let value = require(11446) /* metro dependency 11446: GuildIncidentsActionSheetStore */;
let value = GuildIncidentsActionSheetStoreModule;
const env0_5 = value.resetGuildIncidentsActionSheetStore;
const env0_6 = value.setInitialTime;
const env0_7 = value.setPauseDms;
const env0_8 = value.setPauseInvites;
const env0_9 = value.setTime;
const env0_10 = value.useGuildIncidentsActionSheetStore;
const env0_11 = (require(8276) /* metro dependency 8276: GuildAntiRaidConstants */).getTimeframes;
value = require(661) /* metro dependency 661: Constants */;
const env0_12 = value.AnalyticEvents;
const env0_13 = value.GuildFeatures;
value = require(33) /* metro dependency 33 */;
const env0_14 = value.jsx;
const env0_15 = value.jsxs;
const env0_16 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({beta: {marginLeft: -12}});
const closure = GuildIncidentActionsActionSheet;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_antiraid/native/GuildIncidentActionsActionSheet.tsx');
exports.default = closure;
}
const env0_16 = (CreateStylesModule).createStyles({beta: {marginLeft: -12}});
const GuildIncidentActionsActionSheet2 = GuildIncidentActionsActionSheet;
(FileImportTrackerModule).fileFinishedImporting('modules/guild_antiraid/native/GuildIncidentActionsActionSheet.tsx');
exports.default = GuildIncidentActionsActionSheet2;
function DurationSelectionActionSheet({onClose}) { // fn#87603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:446, offset: 0x01fc5168, size: 225 bytes, params: 2, frame: 23
const timeframes = getTimeframes();
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const intl = (IndexNativeModule).intl;
const bottomSheetTitleHeader = (
<BottomSheetTitleHeader title={intl.string((IndexNativeModule).t.vKYZzc)} />
);
const ActionSheetRow = (ActionSheetRowNativeModule).ActionSheetRow;
const Group = ActionSheetRow.Group;
return (
<ActionSheet>
{bottomSheetTitleHeader}
<Group hasIcons={false}>
{timeframes.map(_fun87604)}
</Group>
</ActionSheet>
);
function _fun87604(a0) { // fn#87604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:653, offset: 0x01fc5249, size: 80 bytes, params: 2, frame: 17
var environment;
const env0_0 = a0;
const value = environment.__proto__;
const ActionSheetRow = (ActionSheetRowNativeModule).ActionSheetRow;
return (
<ActionSheetRow
label={a0.label}
onPress={onPress_87605}
key={a0.value}
/>
);
function onPress_87605() { // fn#87605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:705, offset: 0x01fc5299, size: 39 bytes, params: 1, frame: 11
let value = environment.__proto__.__proto__;
setTime(env0_0.value);
value = environment.__proto__;
onClose();
}
function DurationSelectionActionSheet({onClose}) { // fn#87603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:446, offset: 0x01fc5168, size: 225 bytes, params: 2, frame: 23
const timeframes = getTimeframes();
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const bottomSheetTitleHeader = <BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vKYZzc)} />;
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
const Group = ActionSheetRow.Group;
return (
<ActionSheet>
{bottomSheetTitleHeader}
<Group hasIcons={false}>
{timeframes.map(_fun87604)}
</Group>
</ActionSheet>
);
}
}
function GuildIncidentActionsActionSheet({guild, analyticsData}) { // fn#87606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:776, offset: 0x01fc52c0, size: 1608 bytes, params: 2, frame: 39
var object2;
const styles = useStyles();
const value3 = useGuildIncidentsActionSheetStore();
const time = value3.time;
const pauseInvites = value3.pauseInvites;
const env0_3 = pauseInvites;
const pauseDms = value3.pauseDms;
const hasTimeChanges = value3.hasTimeChanges;
const guildIncident = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildIncidentsStore],
function() {
return GuildIncidentsStore.getGuildIncident(guild.id);
});
const hasInvitesDisabled2 = (require(8275) /* metro dependency 8275: GuildAntiRaidUtils */).hasInvitesDisabled(guildIncident);
const hasDMsDisabled2 = (require(8275) /* metro dependency 8275: GuildAntiRaidUtils */).hasDMsDisabled(guildIncident);
const value4 = (require(8275) /* metro dependency 8275: GuildAntiRaidUtils */).initialLockdownDurationHours(guildIncident);
let r12 = guild == null ? undefined : guild.features.has(GuildFeatures.INVITES_DISABLED);
const binding = env0_3;
binding.useEffect(_fun87608, [hasDMsDisabled2, hasInvitesDisabled2]);
binding.useEffect(_fun87609, [value4]);
const value6 = binding.useMemo(_fun87610, [time]);
const closure = function() {
importDefault(dependencyMap[13]).hideActionSheet('GuildIncidentActionsActionSheet');
resetGuildIncidentsActionSheetStore();
};
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
object2 = {startExpanded: true};
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const oCYAc7 = (require(1244) /* metro dependency 1244: indexNative */).t.oCYAc7;
const BetaTag = (require(1305) /* metro dependency 1305: native */).BetaTag;
const BetaSizes = (require(1305) /* metro dependency 1305: native */).BetaSizes;
const SMALL = BetaSizes.SMALL;
object2.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl,
[oCYAc7])} leading={<BetaTag size={SMALL} style={styles.beta} />} />;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TrailingText = TableRow2.TrailingText;
const items2 = [<TableRow trailing={<TrailingText text={value6 ?? ''} />} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vKYZzc)} arrow onPress={onPress_87614} start end accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vKYZzc)} accessibilityHint={value6} />];
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
string = intl.string;
const Uwsjn6 = (require(1244) /* metro dependency 1244: indexNative */).t.Uwsjn6;
const tableSwitchRow = <TableSwitchRow label={Reflect.apply(string, intl,
[Uwsjn6])} subLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qPJkZh)} value={pauseInvites || r12} onValueChange={function() {
setPauseInvites(!pauseInvites);
}} disabled={r12} />;
if (r12) {
r12 = <TableRow icon={((Icon) => <Icon source={importDefault(9149) /* metro dependency 9149 */} IconComponent={(require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon} variant="secondary" />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9GPbsV'])} />;
}
items2[1] = <TableRowGroup hasIcons>{tableSwitchRow}{r12}</TableRowGroup>;
const tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['wrDmA/'])};
string = intl.string;
const UQbJW7 = (require(1244) /* metro dependency 1244: indexNative */).t.UQbJW7;
tableSwitchRowProps.subLabel = Reflect.apply(string, intl, [UQbJW7]);
tableSwitchRowProps.value = pauseDms;
tableSwitchRowProps.onValueChange = function() {
setPauseDms(!pauseDms);
};
tableSwitchRowProps.start = true;
tableSwitchRowProps.end = true;
items2[2] = <TableSwitchRow {...tableSwitchRowProps} />;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const buttonProps = {onPress: onPress_87617,
text: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+']), variant: 'primary',
size: 'md'};
let r15 = pauseInvites !== hasInvitesDisabled2 || pauseDms !== hasDMsDisabled2;
r15 = !r15 ? hasTimeChanges : r15;
buttonProps.disabled = !r15;
items2[3] = <ButtonGroup><Button {...buttonProps} /><Button onPress={closure} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} variant="secondary" size="md" /></ButtonGroup>;
return (
<ActionSheet {...object2}>
{items2}
</ActionSheet>
);
}
function _fun87604(a0) { // fn#87604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:653, offset: 0x01fc5249, size: 80 bytes, params: 2, frame: 17
var environment;
const env0_0 = a0;
const value = environment.__proto__;
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
return (
<ActionSheetRow
label={a0.label}
onPress={onPress_87605}
key={a0.value}
/>
);
}
function GuildIncidentActionsActionSheet({guild, analyticsData}) { // fn#87606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:776, offset: 0x01fc52c0, size: 1608 bytes, params: 2, frame: 39
const styles = useStyles();
const value3 = useGuildIncidentsActionSheetStore();
const time = value3.time;
const pauseInvites = value3.pauseInvites;
const pauseInvites2 = pauseInvites;
const pauseDms = value3.pauseDms;
const hasTimeChanges = value3.hasTimeChanges;
const guildIncident = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildIncidentsStore],
function() {
return GuildIncidentsStore.getGuildIncident(guild.id);
});
const hasInvitesDisabled2 = (GuildAntiRaidUtilsModule).hasInvitesDisabled(guildIncident);
const hasDMsDisabled2 = (GuildAntiRaidUtilsModule).hasDMsDisabled(guildIncident);
const value4 = (GuildAntiRaidUtilsModule).initialLockdownDurationHours(guildIncident);
let r12 = guild == null ? undefined : guild.features.has(GuildFeatures.INVITES_DISABLED);
const binding = pauseInvites2;
binding.useEffect(_fun87608, [hasDMsDisabled2, hasInvitesDisabled2]);
binding.useEffect(_fun87609, [value4]);
const value6 = binding.useMemo(_fun87610, [time]);
const closure = function() {
importDefault(dependencyMap[13]).hideActionSheet('GuildIncidentActionsActionSheet');
resetGuildIncidentsActionSheetStore();
};
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
object = {startExpanded: true};
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const oCYAc7 = (require(1244) /* metro dependency 1244: indexNative */).t.oCYAc7;
const BetaTag = (NativeModule).BetaTag;
const BetaSizes = (NativeModule).BetaSizes;
const SMALL = BetaSizes.SMALL;
object.header = (
<BottomSheetTitleHeader
title={Reflect.apply(string, intl, [oCYAc7])}
leading={<BetaTag size={SMALL} style={styles.beta} />}
/>
);
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TrailingText = TableRow2.TrailingText;
const items2 = [
<TableRow
trailing={<TrailingText text={value6 ?? ''} />}
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vKYZzc)}
arrow
onPress={onPress_87614}
start
end
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vKYZzc)}
accessibilityHint={value6}
/>,
];
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const TableSwitchRow = (TableSwitchRowNativeModule).TableSwitchRow;
string = intl.string;
const Uwsjn6 = (require(1244) /* metro dependency 1244: indexNative */).t.Uwsjn6;
const tableSwitchRow = (
<TableSwitchRow
label={Reflect.apply(string, intl, [Uwsjn6])}
subLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qPJkZh)}
value={pauseInvites || r12}
onValueChange={function() {
setPauseInvites(!pauseInvites);
}}
disabled={r12}
/>
);
if (r12) {
r12 = (
<TableRow
icon={((Icon) => <Icon source={importDefault(9149) /* metro dependency 9149 */} IconComponent={(require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon} variant="secondary" />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.Icon)}
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9GPbsV'])}
/>
);
}
items2[1] = (
<TableRowGroup hasIcons>
{tableSwitchRow}
{r12}
</TableRowGroup>
);
const tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['wrDmA/'])};
string = intl.string;
const UQbJW7 = (require(1244) /* metro dependency 1244: indexNative */).t.UQbJW7;
tableSwitchRowProps.subLabel = Reflect.apply(string, intl, [UQbJW7]);
tableSwitchRowProps.value = pauseDms;
tableSwitchRowProps.onValueChange = function() {
setPauseDms(!pauseDms);
};
tableSwitchRowProps.start = true;
tableSwitchRowProps.end = true;
items2[2] = <TableSwitchRow {...tableSwitchRowProps} />;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
const buttonProps = {onPress: onPress_87617,
text: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+']), variant: 'primary',
size: 'md'};
let r15 = pauseInvites !== hasInvitesDisabled2 || pauseDms !== hasDMsDisabled2;
r15 = !r15 ? hasTimeChanges : r15;
buttonProps.disabled = !r15;
items2[3] = (
<ButtonGroup>
<Button {...buttonProps} />
<Button
onPress={closure}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
variant="secondary"
size="md"
/>
</ButtonGroup>
);
return (
<ActionSheet {...object}>
{items2}
</ActionSheet>
);
function _fun87608() { // fn#87608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1116, offset: 0x01fc5928, size: 36 bytes, params: 1, frame: 13
setPauseInvites(env0_5);
setPauseDms(env0_6);
}
function _fun87608() { // fn#87608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1116, offset: 0x01fc5928, size: 36 bytes, params: 1, frame: 13
setPauseInvites(env0_5);
setPauseDms(env0_6);
}
function _fun87609() { // fn#87609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1153, offset: 0x01fc594c, size: 48 bytes, params: 1, frame: 11
const getState = useGuildIncidentsActionSheetStore.getState;
if (!Reflect.apply(getState, useGuildIncidentsActionSheetStore, []).hasTimeChanges) {
setInitialTime(env0_7);
}
}
function _fun87610() { // fn#87610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1216, offset: 0x01fc597c, size: 49 bytes, params: 1, frame: 12
var environment;
let value = environment.__proto__;
const getTimeframesBinding = getTimeframes;
value = undefined;
const value3 = getTimeframesBinding().find(function({value}) {
return value === time;
});
return value3 == null ? value : value3.label;
}
function onDurationSelectorClose() { // fn#87612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1317, owner: GuildIncidentActionsActionSheet.onDurationSelectorClose, offset: 0x01fc59c2, size: 90 bytes, params: 1, frame: 18
const showActionSheet = ActionSheetActionCreatorsModule.showActionSheet;
const object = {};
object.content = <GuildIncidentActionsActionSheet guild={guild} analyticsData={analyticsData} />;
object.key = 'GuildIncidentActionsActionSheet';
Reflect.apply(showActionSheet, ActionSheetActionCreatorsModule, [object]);
}
function GuildIncidentActionsActionSheetOnPress_87614() { // fn#87614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1902, owner: GuildIncidentActionsActionSheet.onPress, offset: 0x01fc5a50, size: 82 bytes, params: 1, frame: 17
const showActionSheet = ActionSheetActionCreatorsModule.showActionSheet;
const object = {};
object.content = <DurationSelectionActionSheet onClose={onDurationSelectorClose} />;
object.key = 'DurationSelectionActionSheet';
Reflect.apply(showActionSheet, ActionSheetActionCreatorsModule, [object]);
}
function GuildIncidentActionsActionSheetOnPress_87617() { // fn#87617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:2770, owner: GuildIncidentActionsActionSheet.onPress, offset: 0x01fc5ad6, size: 355 bytes, params: 1, frame: 27
var moduleValue4;
var showActionSheet;
const value = environment.__proto__;
const setGuildIncidentActions = GuildAntiRaidActionCreatorsModule.setGuildIncidentActions;
const guildBinding = guild;
const id = guildBinding.id;
const pauseInvitesBinding = pauseInvites;
const pauseDmsBinding = pauseDms;
const timeBinding = time;
Reflect.apply(setGuildIncidentActions, GuildAntiRaidActionCreatorsModule, [id, pauseInvitesBinding, pauseDmsBinding,
timeBinding]);
onPress_87613();
const {source, alertType, messageId} = analyticsData;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const GUILD_RAID_INTERVENTION_STATE_CHANGE = AnalyticEvents.GUILD_RAID_INTERVENTION_STATE_CHANGE;
let object = {};
object.guild_id = guildBinding.id;
object.source = source;
object.raid_alert_id = messageId;
object.raid_alert_type = alertType;
object.intervention_type_enabled = (require(8275) /* metro dependency 8275: GuildAntiRaidUtils */).getEnabledInterventions(pauseInvitesBinding,
pauseDmsBinding);
object.intervention_type_disabled = (require(8275) /* metro dependency 8275: GuildAntiRaidUtils */).getDisabledInterventions(pauseInvitesBinding,
pauseDmsBinding);
object.duration = 60 * timeBinding;
Reflect.apply(track, defaultImport, [GUILD_RAID_INTERVENTION_STATE_CHANGE, object]);
let r1 = !env0_5 && !env0_6;
r1 = !r1 ? pauseInvites : r1;
r1 = !r1 ? pauseDms : r1;
if (!r1) {
moduleValue4 = require(4080) /* metro dependency 4080: ActionSheetActionCreators */;
showActionSheet = moduleValue4.showActionSheet;
object = {};
object.content = ((Component) => <Component guildId={guild.id} />)(importDefault(11448) /* metro dependency 11448: GuildRaidLockdownFeedbackActionSheet */);
object.key = 'GuildRaidLockdownFeedbackActionSheet';
Reflect.apply(showActionSheet, moduleValue4, [object]);
}
}
function _fun87609() { // fn#87609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1153, offset: 0x01fc594c, size: 48 bytes, params: 1, frame: 11
const getState = useGuildIncidentsActionSheetStore.getState;
if (!Reflect.apply(getState, useGuildIncidentsActionSheetStore, []).hasTimeChanges) {
setInitialTime(env0_7);
}
}
function _fun87610() { // fn#87610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1216, offset: 0x01fc597c, size: 49 bytes, params: 1, frame: 12
var environment;
let value = environment.__proto__;
const getTimeframesBinding = getTimeframes;
value = undefined;
const value3 = getTimeframesBinding().find(function({value}) {
return value === time;
});
return value3 == null ? value : value3.label;
}
function onDurationSelectorClose() { // fn#87612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1317, owner: GuildIncidentActionsActionSheet.onDurationSelectorClose, offset: 0x01fc59c2, size: 90 bytes, params: 1, frame: 18
const actionSheetActionCreatorsModule = require(4080) /* metro dependency 4080: ActionSheetActionCreators */;
const showActionSheet = actionSheetActionCreatorsModule.showActionSheet;
const object2 = {};
object2.content = <GuildIncidentActionsActionSheet guild={guild} analyticsData={analyticsData} />;
object2.key = 'GuildIncidentActionsActionSheet';
Reflect.apply(showActionSheet, actionSheetActionCreatorsModule, [object2]);
}
function GuildIncidentActionsActionSheetOnPress_87614() { // fn#87614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:1902, owner: GuildIncidentActionsActionSheet.onPress, offset: 0x01fc5a50, size: 82 bytes, params: 1, frame: 17
const actionSheetActionCreatorsModule = require(4080) /* metro dependency 4080: ActionSheetActionCreators */;
const showActionSheet = actionSheetActionCreatorsModule.showActionSheet;
const object2 = {};
object2.content = <DurationSelectionActionSheet onClose={onDurationSelectorClose} />;
object2.key = 'DurationSelectionActionSheet';
Reflect.apply(showActionSheet, actionSheetActionCreatorsModule, [object2]);
}
function GuildIncidentActionsActionSheetOnPress_87617() { // fn#87617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:2770, owner: GuildIncidentActionsActionSheet.onPress, offset: 0x01fc5ad6, size: 355 bytes, params: 1, frame: 27
var moduleValue4;
var showActionSheet;
const value = environment.__proto__;
const guildAntiRaidActionCreatorsModule = require(11447) /* metro dependency 11447: GuildAntiRaidActionCreators */;
const setGuildIncidentActions = guildAntiRaidActionCreatorsModule.setGuildIncidentActions;
const guildBinding = guild;
const id = guildBinding.id;
const pauseInvitesBinding = pauseInvites;
const pauseDmsBinding = pauseDms;
const timeBinding = time;
Reflect.apply(setGuildIncidentActions, guildAntiRaidActionCreatorsModule, [id, pauseInvitesBinding, pauseDmsBinding,
timeBinding]);
onPress_87613();
const {source, alertType, messageId} = analyticsData;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const GUILD_RAID_INTERVENTION_STATE_CHANGE = AnalyticEvents.GUILD_RAID_INTERVENTION_STATE_CHANGE;
let object2 = {};
object2.guild_id = guildBinding.id;
object2.source = source;
object2.raid_alert_id = messageId;
object2.raid_alert_type = alertType;
object2.intervention_type_enabled = (require(8275) /* metro dependency 8275: GuildAntiRaidUtils */).getEnabledInterventions(pauseInvitesBinding,
pauseDmsBinding);
object2.intervention_type_disabled = (require(8275) /* metro dependency 8275: GuildAntiRaidUtils */).getDisabledInterventions(pauseInvitesBinding,
pauseDmsBinding);
object2.duration = 60 * timeBinding;
Reflect.apply(track, defaultImport, [GUILD_RAID_INTERVENTION_STATE_CHANGE, object2]);
let r1 = !env0_5 && !env0_6;
r1 = !r1 ? pauseInvites : r1;
r1 = !r1 ? pauseDms : r1;
if (!r1) {
moduleValue4 = require(4080) /* metro dependency 4080: ActionSheetActionCreators */;
showActionSheet = moduleValue4.showActionSheet;
object2 = {};
object2.content = ((Component) => <Component guildId={guild.id} />)(importDefault(11448) /* metro dependency 11448: GuildRaidLockdownFeedbackActionSheet */);
object2.key = 'GuildRaidLockdownFeedbackActionSheet';
Reflect.apply(showActionSheet, moduleValue4, [object2]);
}
}
function onPress_87605() { // fn#87605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11631:705, offset: 0x01fc5299, size: 39 bytes, params: 1, frame: 11
let value = environment.__proto__.__proto__;
setTime(env0_0.value);
value = environment.__proto__;
onClose();
}
global.__d(_fun87602, 11445, [31, 10906, 11446, 8276, 661, 33, 4501, 6805, 6758, 1244, 6807, 632, 8275, 4080, 1305,
6238, 6231, 6808, 9149, 8129, 6261, 4578, 11447, 683, 11448,
2]) /* metro module 11445, dependencies: [31, 10906, 11446, 8276, 661, 33, 4501, 6805, 6758, 1244, 6807, 632, 8275, 4080, 1305, 6238, 6231, 6808, 9149, 8129, 6261, 4578, 11447, 683, 11448, 2] */;
@@ -1,65 +1,70 @@
/* Metro module 11446; source: modules/guild_antiraid/native/GuildIncidentsActionSheetStore.tsx; dependencies: [8276, 629, 690, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00629Module from '../../../by-id/module-00629.js'; /* Metro dependency 629 */
import * as ReactBatchUpdatesNativeModule from '../../../external/discord_common/js/shared/utils/ReactBatchUpdates.native.tsx'; /* Metro dependency 690 */
import * as GuildAntiRaidConstantsModule from '../GuildAntiRaidConstants.tsx'; /* Metro dependency 8276 */
function _fun87618(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:6, offset: 0x01fc5c39, size: 208 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(8276) /* metro dependency 8276: GuildAntiRaidConstants */).DEFAULT_LOCKDOWN_DURATION;
let value = require(629) /* metro dependency 629 */;
let value = Module00629Module;
value = value.create(function() {
return {'time': null, 'pauseInvites': true, 'pauseDms': true, 'hasTimeChanges': false,
time: DEFAULT_LOCKDOWN_DURATION};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_antiraid/native/GuildIncidentsActionSheetStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_antiraid/native/GuildIncidentsActionSheetStore.tsx');
exports.useGuildIncidentsActionSheetStore = value;
exports.setTime = setTime;
exports.setInitialTime = setInitialTime;
exports.setPauseInvites = setPauseInvites;
exports.setPauseDms = setPauseDms;
exports.resetGuildIncidentsActionSheetStore = resetGuildIncidentsActionSheetStore;
function setTime(a0) { // fn#87620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:359, offset: 0x01fc5d26, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun87621);
function _fun87621() { // fn#87621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:401, offset: 0x01fc5d5c, size: 41 bytes, params: 1, frame: 12
return env1_3.setState({time: env0_0, hasTimeChanges: true});
}
}
function setInitialTime(a0) { // fn#87622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:464, offset: 0x01fc5d85, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun87623);
function _fun87623() { // fn#87623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:513, offset: 0x01fc5dbb, size: 41 bytes, params: 1, frame: 12
return env1_3.setState({time: env0_0, hasTimeChanges: false});
}
}
function setPauseInvites(a0) { // fn#87624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:577, offset: 0x01fc5de4, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun87625);
function _fun87625() { // fn#87625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:627, offset: 0x01fc5e1a, size: 34 bytes, params: 1, frame: 12
return env1_3.setState({pauseInvites: env0_0});
}
}
function setPauseDms(a0) { // fn#87626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:677, offset: 0x01fc5e3c, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun87627);
function _fun87627() { // fn#87627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:723, offset: 0x01fc5e72, size: 34 bytes, params: 1, frame: 12
return env1_3.setState({pauseDms: env0_0});
}
}
function resetGuildIncidentsActionSheetStore() { // fn#87628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:793, offset: 0x01fc5e94, size: 47 bytes, params: 1, frame: 12
(ReactBatchUpdatesNativeModule).batchUpdates(_fun87629);
function _fun87629() { // fn#87629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:862, offset: 0x01fc5ec3, size: 46 bytes, params: 1, frame: 12
env1_3.setState({'time': null, 'pauseInvites': true, 'pauseDms': true, 'hasTimeChanges': false,
time: DEFAULT_LOCKDOWN_DURATION});
}
}
}
function setTime(a0) { // fn#87620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:359, offset: 0x01fc5d26, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun87621);
}
function setInitialTime(a0) { // fn#87622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:464, offset: 0x01fc5d85, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun87623);
}
function setPauseInvites(a0) { // fn#87624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:577, offset: 0x01fc5de4, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun87625);
}
function setPauseDms(a0) { // fn#87626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:677, offset: 0x01fc5e3c, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun87627);
}
function resetGuildIncidentsActionSheetStore() { // fn#87628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:793, offset: 0x01fc5e94, size: 47 bytes, params: 1, frame: 12
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun87629);
}
function _fun87621() { // fn#87621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:401, offset: 0x01fc5d5c, size: 41 bytes, params: 1, frame: 12
return env1_3.setState({time: env0_0, hasTimeChanges: true});
}
function _fun87623() { // fn#87623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:513, offset: 0x01fc5dbb, size: 41 bytes, params: 1, frame: 12
return env1_3.setState({time: env0_0, hasTimeChanges: false});
}
function _fun87625() { // fn#87625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:627, offset: 0x01fc5e1a, size: 34 bytes, params: 1, frame: 12
return env1_3.setState({pauseInvites: env0_0});
}
function _fun87627() { // fn#87627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:723, offset: 0x01fc5e72, size: 34 bytes, params: 1, frame: 12
return env1_3.setState({pauseDms: env0_0});
}
function _fun87629() { // fn#87629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11632:862, offset: 0x01fc5ec3, size: 46 bytes, params: 1, frame: 12
env1_3.setState({'time': null, 'pauseInvites': true, 'pauseDms': true, 'hasTimeChanges': false,
time: DEFAULT_LOCKDOWN_DURATION});
}
global.__d(_fun87618, 11446, [8276, 629, 690, 2]) /* metro module 11446, dependencies: [8276, 629, 690, 2] */;
@@ -1,133 +1,172 @@
/* Metro module 11448; source: modules/guild_antiraid/native/GuildRaidLockdownFeedbackActionSheet.tsx; dependencies: [57, 31, 661, 33, 4501, 1244, 5061, 4080, 6805, 6758, 5467, 6231, 8950, 7681, 4578, 4863, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import KeyboardAwareView from '../../keyboard/native/KeyboardAwareView.tsx'; /* Metro dependency 5467 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as AppAnalyticsUtilsModule from '../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import * as AutomodFeedbackModule from '../../guild_automod/AutomodFeedback.tsx'; /* Metro dependency 5061 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as TableCheckboxRowNativeModule from '../../../design/components/TableRow/native/TableCheckboxRow.native.tsx'; /* Metro dependency 8950 */
function _fun87648(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:6, offset: 0x01fc64ce, size: 235 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'display': 'flex',
const env0_8 = (CreateStylesModule).createStyles({container: {'display': 'flex',
'gap': 24}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_antiraid/native/GuildRaidLockdownFeedbackActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_antiraid/native/GuildRaidLockdownFeedbackActionSheet.tsx');
exports.default = _default_87649;
}
function _default_87649({guildId}) { // fn#87649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:237, offset: 0x01fc65b9, size: 1092 bytes, params: 2, frame: 29
var r9;
var TextArea;
var object5;
const styles = useStyles();
const binding = env0_4;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [[]]);
const binding2 = env0_3;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_2 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, []), 2);
const property2 = value4[0];
var env0_4 = value4[1];
let object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.text = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['//3pvi']]);
const RaidLockdownFeedbackType = (require(5061) /* metro dependency 5061: AutomodFeedback */).RaidLockdownFeedbackType;
const DM_SPAM = RaidLockdownFeedbackType.DM_SPAM;
object2.value = DM_SPAM;
const items2 = [object2];
string = intl.string;
const SdVsip = (require(1244) /* metro dependency 1244: indexNative */).t.SdVsip;
const MENTION_SPAM = RaidLockdownFeedbackType.MENTION_SPAM;
items2[1] = {text: Reflect.apply(string, intl, [SdVsip]), value: MENTION_SPAM};
object2 = {};
object2.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uTiSVL);
const CHANNEL_SPAM = RaidLockdownFeedbackType.CHANNEL_SPAM;
object2.value = CHANNEL_SPAM;
items2[2] = object2;
string = intl.string;
const GQczU8 = (require(1244) /* metro dependency 1244: indexNative */).t.GQczU8;
const SUS_NEW_MEMBERS = RaidLockdownFeedbackType.SUS_NEW_MEMBERS;
items2[3] = {text: Reflect.apply(string, intl, [GQczU8]), value: SUS_NEW_MEMBERS};
string = intl.string;
const AAgqy3 = (require(1244) /* metro dependency 1244: indexNative */).t.AAgqy3;
const CHANGING_SETTINGS = RaidLockdownFeedbackType.CHANGING_SETTINGS;
items2[4] = {text: Reflect.apply(string, intl, [AAgqy3]), value: CHANGING_SETTINGS};
object2 = {};
object2.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ryPKb7);
let OTHER = RaidLockdownFeedbackType.OTHER;
object2.value = OTHER;
items2[5] = object2;
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
object2 = {startExpanded: true};
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
object2.header = <BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.f5hd9P)} />;
const KeyboardAwareView = importDefault(5467) /* metro dependency 5467: KeyboardAwareView */;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const tableRowGroup = <TableRowGroup hasIcons={false}>{items2.map(_fun87650)}</TableRowGroup>;
const includes = property.includes;
OTHER = RaidLockdownFeedbackType.OTHER;
const value6 = Reflect.apply(includes, property, [OTHER]);
if (value6) {
TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
r9 = <TextArea autoComplete="off" value={property2} placeholder={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['PAM+JR'])} onChange={onChange_87656} />;
} else {
r9 = value6;
}
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<ActionSheet {...object2}>
<KeyboardAwareView style={styles.container}>
{tableRowGroup}
{r9}
<Button
onPress={onPress_87657}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nAt0rE)}
function _default_87649({guildId}) { // fn#87649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:237, offset: 0x01fc65b9, size: 1092 bytes, params: 2, frame: 29
var r9;
var TextArea;
var object2;
const styles = useStyles();
const binding = env0_4;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [[]]);
const value3 = Module00057(value2, 2);
const property = value3[0];
const env0_2 = value3[1];
useState = binding.useState;
const value4 = Module00057(Reflect.apply(useState, binding, []), 2);
const property2 = value4[0];
var env0_4 = value4[1];
let object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.text = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['//3pvi']]);
const RaidLockdownFeedbackType = (AutomodFeedbackModule).RaidLockdownFeedbackType;
const DM_SPAM = RaidLockdownFeedbackType.DM_SPAM;
object.value = DM_SPAM;
const items2 = [object];
string = intl.string;
const SdVsip = (require(1244) /* metro dependency 1244: indexNative */).t.SdVsip;
const MENTION_SPAM = RaidLockdownFeedbackType.MENTION_SPAM;
items2[1] = {text: Reflect.apply(string, intl, [SdVsip]), value: MENTION_SPAM};
object = {};
object.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uTiSVL);
const CHANNEL_SPAM = RaidLockdownFeedbackType.CHANNEL_SPAM;
object.value = CHANNEL_SPAM;
items2[2] = object;
string = intl.string;
const GQczU8 = (require(1244) /* metro dependency 1244: indexNative */).t.GQczU8;
const SUS_NEW_MEMBERS = RaidLockdownFeedbackType.SUS_NEW_MEMBERS;
items2[3] = {text: Reflect.apply(string, intl, [GQczU8]), value: SUS_NEW_MEMBERS};
string = intl.string;
const AAgqy3 = (require(1244) /* metro dependency 1244: indexNative */).t.AAgqy3;
const CHANGING_SETTINGS = RaidLockdownFeedbackType.CHANGING_SETTINGS;
items2[4] = {text: Reflect.apply(string, intl, [AAgqy3]), value: CHANGING_SETTINGS};
object = {};
object.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ryPKb7);
let OTHER = RaidLockdownFeedbackType.OTHER;
object.value = OTHER;
items2[5] = object;
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
object = {startExpanded: true};
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
object.header = (
<BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.f5hd9P)} />
);
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const tableRowGroup = (
<TableRowGroup hasIcons={false}>
{items2.map(_fun87650)}
</TableRowGroup>
);
const includes = property.includes;
OTHER = RaidLockdownFeedbackType.OTHER;
const value6 = Reflect.apply(includes, property, [OTHER]);
if (value6) {
TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
r9 = (
<TextArea
autoComplete="off"
value={property2}
placeholder={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['PAM+JR'])}
onChange={onChange_87656}
/>
</KeyboardAwareView>
</ActionSheet>
);
}
function _fun87650({text, value}) { // fn#87650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1163, offset: 0x01fc69fd, size: 102 bytes, params: 2, frame: 18
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
return (
<TableCheckboxRow
onPress={function() {
_fun87652(value);
}}
checked={env0_1.includes(value)}
label={text}
key={value}
/>
);
}
function _default_87649OnPress() { // fn#87657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1565, owner: _default_87649.onPress, offset: 0x01fc6ace, size: 117 bytes, params: 1, frame: 18
const value = environment.__proto__;
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
const GUILD_RAID_LOCKDOWN_FEEDBACK = AnalyticEvents.GUILD_RAID_LOCKDOWN_FEEDBACK;
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [GUILD_RAID_LOCKDOWN_FEEDBACK,
{raid_lockdown_feedback_type: env0_1, raid_lockdown_feedback_other_reason: env0_3, guild_id: guildId}]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('GuildRaidLockdownFeedbackActionSheet');
}
function onPress_87651() { // fn#87651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1220, offset: 0x01fc6a63, size: 25 bytes, params: 1, frame: 11
onPress_87651OnCheckboxChange(value);
}
function onPress_87651OnCheckboxChange(a0) { // fn#87652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1224, owner: onPress_87651.onCheckboxChange, offset: 0x01fc6a7c, size: 58 bytes, params: 2, frame: 13
const env0_0 = a0;
env2_2(env2_1.includes(a0) ? function(a0) {
return a0.filter(_fun87654);
} : _fun87655);
}
function _fun87653(a0) { // fn#87653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1277, offset: 0x01fc6ab6, size: 24 bytes, params: 2, frame: 11
return a0.filter(_fun87654);
);
} else {
r9 = value6;
}
const Button = (ButtonNativeModule).Button;
return (
<ActionSheet {...object}>
<KeyboardAwareView style={styles.container}>
{tableRowGroup}
{r9}
<Button
onPress={onPress_87657}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nAt0rE)}
/>
</KeyboardAwareView>
</ActionSheet>
);
function _fun87650({text, value}) { // fn#87650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1163, offset: 0x01fc69fd, size: 102 bytes, params: 2, frame: 18
const TableCheckboxRow = (TableCheckboxRowNativeModule).TableCheckboxRow;
return (
<TableCheckboxRow
onPress={function() {
_fun87652(value);
}}
checked={env0_1.includes(value)}
label={text}
key={value}
/>
);
function onPress_87651() { // fn#87651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1220, offset: 0x01fc6a63, size: 25 bytes, params: 1, frame: 11
onCheckboxChange(value);
function onCheckboxChange(a0) { // fn#87652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1224, owner: onPress_87651.onCheckboxChange, offset: 0x01fc6a7c, size: 58 bytes, params: 2, frame: 13
const env0_0 = a0;
env2_2(env2_1.includes(a0) ? function(a0) {
return a0.filter(_fun87654);
} : _fun87655);
function _fun87653(a0) { // fn#87653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1277, offset: 0x01fc6ab6, size: 24 bytes, params: 2, frame: 11
return a0.filter(_fun87654);
function _fun87654(a0) { // fn#87654, offset: 0x01379260, size: 16 bytes, params: 2, frame: 2
return a0 !== env1_0;
}
}
function _fun87655(a0) { // fn#87655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1301, offset: 0x01bd074a, size: 37 bytes, params: 2, frame: 13
const items2 = [];
const value = arraySpread(items2, a0, 0, undefined);
items2[value] = env0_0;
value + 1;
return items2;
}
}
}
}
function _default_87649OnChange(a0) { // fn#87656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1518, owner: _default_87649.onChange, offset: 0x01e67c9c, size: 19 bytes, params: 2, frame: 11
env0_4(a0);
}
function _default_87649OnPress() { // fn#87657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11634:1565, owner: _default_87649.onPress, offset: 0x01fc6ace, size: 117 bytes, params: 1, frame: 18
const value = environment.__proto__;
const trackWithMetadata = AppAnalyticsUtilsModule.trackWithMetadata;
const GUILD_RAID_LOCKDOWN_FEEDBACK = AnalyticEvents.GUILD_RAID_LOCKDOWN_FEEDBACK;
Reflect.apply(trackWithMetadata, AppAnalyticsUtilsModule, [GUILD_RAID_LOCKDOWN_FEEDBACK,
{raid_lockdown_feedback_type: env0_1, raid_lockdown_feedback_other_reason: Module00057, guild_id: guildId}]);
(ActionSheetActionCreators).hideActionSheet('GuildRaidLockdownFeedbackActionSheet');
}
}
}
global.__d(_fun87648, 11448, [57, 31, 661, 33, 4501, 1244, 5061, 4080, 6805, 6758, 5467, 6231, 8950, 7681, 4578,
4863,
2]) /* metro module 11448, dependencies: [57, 31, 661, 33, 4501, 1244, 5061, 4080, 6805, 6758, 5467, 6231, 8950, 7681, 4578, 4863, 2] */;
@@ -1,178 +1,239 @@
/* Metro module 11452; source: modules/guild_antiraid/native/GuildRaidResolveActionSheet.tsx; dependencies: [57, 31, 27, 661, 6263, 33, 4501, 697, 1244, 5061, 4080, 6805, 5467, 4573, 7972, 1305, 4578, 4863, 11447, 6264, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import KeyboardAwareView from '../../keyboard/native/KeyboardAwareView.tsx'; /* Metro dependency 5467 */
import SafetyToastsActionCreatorsNative from '../../safety_common/SafetyToastsActionCreators.native.tsx'; /* Metro dependency 6264 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as AppAnalyticsUtilsModule from '../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import * as AutomodFeedbackModule from '../../guild_automod/AutomodFeedback.tsx'; /* Metro dependency 5061 */
import * as ConstantsModule2 from '../../safety_common/Constants.tsx'; /* Metro dependency 6263 */
import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as NativeModule from '../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as GuildAntiRaidActionCreatorsModule from '../GuildAntiRaidActionCreators.tsx'; /* Metro dependency 11447 */
function _fun87679(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:6, offset: 0x01fc793c, size: 494 bytes, params: 8, frame: 22
var object3;
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(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_7 = (require(6263) /* metro dependency 6263: Constants */).SafetyToastType;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {container: {'paddingVertical': 24, 'paddingHorizontal': 16, 'display': 'flex', 'flexDirection': 'column',
object = {container: {'paddingVertical': 24, 'paddingHorizontal': 16, 'display': 'flex', 'flexDirection': 'column',
'alignItems': 'center'}, title: {'marginBottom': 8, 'textAlign': 'center'}, subtitle: {'marginBottom': 16,
'textAlign': 'center'}};
const object5 = {'borderColor': null, 'borderWidth': 1, 'borderRadius': null, 'display': 'flex',
const object2 = {'borderColor': null, 'borderWidth': 1, 'borderRadius': null, 'display': 'flex',
'flexDirection': 'column', 'marginBottom': 14, 'width': '100%'};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object5.borderColor = BORDER_SUBTLE;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object3.optionContainer = object5;
object3.option = {width: '100%'};
object3.textInputContainer = {'paddingLeft': 54, 'paddingRight': 16, 'paddingBottom': 16};
const object6 = {'backgroundColor': null, 'width': '100%', 'padding': 8};
object2.borderColor = BORDER_SUBTLE;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object.optionContainer = object2;
object.option = {width: '100%'};
object.textInputContainer = {'paddingLeft': 54, 'paddingRight': 16, 'paddingBottom': 16};
const object4 = {'backgroundColor': null, 'width': '100%', 'padding': 8};
const INPUT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BACKGROUND_DEFAULT;
object6.backgroundColor = INPUT_BACKGROUND_DEFAULT;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object3.textInput = object6;
const env0_10 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_antiraid/native/GuildRaidResolveActionSheet.tsx');
object4.backgroundColor = INPUT_BACKGROUND_DEFAULT;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object.textInput = object4;
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/guild_antiraid/native/GuildRaidResolveActionSheet.tsx');
exports.default = _default_87680;
}
function _default_87680({guildId, messageId}) { // fn#87680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:824, offset: 0x01fc7b2a, size: 981 bytes, params: 2, frame: 29
const closure = onPress_87682;
const styles = useStyles();
const binding = env0_4;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [[]]);
const binding2 = env0_3;
const value3 = binding2(value2, 2);
var env0_3 = value3[0];
var env0_4 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, []), 2);
const env0_5 = value4[0];
const env0_6 = value4[1];
let object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.text = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.yeaXw5]);
const RaidResolutionType = (require(5061) /* metro dependency 5061: AutomodFeedback */).RaidResolutionType;
const LEGITIMATE_ACTIVITY = RaidResolutionType.LEGITIMATE_ACTIVITY;
object2.value = LEGITIMATE_ACTIVITY;
const items3 = [object2];
object2 = {};
object2.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['o++3B8']);
const DM_SPAM = RaidResolutionType.DM_SPAM;
object2.value = DM_SPAM;
items3[1] = object2;
string = intl.string;
const UfHAwZ = (require(1244) /* metro dependency 1244: indexNative */).t.UfHAwZ;
const JOIN_RAID = RaidResolutionType.JOIN_RAID;
items3[2] = {text: Reflect.apply(string, intl, [UfHAwZ]), value: JOIN_RAID};
string = intl.string;
const K3UWeR = (require(1244) /* metro dependency 1244: indexNative */).t.K3UWeR;
const OTHER = RaidResolutionType.OTHER;
items3[3] = {text: Reflect.apply(string, intl, [K3UWeR]), value: OTHER};
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const keyboardAwareView = importDefault(5467) /* metro dependency 5467: KeyboardAwareView */;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [<Text style={styles.title} variant="heading-xl/bold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1zmw/H'])}</Text>];
items2[1] = <Text style={styles.subtitle} variant="text-sm/normal" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nF79oO)}</Text>;
items2[2] = items3.map(_fun87683);
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const object3 = {onPress: onPress_87689};
string = intl.string;
const Gh3A0O = (require(1244) /* metro dependency 1244: indexNative */).t.Gh3A0O;
object3.text = Reflect.apply(string, intl, [Gh3A0O]);
object3.size = 'md';
items2[3] = <Button {...object3} />;
items2[4] = <Button onPress={closure} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} variant="secondary" size="md" />;
return (
<ActionSheet>
{((Component) => <Component style={styles.container}>{items2}</Component>)(keyboardAwareView)}
</ActionSheet>
);
}
function _default_87680OnPress() { // fn#87682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1342, owner: _default_87680.onPress, offset: 0x01fc7f12, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('GuildRaidResolveActionSheet');
}
function _fun87683({text, value}) { // fn#87683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1782, offset: 0x01fc7f3e, size: 422 bytes, params: 2, frame: 28
var object;
var TextInput;
var intl;
let stylesBinding = styles;
const optionContainer = stylesBinding.optionContainer;
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
const option = stylesBinding.option;
const Checkbox = (require(1305) /* metro dependency 1305: native */).Checkbox;
const formRow = <FormRow style={option} onPress={function() {
_fun87685(value);
}} leading={<Checkbox selected={env0_3.includes(value)} />} label={text} />;
const RaidResolutionType = (require(5061) /* metro dependency 5061: AutomodFeedback */).RaidResolutionType;
const OTHER = RaidResolutionType.OTHER;
let r6 = value === OTHER && env0_3.includes((require(5061) /* metro dependency 5061: AutomodFeedback */).RaidResolutionType.OTHER);
if (r6) {
function _default_87680({guildId, messageId}) { // fn#87680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:824, offset: 0x01fc7b2a, size: 981 bytes, params: 2, frame: 29
const onPress_876822 = onPress_87682;
const styles = useStyles();
const binding = env0_4;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [[]]);
const binding2 = env0_3;
const value3 = binding2(value2, 2);
var env0_3 = value3[0];
var env0_4 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, []), 2);
const env0_5 = value4[0];
const env0_6 = value4[1];
let object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.text = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.yeaXw5]);
const RaidResolutionType = (AutomodFeedbackModule).RaidResolutionType;
const LEGITIMATE_ACTIVITY = RaidResolutionType.LEGITIMATE_ACTIVITY;
object.value = LEGITIMATE_ACTIVITY;
const items3 = [object];
object = {};
stylesBinding = styles;
object.style = stylesBinding.textInputContainer;
TextInput = (require(1305) /* metro dependency 1305: native */).TextInput;
var textInputProps = {style: stylesBinding.textInput, autoComplete: 'off', value: env0_5};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
textInputProps.placeholder = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['PAM+JR']);
textInputProps.onChangeText = handleTextInputChange;
r6 = <View {...object}><TextInput {...textInputProps} /></View>;
object.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['o++3B8']);
const DM_SPAM = RaidResolutionType.DM_SPAM;
object.value = DM_SPAM;
items3[1] = object;
string = intl.string;
const UfHAwZ = (require(1244) /* metro dependency 1244: indexNative */).t.UfHAwZ;
const JOIN_RAID = RaidResolutionType.JOIN_RAID;
items3[2] = {text: Reflect.apply(string, intl, [UfHAwZ]), value: JOIN_RAID};
string = intl.string;
const K3UWeR = (require(1244) /* metro dependency 1244: indexNative */).t.K3UWeR;
const OTHER = RaidResolutionType.OTHER;
items3[3] = {text: Reflect.apply(string, intl, [K3UWeR]), value: OTHER};
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
const Text = (TextModule).Text;
const items2 = [
<Text
style={styles.title}
variant="heading-xl/bold"
color="mobile-text-heading-primary"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1zmw/H'])}
</Text>,
];
items2[1] = (
<Text
style={styles.subtitle}
variant="text-sm/normal"
color="text-default"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nF79oO)}
</Text>
);
items2[2] = items3.map(_fun87683);
const Button = (ButtonNativeModule).Button;
const object4 = {onPress: onPress_87689};
string = intl.string;
const Gh3A0O = (require(1244) /* metro dependency 1244: indexNative */).t.Gh3A0O;
object4.text = Reflect.apply(string, intl, [Gh3A0O]);
object4.size = 'md';
items2[3] = <Button {...object4} />;
items2[4] = (
<Button
onPress={onPress_876822}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
variant="secondary"
size="md"
/>
);
return (
<ActionSheet>
{((Component) => <Component style={styles.container}>{items2}</Component>)(KeyboardAwareView)}
</ActionSheet>
);
function handleTextInputChange(a0) { // fn#87681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1303, owner: _default_87680.handleTextInputChange, offset: 0x01fc7eff, size: 19 bytes, params: 2, frame: 11
env0_6(a0);
}
function _default_87680OnPress() { // fn#87682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1342, owner: _default_87680.onPress, offset: 0x01fc7f12, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet('GuildRaidResolveActionSheet');
}
function _fun87683({text, value}) { // fn#87683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1782, offset: 0x01fc7f3e, size: 422 bytes, params: 2, frame: 28
var object2;
var TextInput;
var intl;
let stylesBinding = styles;
const optionContainer = stylesBinding.optionContainer;
const FormRow = (NativeModule).FormRow;
const option = stylesBinding.option;
const Checkbox = (require(1305) /* metro dependency 1305: native */).Checkbox;
const formRow = (
<FormRow
style={option}
onPress={function() {
_fun87685(value);
}}
leading={<Checkbox selected={env0_3.includes(value)} />}
label={text}
/>
);
const RaidResolutionType = (require(5061) /* metro dependency 5061: AutomodFeedback */).RaidResolutionType;
const OTHER = RaidResolutionType.OTHER;
let r6 = value === OTHER && env0_3.includes((require(5061) /* metro dependency 5061: AutomodFeedback */).RaidResolutionType.OTHER);
if (r6) {
object2 = {};
stylesBinding = styles;
object2.style = stylesBinding.textInputContainer;
TextInput = (require(1305) /* metro dependency 1305: native */).TextInput;
var textInputProps = {style: stylesBinding.textInput, autoComplete: 'off', value: env0_5};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
textInputProps.placeholder = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['PAM+JR']);
textInputProps.onChangeText = handleTextInputChange;
r6 = (
<View {...object2}>
<TextInput {...textInputProps} />
</View>
);
}
return (
<View style={optionContainer} key={value}>
{formRow}
{r6}
</View>
);
function onPress_87684() { // fn#87684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1884, offset: 0x01fc80e4, size: 25 bytes, params: 1, frame: 11
onPress_87684OnCheckboxChange(value);
function onPress_87684OnCheckboxChange(a0) { // fn#87685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1888, owner: onPress_87684.onCheckboxChange, offset: 0x01fc80fd, size: 58 bytes, params: 2, frame: 13
const env0_0 = a0;
env2_4(env2_3.includes(a0) ? function(a0) {
return a0.filter(_fun87687);
} : _fun87688);
function _fun87686(a0) { // fn#87686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1941, offset: 0x01fc8137, size: 24 bytes, params: 2, frame: 11
return a0.filter(_fun87687);
function _fun87687(a0) { // fn#87687, offset: 0x01379260, size: 16 bytes, params: 2, frame: 2
return a0 !== env1_0;
}
}
function _fun87688(a0) { // fn#87688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1965, offset: 0x01bd074a, size: 37 bytes, params: 2, frame: 13
const items2 = [];
const value = arraySpread(items2, a0, 0, undefined);
items2[value] = env0_0;
value + 1;
return items2;
}
}
}
}
function _default_87680OnPress_87689() { // fn#87689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:2364, owner: _default_87680.onPress, offset: 0x01fc814f, size: 231 bytes, params: 1, frame: 23
const object = {};
const RaidAlertType = (AutomodFeedbackModule).RaidAlertType;
const JOIN_RAID = RaidAlertType.JOIN_RAID;
object.raid_alert_type = JOIN_RAID;
const messageIdBinding = messageId;
object.raid_alert_id = messageIdBinding;
const binding = env0_3;
object.false_alarm_type = binding.map(function(a0) {
return a0.toString();
});
object.false_alarm_other_reason = env0_5;
const guildIdBinding = guildId;
object.guild_id = guildIdBinding;
const trackWithMetadata = AppAnalyticsUtilsModule.trackWithMetadata;
const GUILD_RAID_FEEDBACK = AnalyticEvents.GUILD_RAID_FEEDBACK;
Reflect.apply(trackWithMetadata, AppAnalyticsUtilsModule, [GUILD_RAID_FEEDBACK, object]);
const handleResolveRaid = GuildAntiRaidActionCreatorsModule.handleResolveRaid;
const getMostImportantRaidResolutionType = AutomodFeedbackModule.getMostImportantRaidResolutionType;
Reflect.apply(handleResolveRaid, GuildAntiRaidActionCreatorsModule, [guildIdBinding, messageIdBinding,
Reflect.apply(getMostImportantRaidResolutionType, AutomodFeedbackModule, [binding])]);
onPress_87682();
const defaultImport = SafetyToastsActionCreatorsNative;
const showSuccessToast = defaultImport.showSuccessToast;
const SAFETY_FEEDBACK_SUCCESS = SafetyToastType.SAFETY_FEEDBACK_SUCCESS;
Reflect.apply(showSuccessToast, defaultImport, [SAFETY_FEEDBACK_SUCCESS]);
}
}
return (
<View style={optionContainer} key={value}>
{formRow}
{r6}
</View>
);
}
function _default_87680OnPress_87689() { // fn#87689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:2364, owner: _default_87680.onPress, offset: 0x01fc814f, size: 231 bytes, params: 1, frame: 23
const object2 = {};
const RaidAlertType = (require(5061) /* metro dependency 5061: AutomodFeedback */).RaidAlertType;
const JOIN_RAID = RaidAlertType.JOIN_RAID;
object2.raid_alert_type = JOIN_RAID;
const messageIdBinding = messageId;
object2.raid_alert_id = messageIdBinding;
const binding = env0_3;
object2.false_alarm_type = binding.map(function(a0) {
return a0.toString();
});
object2.false_alarm_other_reason = env0_5;
const guildIdBinding = guildId;
object2.guild_id = guildIdBinding;
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
const GUILD_RAID_FEEDBACK = AnalyticEvents.GUILD_RAID_FEEDBACK;
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [GUILD_RAID_FEEDBACK, object2]);
const guildAntiRaidActionCreatorsModule = require(11447) /* metro dependency 11447: GuildAntiRaidActionCreators */;
const handleResolveRaid = guildAntiRaidActionCreatorsModule.handleResolveRaid;
const automodFeedbackModule = require(5061) /* metro dependency 5061: AutomodFeedback */;
const getMostImportantRaidResolutionType = automodFeedbackModule.getMostImportantRaidResolutionType;
Reflect.apply(handleResolveRaid, guildAntiRaidActionCreatorsModule, [guildIdBinding, messageIdBinding,
Reflect.apply(getMostImportantRaidResolutionType, automodFeedbackModule, [binding])]);
onPress_87682();
const defaultImport = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
const showSuccessToast = defaultImport.showSuccessToast;
const SAFETY_FEEDBACK_SUCCESS = SafetyToastType.SAFETY_FEEDBACK_SUCCESS;
Reflect.apply(showSuccessToast, defaultImport, [SAFETY_FEEDBACK_SUCCESS]);
}
function onPress_87684() { // fn#87684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1884, offset: 0x01fc80e4, size: 25 bytes, params: 1, frame: 11
onPress_87684OnCheckboxChange(value);
}
function onPress_87684OnCheckboxChange(a0) { // fn#87685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1888, owner: onPress_87684.onCheckboxChange, offset: 0x01fc80fd, size: 58 bytes, params: 2, frame: 13
const env0_0 = a0;
env2_4(env2_3.includes(a0) ? function(a0) {
return a0.filter(_fun87687);
} : _fun87688);
}
function _fun87686(a0) { // fn#87686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11638:1941, offset: 0x01fc8137, size: 24 bytes, params: 2, frame: 11
return a0.filter(_fun87687);
}
global.__d(_fun87679, 11452, [57, 31, 27, 661, 6263, 33, 4501, 697, 1244, 5061, 4080, 6805, 5467, 4573, 7972, 1305,
4578, 4863, 11447, 6264,
2]) /* metro module 11452, dependencies: [57, 31, 27, 661, 6263, 33, 4501, 697, 1244, 5061, 4080, 6805, 5467, 4573, 7972, 1305, 4578, 4863, 11447, 6264, 2] */;