"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormBlock = void 0;
const tslib_1 = require("tslib");
const omit_1 = tslib_1.__importDefault(require("lodash/omit.js"));
const schema_1 = require("../../components/Image/schema.js");
const schema_2 = require("../../components/YandexForm/schema.js");
const common_1 = require("../../gravity-blocks/schema/validators/common.js");
const schema_3 = require("../../sub-blocks/Content/schema.js");
const schema_4 = require("../../sub-blocks/HubspotForm/schema.js");
const FormBlockContentProps = (0, omit_1.default)(schema_3.ContentBase, ['size', 'centered', 'colSizes']);
exports.FormBlock = {
    'form-block': {
        additionalProperties: false,
        required: ['formData'],
        properties: {
            ...common_1.BlockBaseProps,
            title: {
                type: 'string',
            },
            formData: {
                oneOf: [
                    {
                        type: 'object',
                        optionName: 'yandex',
                        properties: {
                            yandex: (0, common_1.withTheme)(schema_2.YandexFormProps),
                        },
                    },
                    {
                        type: 'object',
                        optionName: 'hubspot',
                        properties: {
                            hubspot: (0, common_1.withTheme)(schema_4.HubspotFormProps),
                        },
                    },
                ],
            },
            textContent: {
                additionalProperties: false,
                properties: FormBlockContentProps,
            },
            direction: {
                enum: ['content-form', 'form-content', 'center'],
            },
            background: schema_1.ImageProps,
        },
    },
};
//# sourceMappingURL=schema.js.map
