2026-09-15 14:23:42 +00:00
|
|
|
// Module ID: 17545
|
|
|
|
|
// Function ID: 17546
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: renderComponents
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [19, 21, 1895, 17546, 15813, 17547, 15816, 15817, 17548, 17549, 17551, 17552, 17553, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-15 14:23:42 +00:00
|
|
|
// Module 17545 (renderComponents)
|
|
|
|
|
import Server from "Server" /* 1895 */;
|
|
|
|
|
import StringSelectActionComponentDefault from "StringSelectActionComponent" /* 15813 */;
|
|
|
|
|
import SearchableSelectActionComponentDefault from "SearchableSelectActionComponent" /* 15816 */;
|
|
|
|
|
import TextDisplayComponentDefault from "TextDisplayComponent" /* 15817 */;
|
|
|
|
|
import ActionRowLayoutComponentDefault from "ActionRowLayoutComponent" /* 17546 */;
|
|
|
|
|
import TextInputActionComponentDefault from "TextInputActionComponent" /* 17547 */;
|
|
|
|
|
import LabelLayoutComponentDefault from "LabelLayoutComponent" /* 17548 */;
|
|
|
|
|
import FileUploadActionComponentDefault from "FileUploadActionComponent" /* 17549 */;
|
|
|
|
|
import RadioGroupActionComponentDefault from "RadioGroupActionComponent" /* 17551 */;
|
|
|
|
|
import CheckboxGroupActionComponentDefault from "CheckboxGroupActionComponent" /* 17552 */;
|
|
|
|
|
import CheckboxActionComponentDefault from "CheckboxActionComponent" /* 17553 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
2026-07-20 16:05:17 +00:00
|
|
|
function renderComponents(components) {
|
2026-09-10 05:38:07 +00:00
|
|
|
return components.map((item, index) => renderComponent(item, index.toString()));
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function renderComponent(component, arg1) {
|
|
|
|
|
const type = component.type;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (Server.ComponentType.ACTION_ROW === type) {
|
|
|
|
|
const obj2 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged = Object.assign(component);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.renderComponents = renderComponents;
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(ActionRowLayoutComponentDefault, {}, arg1);
|
2026-09-15 14:23:42 +00:00
|
|
|
} else if (tmp(1895).ComponentType.STRING_SELECT === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj3 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged1 = Object.assign(component);
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(StringSelectActionComponentDefault, {}, arg1);
|
2026-09-15 14:23:42 +00:00
|
|
|
} else if (tmp(1895).ComponentType.TEXT_INPUT === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj4 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged2 = Object.assign(component);
|
2026-09-10 05:38:07 +00:00
|
|
|
return jsx(TextInputActionComponentDefault, {}, arg1);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-15 14:23:42 +00:00
|
|
|
if (tmp(1895).ComponentType.USER_SELECT !== type) {
|
|
|
|
|
if (tmp(1895).ComponentType.ROLE_SELECT !== type) {
|
|
|
|
|
if (tmp(1895).ComponentType.MENTIONABLE_SELECT !== type) {
|
|
|
|
|
if (tmp(1895).ComponentType.CHANNEL_SELECT !== type) {
|
|
|
|
|
if (tmp(1895).ComponentType.TEXT_DISPLAY === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj5 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged3 = Object.assign(component);
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(TextDisplayComponentDefault, {}, arg1);
|
2026-09-15 14:23:42 +00:00
|
|
|
} else if (tmp(1895).ComponentType.LABEL === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj6 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged4 = Object.assign(component);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj6.renderComponent = renderComponent;
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(LabelLayoutComponentDefault, {}, arg1);
|
2026-09-15 14:23:42 +00:00
|
|
|
} else if (tmp(1895).ComponentType.FILE_UPLOAD === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj7 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged5 = Object.assign(component);
|
2026-09-10 05:38:07 +00:00
|
|
|
return jsx(FileUploadActionComponentDefault, {}, arg1);
|
2026-09-15 14:23:42 +00:00
|
|
|
} else if (tmp(1895).ComponentType.RADIO_GROUP === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj8 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged6 = Object.assign(component);
|
2026-09-10 05:38:07 +00:00
|
|
|
return jsx(RadioGroupActionComponentDefault, {}, arg1);
|
2026-09-15 14:23:42 +00:00
|
|
|
} else if (tmp(1895).ComponentType.CHECKBOX_GROUP === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj9 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged7 = Object.assign(component);
|
2026-09-10 05:38:07 +00:00
|
|
|
return jsx(CheckboxGroupActionComponentDefault, {}, arg1);
|
2026-09-15 14:23:42 +00:00
|
|
|
} else if (tmp(1895).ComponentType.CHECKBOX === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged8 = Object.assign(component);
|
2026-09-10 05:38:07 +00:00
|
|
|
return jsx(CheckboxActionComponentDefault, {}, arg1);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj10 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
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-09-10 05:38:07 +00:00
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/interaction_components/native/renderComponents.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export { renderComponents };
|