decord/source/modules/interaction_components/native/renderComponents.tsx
2026-08-05 07:35:12 +00:00

71 lines
2.9 KiB
TypeScript

// Module ID: 16318
// Function ID: 16319
// Name: renderComponents
// Dependencies: [19, 21, 1906, 16319, 14908, 16320, 14911, 14912, 16321, 16322, 16324, 16325, 16326, 2]
// Module 16318 (renderComponents)
import "noop";
import { jsx } from "jsxProd";
const require = arg1;
function renderComponents(components) {
return components.map((arg0, arg1) => callback(arg0, arg1.toString()));
}
function renderComponent(component, arg1) {
const type = component.type;
if (require(1906) /* PermissionOverwriteType */.ComponentType.ACTION_ROW === type) {
let obj = {};
const merged = Object.assign(component);
obj.renderComponents = renderComponents;
return jsx(importDefault(16319), {}, arg1);
} else if (tmp(1906).ComponentType.STRING_SELECT === type) {
obj = {};
const merged1 = Object.assign(component);
return jsx(importDefault(14908), {}, arg1);
} else if (tmp(1906).ComponentType.TEXT_INPUT === type) {
const obj1 = {};
const merged2 = Object.assign(component);
return jsx(importDefault(16320), {}, arg1);
} else {
if (tmp(1906).ComponentType.USER_SELECT !== type) {
if (tmp(1906).ComponentType.ROLE_SELECT !== type) {
if (tmp(1906).ComponentType.MENTIONABLE_SELECT !== type) {
if (tmp(1906).ComponentType.CHANNEL_SELECT !== type) {
if (tmp(1906).ComponentType.TEXT_DISPLAY === type) {
const obj2 = {};
const merged3 = Object.assign(component);
return jsx(importDefault(14912), {}, arg1);
} else if (tmp(1906).ComponentType.LABEL === type) {
const obj3 = {};
const merged4 = Object.assign(component);
obj3.renderComponent = renderComponent;
return jsx(importDefault(16321), {}, arg1);
} else if (tmp(1906).ComponentType.FILE_UPLOAD === type) {
const obj4 = {};
const merged5 = Object.assign(component);
return jsx(importDefault(16322), {}, arg1);
} else if (tmp(1906).ComponentType.RADIO_GROUP === type) {
const obj5 = {};
const merged6 = Object.assign(component);
return jsx(importDefault(16324), {}, arg1);
} else if (tmp(1906).ComponentType.CHECKBOX_GROUP === type) {
const obj6 = {};
const merged7 = Object.assign(component);
return jsx(importDefault(16325), {}, arg1);
} else if (tmp(1906).ComponentType.CHECKBOX === type) {
obj = {};
const merged8 = Object.assign(component);
return jsx(importDefault(16326), {}, arg1);
}
}
}
}
}
const obj7 = {};
const merged9 = Object.assign(component);
return jsx(importDefault(14911), {}, arg1);
}
}
const result = require("PermissionOverwriteType").fileFinishedImporting("modules/interaction_components/native/renderComponents.tsx");
export { renderComponents };