import { ComponentTypeFactory, FieldTypeFactory } from '@sentecacommerce-theme/base';
import { FitImageEnum, ListingBannerSizeEnum } from './listingBanner.props';
export var ListingBannerType = ComponentTypeFactory.create('ListingBanner', {
  mobileImage: FieldTypeFactory.image({
    required: false
  }),
  desktopImage: FieldTypeFactory.image({
    required: false
  }),
  alt: FieldTypeFactory.text({
    required: true
  }),
  link: FieldTypeFactory.text({
    required: false
  }),
  fitImage: FieldTypeFactory.enum({
    of: [{
      value: FitImageEnum.Cover,
      label: 'Cover'
    }, {
      value: FitImageEnum.Contain,
      label: 'Contain'
    }]
  }),
  size: {
    mobile: FieldTypeFactory.enum({
      of: [{
        value: ListingBannerSizeEnum.One,
        label: 'One Product'
      }, {
        value: ListingBannerSizeEnum.Two,
        label: 'Two Products'
      }]
    }),
    desktop: FieldTypeFactory.enum({
      of: [{
        value: ListingBannerSizeEnum.One,
        label: 'One Product'
      }, {
        value: ListingBannerSizeEnum.Two,
        label: 'Two Products'
      }, {
        value: ListingBannerSizeEnum.Three,
        label: 'Three Products'
      }]
    })
  },
  expiry: {
    validFrom: FieldTypeFactory.number({
      required: true
    }),
    validTo: FieldTypeFactory.number({
      required: true
    })
  }
});
//# sourceMappingURL=listingBanner.type.js.map