title: 'Product Offering'
sections:
  main:
    display: Main
    fields:
      -
        handle: title
        field:
          type: text
          required: true
          validate:
            - required
      -
        handle: products
        field:
          collapse: false
          previews: true
          sets:
            product_item:
              display: 'Product Item'
              fields:
                -
                  handle: name
                  field:
                    input_type: text
                    antlers: false
                    display: Name
                    type: text
                    icon: text
                    listable: hidden
                    instructions_position: above
                    visibility: visible
                    always_save: false
                -
                  handle: name_color
                  field:
                    theme: classic
                    lock_opacity: false
                    default_color_mode: HEXA
                    color_modes:
                      - hex
                    display: 'Name Color'
                    type: color
                    icon: color
                    listable: hidden
                    instructions_position: above
                    visibility: visible
                    always_save: false
                -
                  handle: description
                  field:
                    character_limit: '300'
                    antlers: false
                    display: Description
                    type: textarea
                    icon: textarea
                    listable: hidden
                    instructions_position: above
                    visibility: visible
                    always_save: false
                -
                  handle: size
                  field:
                    input_type: text
                    antlers: false
                    display: Size
                    type: text
                    icon: text
                    listable: hidden
                    instructions_position: above
                    visibility: visible
                    always_save: false
                -
                  handle: buy_now_url
                  field:
                    display: 'Buy Now URL'
                    type: link
                    icon: link
                    listable: hidden
                    instructions_position: above
                    visibility: visible
                    always_save: false
                -
                  handle: image
                  field:
                    mode: list
                    container: site
                    restrict: false
                    allow_uploads: true
                    show_filename: true
                    max_files: 1
                    display: Image
                    type: assets
                    icon: assets
                    listable: hidden
                    instructions_position: above
                    visibility: visible
                    always_save: false
          display: Products
          type: replicator
          icon: replicator
          listable: hidden
          instructions_position: above
          visibility: visible
          always_save: false
      -
        handle: image
        field:
          mode: list
          container: site
          restrict: false
          allow_uploads: true
          show_filename: true
          max_files: 1
          display: Image
          type: assets
          icon: assets
          instructions: 'Used when there are multiple products'
          listable: hidden
          instructions_position: above
          visibility: visible
          always_save: false
  sidebar:
    display: Sidebar
    fields:
      -
        handle: slug
        field:
          type: slug
          localizable: true
      -
        handle: design_type
        field:
          options:
            one-item-v1: 'One Item - v1'
            one-item-v2: 'One Item - v2'
            one-item-v3: 'One Item - v3'
            one-item-v4: 'One Item - v4'
            two-items-v1: 'Two Items - v1'
            two-items-v2: 'Two Items - v2'
            title-with-image: 'Title with Image Placeholder'
          multiple: false
          clearable: false
          searchable: true
          taggable: false
          push_tags: false
          cast_booleans: false
          display: 'Design Type'
          type: select
          icon: select
          listable: hidden
          instructions_position: above
          visibility: visible
          always_save: false
      -
        handle: background_color
        field:
          theme: classic
          lock_opacity: false
          default_color_mode: HEXA
          color_modes:
            - hex
          display: 'Background Color'
          type: color
          icon: color
          listable: hidden
          instructions_position: above
          visibility: visible
          always_save: false
      -
        handle: background_image
        field:
          mode: list
          container: site
          restrict: false
          allow_uploads: true
          show_filename: true
          max_files: 1
          display: 'Background Image'
          type: assets
          icon: assets
          listable: hidden
          instructions_position: above
          visibility: visible
          always_save: false
      -
        handle: order
        field:
          default: '1'
          display: Order
          type: integer
          icon: integer
          listable: hidden
          instructions_position: above
          visibility: visible
          always_save: false
