/* 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_8 = (CreateStylesModule).createStyles({container: {'display': 'flex',
'gap': 24}});
(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 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 = (
);
const TableRowGroup = (TableRowGroupNativeModule).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 = (ButtonNativeModule).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 = (TableCheckboxRowNativeModule).TableCheckboxRow;
return (
);
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] */;