import omit from "lodash/omit.js";
import metaInfo from "../../components/MetaInfo/schema.js";
import { BaseProps, CardLayoutProps, MediaProps, } from "../../gravity-blocks/schema/validators/common.js";
import { AnalyticsEventSchema } from "../../gravity-blocks/schema/validators/event.js";
import { ContentBase } from "../Content/schema.js";
export const LayoutItem = {
    type: 'object',
    additionalProperties: false,
    required: ['content', 'media'],
    properties: {
        ...BaseProps,
        ...CardLayoutProps,
        media: MediaProps,
        content: omit(ContentBase, ['colSize', 'centered']),
        contentMargin: {
            type: 'string',
            enum: ['m', 'l'],
            default: 'm',
        },
        metaInfo: metaInfo,
        border: {
            type: 'boolean',
        },
        fullscreen: {
            type: 'boolean',
        },
        analyticsEvents: {
            oneOf: [
                {
                    ...AnalyticsEventSchema,
                    optionName: 'single',
                },
                {
                    type: 'array',
                    items: AnalyticsEventSchema,
                    optionName: 'list',
                },
            ],
        },
    },
};
//# sourceMappingURL=schema.js.map
