decord/source/modules/interaction_components/native/renderComponents.tsx

84 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-08-26 06:04:24 +00:00
// Module ID: 16816
// Function ID: 16817
2026-07-20 16:05:17 +00:00
// Name: renderComponents
2026-08-26 06:04:24 +00:00
// Dependencies: [19, 21, 1955, 16817, 15338, 16818, 15341, 15342, 16819, 16820, 16822, 16823, 16824, 2]
2026-07-20 16:05:17 +00:00
2026-08-26 06:04:24 +00:00
// Module 16816 (renderComponents)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
2026-08-25 06:04:03 +00:00
import PermissionOverwriteType from "PermissionOverwriteType" /* 1955 */;
2026-08-26 06:04:24 +00:00
import StringSelectActionComponentDefault from "StringSelectActionComponent" /* 15338 */;
import SearchableSelectActionComponentDefault from "SearchableSelectActionComponent" /* 15341 */;
import TextDisplayComponentDefault from "TextDisplayComponent" /* 15342 */;
import ActionRowLayoutComponentDefault from "ActionRowLayoutComponent" /* 16817 */;
import _modDef16818 from "module_16818" /* 16818 */;
import LabelLayoutComponentDefault from "LabelLayoutComponent" /* 16819 */;
import MainAreaCanUploadDefault from "MainAreaCanUpload" /* 16820 */;
import _modDef16822 from "module_16822" /* 16822 */;
import _modDef16823 from "module_16823" /* 16823 */;
import _modDef16824 from "module_16824" /* 16824 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function renderComponents(components) {
2026-07-29 08:29:29 +00:00
return components.map((arg0, arg1) => callback(arg0, arg1.toString()));
2026-07-20 16:05:17 +00:00
}
function renderComponent(component, arg1) {
const type = component.type;
2026-08-24 06:08:38 +00:00
if (PermissionOverwriteType.ComponentType.ACTION_ROW === type) {
2026-07-20 16:05:17 +00:00
let obj = {};
const merged = Object.assign(component);
2026-07-29 08:29:29 +00:00
obj.renderComponents = renderComponents;
2026-08-24 06:08:38 +00:00
return jsx(ActionRowLayoutComponentDefault, {}, arg1);
2026-08-25 06:04:03 +00:00
} else if (tmp(1955).ComponentType.STRING_SELECT === type) {
2026-07-20 16:05:17 +00:00
obj = {};
const merged1 = Object.assign(component);
2026-08-24 06:08:38 +00:00
return jsx(StringSelectActionComponentDefault, {}, arg1);
2026-08-25 06:04:03 +00:00
} else if (tmp(1955).ComponentType.TEXT_INPUT === type) {
2026-08-24 06:08:38 +00:00
obj1 = {};
2026-07-20 16:05:17 +00:00
const merged2 = Object.assign(component);
2026-08-26 06:04:24 +00:00
return jsx(_modDef16818, {}, arg1);
2026-07-20 16:05:17 +00:00
} else {
2026-08-25 06:04:03 +00:00
if (tmp(1955).ComponentType.USER_SELECT !== type) {
if (tmp(1955).ComponentType.ROLE_SELECT !== type) {
if (tmp(1955).ComponentType.MENTIONABLE_SELECT !== type) {
if (tmp(1955).ComponentType.CHANNEL_SELECT !== type) {
if (tmp(1955).ComponentType.TEXT_DISPLAY === type) {
2026-07-20 16:05:17 +00:00
const obj2 = {};
const merged3 = Object.assign(component);
2026-08-24 06:08:38 +00:00
return jsx(TextDisplayComponentDefault, {}, arg1);
2026-08-25 06:04:03 +00:00
} else if (tmp(1955).ComponentType.LABEL === type) {
2026-07-20 16:05:17 +00:00
const obj3 = {};
const merged4 = Object.assign(component);
2026-07-29 08:29:29 +00:00
obj3.renderComponent = renderComponent;
2026-08-24 06:08:38 +00:00
return jsx(LabelLayoutComponentDefault, {}, arg1);
2026-08-25 06:04:03 +00:00
} else if (tmp(1955).ComponentType.FILE_UPLOAD === type) {
2026-07-20 16:05:17 +00:00
const obj4 = {};
const merged5 = Object.assign(component);
2026-08-24 06:08:38 +00:00
return jsx(MainAreaCanUploadDefault, {}, arg1);
2026-08-25 06:04:03 +00:00
} else if (tmp(1955).ComponentType.RADIO_GROUP === type) {
2026-07-20 16:05:17 +00:00
const obj5 = {};
const merged6 = Object.assign(component);
2026-08-26 06:04:24 +00:00
return jsx(_modDef16822, {}, arg1);
2026-08-25 06:04:03 +00:00
} else if (tmp(1955).ComponentType.CHECKBOX_GROUP === type) {
2026-07-20 16:05:17 +00:00
const obj6 = {};
const merged7 = Object.assign(component);
2026-08-26 06:04:24 +00:00
return jsx(_modDef16823, {}, arg1);
2026-08-25 06:04:03 +00:00
} else if (tmp(1955).ComponentType.CHECKBOX === type) {
2026-07-20 16:05:17 +00:00
obj = {};
const merged8 = Object.assign(component);
2026-08-26 06:04:24 +00:00
return jsx(_modDef16824, {}, arg1);
2026-07-20 16:05:17 +00:00
}
}
}
}
}
const obj7 = {};
const merged9 = Object.assign(component);
2026-08-24 06:08:38 +00:00
return jsx(SearchableSelectActionComponentDefault, {}, arg1);
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
noopAll;
const result = require("set").fileFinishedImporting("modules/interaction_components/native/renderComponents.tsx");
2026-07-20 16:05:17 +00:00
export { renderComponents };