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

120 lines
4.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 11392
// Function ID: 11393
2026-07-20 16:05:17 +00:00
// Name: GuildRaidLockdownFeedbackActionSheet
2026-08-25 06:04:03 +00:00
// Dependencies: [32, 19, 676, 21, 4380, 1236, 7124, 4347, 5870, 5502, 5930, 5873, 8605, 8127, 4815, 4588, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 11392 (GuildRaidLockdownFeedbackActionSheet)
2026-08-24 06:08:38 +00:00
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { AnalyticEvents } from "ME" /* 676 */;
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: closure_6, jsxs: error } = jsxProd);
let closure_8 = createCacheKey.createStyles({ container: { display: "flex", gap: 24 } });
2026-08-24 06:08:38 +00:00
const result = require("set").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;
2026-07-29 08:29:29 +00:00
let first;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
2026-07-29 08:29:29 +00:00
let first1;
let React;
2026-07-23 10:11:24 +00:00
const tmp2 = first1(React.useState([]), 2);
2026-07-29 08:29:29 +00:00
first = tmp2[0];
dependencyMap = tmp2[1];
2026-07-23 10:11:24 +00:00
const tmp3 = first1(React.useState(), 2);
first1 = tmp3[0];
React = tmp3[1];
2026-07-29 08:29:29 +00:00
let obj = { text: null, value: null };
const intl = guildId(1236).intl;
obj[0] = intl.string(guildId(1236).t["//3pvi"]);
2026-08-25 06:04:03 +00:00
obj[1] = guildId(7124).RaidLockdownFeedbackType.DM_SPAM;
2026-07-23 10:11:24 +00:00
let items = [obj, , , , , ];
2026-07-29 08:29:29 +00:00
obj = { text: null, value: null };
const intl2 = guildId(1236).intl;
obj[0] = intl2.string(guildId(1236).t.SdVsip);
2026-08-25 06:04:03 +00:00
obj[1] = guildId(7124).RaidLockdownFeedbackType.MENTION_SPAM;
2026-07-20 16:05:17 +00:00
items[1] = obj;
2026-08-24 06:08:38 +00:00
obj1 = { text: null, value: null };
2026-07-29 08:29:29 +00:00
const intl3 = guildId(1236).intl;
obj1[0] = intl3.string(guildId(1236).t.uTiSVL);
2026-08-25 06:04:03 +00:00
obj1[1] = guildId(7124).RaidLockdownFeedbackType.CHANNEL_SPAM;
2026-07-20 16:05:17 +00:00
items[2] = obj1;
2026-07-29 08:29:29 +00:00
const obj2 = { text: null, value: null };
const intl4 = guildId(1236).intl;
obj2[0] = intl4.string(guildId(1236).t.GQczU8);
2026-08-25 06:04:03 +00:00
obj2[1] = guildId(7124).RaidLockdownFeedbackType.SUS_NEW_MEMBERS;
2026-07-20 16:05:17 +00:00
items[3] = obj2;
2026-07-29 08:29:29 +00:00
const obj3 = { text: null, value: null };
const intl5 = guildId(1236).intl;
obj3[0] = intl5.string(guildId(1236).t.AAgqy3);
2026-08-25 06:04:03 +00:00
obj3[1] = guildId(7124).RaidLockdownFeedbackType.CHANGING_SETTINGS;
2026-07-20 16:05:17 +00:00
items[4] = obj3;
2026-07-29 08:29:29 +00:00
const obj4 = { text: null, value: null };
const intl6 = guildId(1236).intl;
obj4[0] = intl6.string(guildId(1236).t.ryPKb7);
2026-08-25 06:04:03 +00:00
obj4[1] = guildId(7124).RaidLockdownFeedbackType.OTHER;
2026-07-20 16:05:17 +00:00
items[5] = obj4;
2026-07-29 08:29:29 +00:00
const obj5 = { startExpanded: true, header: null, children: null };
const obj6 = { title: null };
const intl7 = guildId(1236).intl;
obj6[0] = intl7.string(guildId(1236).t.f5hd9P);
2026-08-25 06:04:03 +00:00
obj5[1] = callback(guildId(5502).BottomSheetTitleHeader, obj6);
2026-07-29 08:29:29 +00:00
const obj7 = { style: callback2().container, children: null };
2026-07-23 10:11:24 +00:00
const tmp = callback2();
2026-07-29 08:29:29 +00:00
const tmp8 = closure_7;
2026-08-25 06:04:03 +00:00
const tmp9 = first(5930);
2026-08-24 06:08:38 +00:00
const items1 = [
2026-08-25 06:04:03 +00:00
callback(guildId(5873).TableRowGroup, {
2026-08-24 06:08:38 +00:00
hasIcons: false,
children: items.map((label) => {
const value = label.value;
guildId = value;
2026-08-25 06:04:03 +00:00
return closure_1_6(guildId(8605).TableCheckboxRow, {
2026-08-24 06:08:38 +00:00
onPress() {
closure_1_2(closure_1_1.includes(closure_0) ? ((arr) => arr.filter((arg0) => arg0 !== closure_0)) : ((arg0) => {
const items = [];
items[HermesBuiltin.arraySpread(arg0, 0)] = closure_0;
return items;
}));
},
checked: first.includes(value),
label: label.text
}, value);
})
}),
,
];
2026-08-25 06:04:03 +00:00
let hasItem = first.includes(guildId(7124).RaidLockdownFeedbackType.OTHER);
2026-07-20 16:05:17 +00:00
if (hasItem) {
2026-07-29 08:29:29 +00:00
const obj9 = { autoComplete: "off", value: null, placeholder: null, onChange: null };
obj9[1] = first1;
const intl8 = tmp5(1236).intl;
obj9[2] = intl8.string(tmp5(1236).t["PAM+JR"]);
obj9[3] = function onChange(arg0) {
2026-07-20 16:05:17 +00:00
callback(arg0);
};
2026-08-25 06:04:03 +00:00
hasItem = tmp7(tmp5(8127).TextArea, obj9);
2026-07-20 16:05:17 +00:00
}
items1[1] = hasItem;
const obj10 = {
onPress() {
2026-08-25 06:04:03 +00:00
let obj = guildId(4588);
2026-07-20 16:05:17 +00:00
obj = { raid_lockdown_feedback_type: first, raid_lockdown_feedback_other_reason: first1, guild_id: guildId };
2026-08-24 06:08:38 +00:00
obj.trackWithMetadata(closure_1_5.GUILD_RAID_LOCKDOWN_FEEDBACK, obj);
2026-08-25 06:04:03 +00:00
first(4347).hideActionSheet("GuildRaidLockdownFeedbackActionSheet");
2026-07-29 08:29:29 +00:00
},
text: null
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
const intl9 = tmp5(1236).intl;
obj10[1] = intl9.string(guildId(1236).t.nAt0rE);
2026-08-25 06:04:03 +00:00
items1[2] = callback(guildId(4815).Button, obj10);
2026-07-29 08:29:29 +00:00
obj7[1] = items1;
2026-08-24 06:08:38 +00:00
obj5[2] = tmp8(tmp9, obj7);
2026-08-25 06:04:03 +00:00
return callback(guildId(5870).ActionSheet, obj5);
2026-07-20 16:05:17 +00:00
};