import './component';
import './config';


const Criteria = Shopware.Data.Criteria;
const criteria = new Criteria();

Shopware.Service('cmsService').registerCmsElement({
    name: 'bc-category-boxes',
    label: 'sw-cms.config.bc-category-boxes.label',
    component: 'sw-cms-el-bc-category-boxes',
    configComponent: 'sw-cms-el-config-bc-category-boxes',

    defaultConfig: {
        categories: {
            source: 'static',
            value: [],
            required: true,
            entity: {
                name: 'category',
                criteria: criteria
            }
        },
        enableArrowControls: {
            source: 'static',
            value: true
        
        },
        cardLayout: {
            source: 'static',
            value: 'box'
        },
        borderColor: {
            required: true,
            source: 'static',
            value: '#fff'
        },
        backgroundColor: {
            required: true,
            source: 'static',
            value: '#cead60'
        },
        foregroundColor: {
            required: true,
            source: 'static',
            value: '#fff'
        }
    }
});
