decord/source/modules/guild_antiraid/native/GuildRaidLockdownFeedbackActionSheet.tsx

115 lines
4.2 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 10959
// Function ID: 85172
2026-07-20 16:05:17 +00:00
// Name: GuildRaidLockdownFeedbackActionSheet
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 31, 653, 33, 4131, 1212, 5746, 4099, 5498, 5186, 5585, 5501, 9024, 7585, 4544, 4325, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 10959 (GuildRaidLockdownFeedbackActionSheet)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import { AnalyticEvents } from "ME";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_6;
let closure_7;
const require = arg1;
({ jsx: closure_6, jsxs: closure_7 } = jsxProd);
let closure_8 = _createForOfIteratorHelperLoose.createStyles({ container: { display: "flex", gap: 24 } });
const result = require("ME").fileFinishedImporting("modules/guild_antiraid/native/GuildRaidLockdownFeedbackActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildRaidLockdownFeedbackActionSheet(guildId) {
2026-07-23 10:11:24 +00:00
guildId = guildId.guildId;
const tmp2 = first1(React.useState([]), 2);
2026-07-20 16:05:17 +00:00
const first = tmp2[0];
2026-07-23 10:11:24 +00:00
const dependencyMap = tmp2[1];
const tmp3 = first1(React.useState(), 2);
first1 = tmp3[0];
React = tmp3[1];
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
const intl = guildId(1212).intl;
obj.text = intl.string(guildId(1212).t["//3pvi"]);
2026-07-25 08:10:48 +00:00
obj.value = guildId(5746).RaidLockdownFeedbackType.DM_SPAM;
2026-07-23 10:11:24 +00:00
let items = [obj, , , , , ];
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const intl2 = guildId(1212).intl;
obj.text = intl2.string(guildId(1212).t.SdVsip);
2026-07-25 08:10:48 +00:00
obj.value = guildId(5746).RaidLockdownFeedbackType.MENTION_SPAM;
2026-07-20 16:05:17 +00:00
items[1] = obj;
const obj1 = {};
2026-07-23 10:11:24 +00:00
const intl3 = guildId(1212).intl;
obj1.text = intl3.string(guildId(1212).t.uTiSVL);
2026-07-25 08:10:48 +00:00
obj1.value = guildId(5746).RaidLockdownFeedbackType.CHANNEL_SPAM;
2026-07-20 16:05:17 +00:00
items[2] = obj1;
const obj2 = {};
2026-07-23 10:11:24 +00:00
const intl4 = guildId(1212).intl;
obj2.text = intl4.string(guildId(1212).t.GQczU8);
2026-07-25 08:10:48 +00:00
obj2.value = guildId(5746).RaidLockdownFeedbackType.SUS_NEW_MEMBERS;
2026-07-20 16:05:17 +00:00
items[3] = obj2;
const obj3 = {};
2026-07-23 10:11:24 +00:00
const intl5 = guildId(1212).intl;
obj3.text = intl5.string(guildId(1212).t.AAgqy3);
2026-07-25 08:10:48 +00:00
obj3.value = guildId(5746).RaidLockdownFeedbackType.CHANGING_SETTINGS;
2026-07-20 16:05:17 +00:00
items[4] = obj3;
const obj4 = {};
2026-07-23 10:11:24 +00:00
const intl6 = guildId(1212).intl;
obj4.text = intl6.string(guildId(1212).t.ryPKb7);
2026-07-25 08:10:48 +00:00
obj4.value = guildId(5746).RaidLockdownFeedbackType.OTHER;
2026-07-20 16:05:17 +00:00
items[5] = obj4;
const obj5 = { startExpanded: true };
const obj6 = {};
2026-07-23 10:11:24 +00:00
const intl7 = guildId(1212).intl;
obj6.title = intl7.string(guildId(1212).t.f5hd9P);
obj5.header = callback(guildId(5186).BottomSheetTitleHeader, obj6);
const obj7 = { style: callback2().container };
const tmp = callback2();
const tmp5 = callback;
2026-07-20 16:05:17 +00:00
const tmp6 = closure_7;
const obj8 = {
hasIcons: false,
children: items.map((value) => {
value = value.value;
const guildId = value;
const obj = {
onPress() {
2026-07-23 10:11:24 +00:00
(function onCheckboxChange(closure_0) {
2026-07-25 08:10:48 +00:00
outer2_2(outer2_1.includes(closure_0) ? ((arr) => arr.filter(/* F85178 */ function() { ... })) : ((arg0) => {
2026-07-23 10:11:24 +00:00
const items = [...arg0, closure_0];
2026-07-20 16:05:17 +00:00
return items;
2026-07-23 10:11:24 +00:00
}));
})(closure_0);
2026-07-20 16:05:17 +00:00
},
checked: first.includes(value),
label: value.text
};
2026-07-25 08:10:48 +00:00
return outer1_6(guildId(9024).TableCheckboxRow, obj, value);
2026-07-20 16:05:17 +00:00
})
};
2026-07-24 07:16:23 +00:00
const items1 = [callback(guildId(5501).TableRowGroup, obj8), , ];
2026-07-25 08:10:48 +00:00
let hasItem = first.includes(guildId(5746).RaidLockdownFeedbackType.OTHER);
2026-07-20 16:05:17 +00:00
if (hasItem) {
const obj9 = { autoComplete: "off", value: first1 };
2026-07-23 10:11:24 +00:00
const intl8 = guildId(1212).intl;
obj9.placeholder = intl8.string(guildId(1212).t["PAM+JR"]);
2026-07-20 16:05:17 +00:00
obj9.onChange = function onChange(arg0) {
callback(arg0);
};
2026-07-25 08:10:48 +00:00
hasItem = callback(guildId(7585).TextArea, obj9);
2026-07-20 16:05:17 +00:00
}
items1[1] = hasItem;
const obj10 = {
onPress() {
2026-07-25 08:10:48 +00:00
let obj = guildId(4325);
2026-07-20 16:05:17 +00:00
obj = { raid_lockdown_feedback_type: first, raid_lockdown_feedback_other_reason: first1, guild_id: guildId };
2026-07-23 10:11:24 +00:00
obj.trackWithMetadata(outer1_5.GUILD_RAID_LOCKDOWN_FEEDBACK, obj);
2026-07-25 08:10:48 +00:00
first(4099).hideActionSheet("GuildRaidLockdownFeedbackActionSheet");
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
const intl9 = guildId(1212).intl;
obj10.text = intl9.string(guildId(1212).t.nAt0rE);
2026-07-25 08:10:48 +00:00
items1[2] = callback(guildId(4544).Button, obj10);
2026-07-20 16:05:17 +00:00
obj7.children = items1;
2026-07-24 07:16:23 +00:00
obj5.children = tmp6(first(5585), obj7);
return tmp5(guildId(5498).ActionSheet, obj5);
2026-07-20 16:05:17 +00:00
};