/** Shopify CDN: Minification failed

Line 16:0 Unexpected "{"
Line 16:1 Expected identifier but found "%"
Line 17:8 Unexpected "/"
Line 20:1 Expected identifier but found "%"
Line 22:0 Unexpected "<"
Line 27:3 Unexpected "{"
Line 27:10 Expected ":"
Line 29:2 Unexpected "{"
Line 29:3 Expected identifier but found "%"
Line 30:2 Unexpected "{"
... and 53 more hidden warnings

**/
{%- comment -%}
snippets/variant-selector-cf.liquid
Creates one <select> per option axis, each populated
with the unique values from your product.variants.
{%- endcomment -%}

<variant-selects
  class="no-js-hidden"
  data-section="{{ block.section_id }}"
  data-url="{{ prod.url }}"
  data-updateurl="true"
  {{ block.shopify_attributes }}
>
  {% assign opt_count = prod.options.size %}
  {% for i in (0..opt_count | minus: 1) %}
    {% assign option_name = prod.options[i] %}
    {% if option_name != blank %}
      <div class="product-form__option">
        <label for="SelectOption-{{ block.section_id }}-{{ i }}">
          {{ option_name }}
        </label>

        {%- comment -%} Gather unique values for this option index {%- endcomment -%}
        {% assign values_csv = "" %}
        {% for variant in prod.variants %}
          {% assign vval = variant.options[i] %}
          {% unless values_csv contains vval %}
            {% capture values_csv %}{{ values_csv }},{{ vval }}{% endcapture %}
          {% endunless %}
        {% endfor %}
        {% assign values_array = values_csv | split: "," | slice: 1 %}

        <select
          id="SelectOption-{{ block.section_id }}-{{ i }}"
          name="options[{{ i }}]"
          aria-label="{{ option_name }}"
        >
          {% for v in values_array %}
            <option value="{{ v }}">{{ v }}</option>
          {% endfor %}
        </select>
      </div>
    {% endif %}
  {% endfor %}

  {%- comment -%} JSON for Shopify’s VariantSelects logic {%- endcomment -%}
  <script type="application/json" data-all-variants>
    {{ prod.variants | json }}
  </script>
</variant-selects>
