"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FoldableListBlock = void 0;
const tslib_1 = require("tslib");
const omit_1 = tslib_1.__importDefault(require("lodash/omit.js"));
const common_1 = require("../../gravity-blocks/schema/validators/common.js");
const utils_1 = require("../../gravity-blocks/schema/validators/utils.js");
const schema_1 = require("../../sub-blocks/Content/schema.js");
const FoldableListBlockContentProps = (0, omit_1.default)(schema_1.ContentBase, ['size', 'theme']);
exports.FoldableListBlock = {
    'foldable-list-block': {
        additionalProperties: false,
        required: ['title', 'items'],
        properties: {
            ...common_1.BlockBaseProps,
            ...FoldableListBlockContentProps,
            items: (0, utils_1.filteredArray)({
                type: 'object',
                required: ['title', 'text'],
                properties: {
                    title: {
                        type: 'string',
                        contentType: 'text',
                    },
                    text: {
                        type: 'string',
                        contentType: 'yfm',
                    },
                    link: common_1.LinkProps,
                    listStyle: {
                        type: 'string',
                        enum: ['dash', 'disk'],
                    },
                },
            }),
        },
    },
};
//# sourceMappingURL=schema.js.map
