"use strict";

exports.__esModule = true;
exports.BannerType = void 0;

var _base = require("@sentecacommerce-theme/base");

var BannerType = _base.ComponentTypeFactory.create('Banner', {
  images: _base.FieldTypeFactory.list({
    of: {
      image: _base.FieldTypeFactory.image({
        required: false,
        label: 'Mobile Image'
      }),
      imageDesktop: _base.FieldTypeFactory.image({
        required: false
      }),
      bannerUrl: _base.FieldTypeFactory.text(),
      buttonTitle: _base.FieldTypeFactory.text({
        required: false
      }),
      buttonCaption: _base.FieldTypeFactory.text({
        required: false
      }),
      title: _base.FieldTypeFactory.text({
        required: false
      }),
      height: _base.FieldTypeFactory.number({
        required: false,
        defaultValue: 700
      }),
      inverted: _base.FieldTypeFactory["boolean"]({
        defaultValue: false,
        required: false
      }),
      expiry: {
        validFrom: _base.FieldTypeFactory.number({
          required: false
        }),
        validTo: _base.FieldTypeFactory.number({
          required: false
        })
      }
    }
  })
});

exports.BannerType = BannerType;
//# sourceMappingURL=banner.type.js.map