import template from './sw-cms-el-bc-discount-banner.html.twig';
import './sw-cms-el-bc-discount-banner.scss';

Shopware.Component.register('sw-cms-el-bc-discount-banner', {
    template,

    mixins: [
        Shopware.Mixin.getByName('cms-element'),
        Shopware.Mixin.getByName('placeholder')
    ],
    created() {
        this.createdComponent();
    },

    methods: {
        createdComponent() {
            this.initElementConfig('bc-discount-banner');
            this.initElementData('bc-discount-banner');
        }
    },
    computed: {
        assetFilter() {
            return Shopware.Filter.getByName('asset');
        },
    }
});