"use strict";

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

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

var _listingBanner = require("./listingBanner.props");

var ListingBannerType = _base.ComponentTypeFactory.create('ListingBanner', {
  mobileImage: _base.FieldTypeFactory.image({
    required: false
  }),
  desktopImage: _base.FieldTypeFactory.image({
    required: false
  }),
  alt: _base.FieldTypeFactory.text({
    required: true
  }),
  link: _base.FieldTypeFactory.text({
    required: false
  }),
  fitImage: _base.FieldTypeFactory["enum"]({
    of: [{
      value: _listingBanner.FitImageEnum.Cover,
      label: 'Cover'
    }, {
      value: _listingBanner.FitImageEnum.Contain,
      label: 'Contain'
    }]
  }),
  size: {
    mobile: _base.FieldTypeFactory["enum"]({
      of: [{
        value: _listingBanner.ListingBannerSizeEnum.One,
        label: 'One Product'
      }, {
        value: _listingBanner.ListingBannerSizeEnum.Two,
        label: 'Two Products'
      }]
    }),
    desktop: _base.FieldTypeFactory["enum"]({
      of: [{
        value: _listingBanner.ListingBannerSizeEnum.One,
        label: 'One Product'
      }, {
        value: _listingBanner.ListingBannerSizeEnum.Two,
        label: 'Two Products'
      }, {
        value: _listingBanner.ListingBannerSizeEnum.Three,
        label: 'Three Products'
      }]
    })
  },
  expiry: {
    validFrom: _base.FieldTypeFactory.number({
      required: true
    }),
    validTo: _base.FieldTypeFactory.number({
      required: true
    })
  }
});

exports.ListingBannerType = ListingBannerType;
//# sourceMappingURL=listingBanner.type.js.map