"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 = tslib_1.__importDefault(require("../../components/MetaInfo/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");
exports.LayoutItem = {
    type: 'object',
    additionalProperties: false,
    required: ['content', 'media'],
    properties: {
        ...common_1.BaseProps,
        ...common_1.CardLayoutProps,
        media: common_1.MediaProps,
        content: (0, omit_1.default)(schema_2.ContentBase, ['colSize', 'centered']),
        contentMargin: {
            type: 'string',
            enum: ['m', 'l'],
            default: 'm',
        },
        metaInfo: schema_1.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
