"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BackgroundCard = 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 common_1 = require("../../gravity-blocks/schema/validators/common.js");
const event_1 = require("../../gravity-blocks/schema/validators/event.js");
const schema_2 = require("../Content/schema.js");
const BackgroundCardContentProps = (0, omit_1.default)(schema_2.ContentBase, ['controlPosition']);
exports.BackgroundCard = {
    'background-card': {
        additionalProperties: false,
        required: ['title', 'text'],
        properties: {
            ...common_1.BaseProps,
            ...common_1.CardBase,
            ...common_1.CardLayoutProps,
            ...BackgroundCardContentProps,
            url: {
                type: 'string',
            },
            urlTitle: {
                type: 'string',
            },
            background: (0, common_1.withTheme)(schema_1.ImageObjectProps),
            backgroundColor: {
                type: 'string',
            },
            paddingBottom: {
                type: 'string',
                enum: ['s', 'm', 'l', 'xl'],
            },
            analyticsEvents: {
                oneOf: [
                    {
                        ...event_1.AnalyticsEventSchema,
                        optionName: 'single',
                    },
                    {
                        type: 'array',
                        items: event_1.AnalyticsEventSchema,
                        optionName: 'list',
                    },
                ],
            },
            controlPosition: {
                type: 'string',
                enum: ['content', 'footer'],
            },
            colSizes: common_1.containerSizesObject,
        },
    },
};
//# sourceMappingURL=schema.js.map
