/* 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] */
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',
'gap': 24}});
(require(2) /* metro dependency 2 */).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 = ;
const KeyboardAwareView = importDefault(5467) /* metro dependency 5467: KeyboardAwareView */;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const tableRowGroup = {items2.map(_fun87650)};
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 = ;
} else {
r9 = value6;
}
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
{tableRowGroup}
{r9}
);
}
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 (
);
}
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);
}