"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IMAGES_EVENTS_MAP_TYPE = exports.IMAGES_MAP_PROVIDER = void 0;
const content_image_const_1 = require("../content-image/content-image.const");
const map_const_1 = require("../map/map.const");
exports.IMAGES_MAP_PROVIDER = 'ImagesMapProvider';
exports.IMAGES_EVENTS_MAP_TYPE = {
    name: 'ImagesAndEventsMap',
    inheritedTypesIds: [map_const_1.MAP_TYPE.name, content_image_const_1.DISPLAYED_IMAGE_GALLERY_TYPE.name],
    definition: {
        properties: {
            eventsLayerName: {
                type: 'string',
                title: 'events layer label',
                'x-schema-form': {
                    type: 'conditional-text',
                    conditionalValue: {
                        title: 'Display events on map',
                        defaultValue: `return 'Events'`,
                    },
                },
            },
            imagesLayerName: {
                type: 'string',
                title: 'images layer label',
                'x-schema-form': {
                    type: 'conditional-text',
                    conditionalValue: {
                        title: 'Display images on map',
                        defaultValue: `return 'Images'`,
                    },
                },
            },
            selectedGalleriesObjectTreeIds: {
                'x-schema-form': {
                    condition: { functionBody: 'return !!model.imagesLayerName' },
                },
            },
        },
    },
};
//# sourceMappingURL=images-map.const.js.map