"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LayoutItem = void 0;
const tslib_1 = require("tslib");
const omit_1 = tslib_1.__importDefault(require("lodash/omit.js"));
const schema_1 = require("../../blocks/Media/schema.js");
const schema_2 = tslib_1.__importDefault(require("../../components/MetaInfo/schema.js"));
const common_1 = require("../../schema/validators/common.js");
const event_1 = require("../../schema/validators/event.js");
const schema_3 = require("../Content/schema.js");
exports.LayoutItem = {
    type: 'object',
    additionalProperties: false,
    required: ['content', 'media'],
    properties: {
        ...common_1.BaseProps,
        ...common_1.CardLayoutProps,
        media: schema_1.Media,
        content: (0, omit_1.default)(schema_3.ContentBase, ['colSize', 'size', 'centered']),
        contentMargin: {
            type: 'string',
            enum: ['m', 'l'],
            default: 'm',
        },
        metaInfo: schema_2.default,
        border: {
            type: 'boolean',
        },
        fullscreen: {
            type: 'boolean',
        },
        analyticsEvents: {
            oneOf: [
                {
                    ...event_1.AnalyticsEventSchema,
                    optionName: 'single',
                },
                {
                    type: 'array',
                    items: event_1.AnalyticsEventSchema,
                    optionName: 'list',
                },
            ],
        },
    },
};
//# sourceMappingURL=schema.js.map
