"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WEB_SITE_CACHE_LANG_PAGE_CACHE_SUBTYPE = exports.WEB_SITE_VIEW_URL_WEB_SITE_CACHE_LANG_SUBTYPE = exports.WEB_SITE_VIEW_WEB_SITE_VIEW_URL_SUBTYPE = exports.PAGE_CACHE_TYPE = exports.WEB_SITE_CACHE_LANG_TYPE = exports.WEB_SITE_VIEW_URL_TYPE = exports.HOME_PAGE_PROVIDER = void 0;
const web_site_const_1 = require("./../web-site/web-site.const");
exports.HOME_PAGE_PROVIDER = 'HomePageProvider';
exports.WEB_SITE_VIEW_URL_TYPE = {
    name: 'WebSiteViewUrl',
    title: 'Web site URL',
    definition: {
        properties: {
            title: {
                type: 'string',
                'x-schema-form': {
                    condition: 'false',
                },
                required: false,
            },
            name: {
                type: 'string',
                'x-schema-form': {
                    condition: 'false',
                },
                required: false,
            },
            host: {
                type: 'string',
                title: 'Web site domain',
                required: true,
            },
            path: {
                type: 'string',
                title: 'Web site path',
                description: 'An option path after /site like http://&lt;Web site domain&gt;/site/&lt;Web site path&gt;',
            },
            protocol: {
                type: 'string',
                title: 'Default protocol',
                oneOf: [
                    {
                        enum: ['http'],
                        title: 'Http',
                    },
                    {
                        enum: ['https'],
                        title: 'Https',
                    },
                ],
            },
        },
    },
    iconView: 'fas fa-globe-europe',
};
exports.WEB_SITE_CACHE_LANG_TYPE = {
    name: 'WebSiteCacheLang',
    title: 'Country language publication',
    templateView: '<span class="child-tree-preview">{{dataNode.name}}</span>',
    iconView: 'far fa-flag',
    forcedAccessRights: { create: false, update: false },
};
exports.PAGE_CACHE_TYPE = {
    name: 'PageCache',
    title: 'Page cache',
    contentType: 'ContentPageCache',
    forcedAccessRights: { create: false, update: false },
    definition: {
        properties: {
            title: {
                type: 'string',
                'x-schema-form': {
                    condition: 'false',
                },
                required: false,
            },
            name: {
                type: 'string',
                'x-schema-form': {
                    condition: 'false',
                },
                required: false,
            },
            pageUrl: {
                type: 'string',
                title: 'Page url',
            },
        },
    },
    iconView: 'fas fa-database',
};
exports.WEB_SITE_VIEW_WEB_SITE_VIEW_URL_SUBTYPE = {
    typeName: web_site_const_1.WEB_SITE_VIEW_TYPE.name,
    subTypeName: exports.WEB_SITE_VIEW_URL_TYPE.name,
    owner: true,
};
exports.WEB_SITE_VIEW_URL_WEB_SITE_CACHE_LANG_SUBTYPE = {
    typeName: exports.WEB_SITE_VIEW_URL_TYPE.name,
    subTypeName: exports.WEB_SITE_CACHE_LANG_TYPE.name,
    namespace: true,
};
exports.WEB_SITE_CACHE_LANG_PAGE_CACHE_SUBTYPE = {
    typeName: exports.WEB_SITE_CACHE_LANG_TYPE.name,
    subTypeName: exports.PAGE_CACHE_TYPE.name,
};
//# sourceMappingURL=home-page.const.js.map