"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IMAGE_GALLERY_IMAGE_SUBTYPE = exports.IMAGE_GALLERIES_IMAGE_GALLERY_CONCATENATION_SUBTYPE = exports.IMAGE_GALLERIES_IMAGE_GALLERY_SUBTYPE = exports.IMAGE_GALLERY_CONCATENATION_IMAGE_SUBTYPE = exports.IMAGE_TYPE = exports.IMAGE_GALLERY_CONCATENATION_TYPE = exports.IMAGE_GALLERY_SELECTOR_TYPE = exports.IMAGE_GALLERY_REFERRER_TYPE = exports.DISPLAYED_IMAGE_GALLERY_TYPE = exports.IMAGE_GALLERY_TYPE = exports.IMAGE_GALLERIES_TYPE = exports.CONTENT_IMAGE_SERVICE = exports.CONTENT_IMAGE_PROVIDER = void 0;
exports.CONTENT_IMAGE_PROVIDER = 'ContentImageProvider';
exports.CONTENT_IMAGE_SERVICE = 'ContentImageService';
exports.IMAGE_GALLERIES_TYPE = {
    name: 'ImageGalleries',
    title: 'Image galleries',
    definition: {
        properties: {},
    },
    contentType: '',
    iconView: 'fas fa-photo-video',
};
exports.IMAGE_GALLERY_TYPE = {
    name: 'ImageGallery',
    title: 'Image gallery',
    definition: {
        properties: {},
    },
    contentType: '',
    iconView: 'far fa-images',
};
exports.DISPLAYED_IMAGE_GALLERY_TYPE = {
    name: 'DisplayedImageGallery',
    inheritedTypesIds: [exports.IMAGE_GALLERY_TYPE.name],
    definition: {
        properties: {},
    },
    contentType: '',
};
exports.IMAGE_GALLERY_REFERRER_TYPE = {
    name: 'ImageGalleryReferrer',
    title: 'Images referrer',
    definition: {
        properties: {
            imageGalleryObjectTreeId: {
                title: 'Image gallery',
                type: 'string',
                oneOfTree: [
                    {
                        treeType: exports.IMAGE_GALLERY_TYPE.name,
                    },
                ],
            },
        },
    },
    contentType: '',
};
exports.IMAGE_GALLERY_SELECTOR_TYPE = {
    name: 'ImageGallerySelector',
    inheritedTypesIds: [exports.IMAGE_GALLERY_REFERRER_TYPE.name],
    definition: {
        properties: {
            selectedImages: {
                title: 'Selected images',
                type: 'array',
                items: {
                    type: 'string',
                },
                'x-schema-form': {
                    condition: 'undefined !== embeddedCondition',
                },
            },
        },
    },
    contentType: '',
};
exports.IMAGE_GALLERY_CONCATENATION_TYPE = {
    name: 'ImageGalleryConcatenation',
    title: 'Concatenation of galleries',
    inheritedTypesIds: [exports.DISPLAYED_IMAGE_GALLERY_TYPE.name],
    definition: {
        properties: {
            selectedGalleriesObjectTreeIds: {
                title: 'Selected galleries',
                type: 'array',
                items: {
                    type: 'string',
                    enumOfTree: [
                        {
                            treeType: exports.IMAGE_GALLERY_TYPE.name,
                        },
                    ],
                },
            },
        },
    },
    contentType: '',
};
exports.IMAGE_TYPE = {
    name: 'Image',
    definition: {
        properties: {
            imagePosition: {
                title: 'Image position',
                type: 'string',
                'x-schema-form': {
                    type: 'position',
                    conditionalValue: {
                        title: 'Set the image position',
                    },
                },
            },
            imageDate: {
                title: 'Shooting date',
                type: 'string',
                'x-schema-form': {
                    type: 'date-time',
                    conditionalValue: {
                        title: 'Set a shooting date',
                    },
                },
            },
        },
    },
    contentType: 'ContentImage',
    iconView: 'far fa-image',
    templateView: '<span class="child-tree-preview"><span class="child-image-name">{{dataNode.title}}</span><img style="padding-left: 10px;height: 50px;" src="{{dataNode.contentImageUri}}"/></span>',
};
exports.IMAGE_GALLERY_CONCATENATION_IMAGE_SUBTYPE = {
    typeName: exports.IMAGE_GALLERY_CONCATENATION_TYPE.name,
    subTypeName: exports.IMAGE_TYPE.name,
    max: 0,
};
exports.IMAGE_GALLERIES_IMAGE_GALLERY_SUBTYPE = {
    typeName: exports.IMAGE_GALLERIES_TYPE.name,
    subTypeName: exports.IMAGE_GALLERY_TYPE.name,
    name: exports.IMAGE_GALLERY_TYPE.name,
    acl: false,
    namespace: false,
    owner: false,
    tree: true,
};
exports.IMAGE_GALLERIES_IMAGE_GALLERY_CONCATENATION_SUBTYPE = {
    typeName: exports.IMAGE_GALLERIES_TYPE.name,
    subTypeName: exports.IMAGE_GALLERY_CONCATENATION_TYPE.name,
    name: exports.IMAGE_GALLERY_CONCATENATION_TYPE.name,
    acl: false,
    namespace: false,
    owner: false,
    tree: true,
};
exports.IMAGE_GALLERY_IMAGE_SUBTYPE = {
    typeName: exports.IMAGE_GALLERY_TYPE.name,
    subTypeName: exports.IMAGE_TYPE.name,
    name: exports.IMAGE_TYPE.name,
    acl: false,
    namespace: false,
    owner: false,
    tree: false,
};
//# sourceMappingURL=content-image.const.js.map