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

72 lines
2.9 KiB
TypeScript
Raw Normal View History

2026-08-10 06:55:34 +00:00
// Module ID: 16470
// Function ID: 16471
2026-07-20 16:05:17 +00:00
// Name: renderComponents
2026-08-10 06:55:34 +00:00
// Dependencies: [19, 21, 1935, 16471, 15034, 16472, 15037, 15038, 16473, 16474, 16476, 16477, 16478, 2]
2026-07-20 16:05:17 +00:00
2026-08-10 06:55:34 +00:00
// Module 16470 (renderComponents)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const 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-06 08:05:19 +00:00
if (require(1935) /* 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-10 06:55:34 +00:00
return jsx(importDefault(16471), {}, arg1);
2026-08-06 08:05:19 +00:00
} else if (tmp(1935).ComponentType.STRING_SELECT === type) {
2026-07-20 16:05:17 +00:00
obj = {};
const merged1 = Object.assign(component);
2026-08-10 06:55:34 +00:00
return jsx(importDefault(15034), {}, arg1);
2026-08-06 08:05:19 +00:00
} else if (tmp(1935).ComponentType.TEXT_INPUT === type) {
2026-07-20 16:05:17 +00:00
const obj1 = {};
const merged2 = Object.assign(component);
2026-08-10 06:55:34 +00:00
return jsx(importDefault(16472), {}, arg1);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
if (tmp(1935).ComponentType.USER_SELECT !== type) {
if (tmp(1935).ComponentType.ROLE_SELECT !== type) {
if (tmp(1935).ComponentType.MENTIONABLE_SELECT !== type) {
if (tmp(1935).ComponentType.CHANNEL_SELECT !== type) {
if (tmp(1935).ComponentType.TEXT_DISPLAY === type) {
2026-07-20 16:05:17 +00:00
const obj2 = {};
const merged3 = Object.assign(component);
2026-08-10 06:55:34 +00:00
return jsx(importDefault(15038), {}, arg1);
2026-08-06 08:05:19 +00:00
} else if (tmp(1935).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-10 06:55:34 +00:00
return jsx(importDefault(16473), {}, arg1);
2026-08-06 08:05:19 +00:00
} else if (tmp(1935).ComponentType.FILE_UPLOAD === type) {
2026-07-20 16:05:17 +00:00
const obj4 = {};
const merged5 = Object.assign(component);
2026-08-10 06:55:34 +00:00
return jsx(importDefault(16474), {}, arg1);
2026-08-06 08:05:19 +00:00
} else if (tmp(1935).ComponentType.RADIO_GROUP === type) {
2026-07-20 16:05:17 +00:00
const obj5 = {};
const merged6 = Object.assign(component);
2026-08-10 06:55:34 +00:00
return jsx(importDefault(16476), {}, arg1);
2026-08-06 08:05:19 +00:00
} else if (tmp(1935).ComponentType.CHECKBOX_GROUP === type) {
2026-07-20 16:05:17 +00:00
const obj6 = {};
const merged7 = Object.assign(component);
2026-08-10 06:55:34 +00:00
return jsx(importDefault(16477), {}, arg1);
2026-08-06 08:05:19 +00:00
} else if (tmp(1935).ComponentType.CHECKBOX === type) {
2026-07-20 16:05:17 +00:00
obj = {};
const merged8 = Object.assign(component);
2026-08-10 06:55:34 +00:00
return jsx(importDefault(16478), {}, arg1);
2026-07-20 16:05:17 +00:00
}
}
}
}
}
const obj7 = {};
const merged9 = Object.assign(component);
2026-08-10 06:55:34 +00:00
return jsx(importDefault(15037), {}, arg1);
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
const result = require("PermissionOverwriteType").fileFinishedImporting("modules/interaction_components/native/renderComponents.tsx");
2026-07-20 16:05:17 +00:00
export { renderComponents };