"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.blockConfig = void 0;
const common_1 = require("../../schema/validators/common.js");
const textSizeEnum = common_1.textSize.map((size) => ({ value: size, content: size }));
const contentThemesEnum = common_1.contentThemes.map((size) => ({ value: size, content: size }));
exports.blockConfig = {
    name: 'Background Card',
    inputs: [
        {
            type: 'oneOf',
            name: 'title',
            title: 'Title Object',
            options: [
                {
                    title: 'Simple',
                    value: 'simple',
                    properties: [
                        {
                            type: 'text',
                            name: '',
                            title: 'Title',
                        },
                    ],
                },
                {
                    title: 'Complex',
                    value: 'complex',
                    properties: [
                        {
                            type: 'text',
                            name: 'text',
                            title: 'Title',
                        },
                        {
                            type: 'select',
                            name: 'textSize',
                            title: 'Text Size',
                            enum: textSizeEnum,
                            view: 'select',
                            mode: 'single',
                        },
                        {
                            type: 'text',
                            name: 'url',
                            title: 'Url',
                        },
                        {
                            type: 'text',
                            name: 'urlTitle',
                            title: 'Url',
                        },
                        {
                            type: 'boolean',
                            name: 'resetMargin',
                            title: 'Reset Margin',
                        },
                    ],
                },
            ],
        },
        {
            type: 'textarea',
            name: 'text',
            title: 'Description',
        },
        {
            type: 'textarea',
            name: 'additionalInfo',
            title: 'Additional Info',
        },
        {
            type: 'select',
            name: 'size',
            title: 'Size',
            enum: contentThemesEnum,
            view: 'select',
            mode: 'single',
        },
    ],
};
//# sourceMappingURL=dynamic-form.js.map
