{% comment %} Please do not edit this file. It is automatically updated by Judge.me{% endcomment %}


{% if widget_type == 'judgeme_review_widget' %}
<div style='clear:both'></div>
<div id='judgeme_product_reviews' class='jdgm-widget jdgm-review-widget' data-product-title='{{ product.title | escape }}' data-id='{{ product.id }}'
data-from-snippet='{% if concierge_install != nil  %}{{ concierge_install }}{% else %}true{% endif %}'
data-auto-install='{% if auto_install != nil %}{{ auto_install }}{% else %}false{% endif %}'>
  {{ product.metafields.judgeme.widget }}
</div>
{% endif %}

{% if widget_type == 'judgeme_verified_reviews_count_badge' %}
<div style='clear:both'></div>
<div style='text-align: center'>
  <a class="jdgm-verified-count-badget" href="javascript:void(0)" data-from-snippet='{% if concierge_install != nil %}{{ concierge_install }}{% else %}true{% endif %}'>
    {{ shop.metafields.judgeme.verified_badge }}
  </a>
</div>
{% endif %}

{% if widget_type == 'judgeme_all_reviews_text' %}
<div class='jdgm-widget jdgm-all-reviews-text' data-from-snippet='{% if concierge_install != nil  %}{{ concierge_install }}{% else %}true{% endif %}' >
  <a href="javascript:void(0)">
    Customers rate us {{ shop.metafields.judgeme.all_reviews_rating | round: 1 }}/5 based on {{ shop.metafields.judgeme.all_reviews_count }} reviews.
  </a>
</div>
{% endif %}

{% if widget_type == 'judgeme_floating_tab' %}
<section class='jdgm-widget jdgm-revs-tab'>
  {% assign jm_metafields = shop.metafields.judgeme %}
  <div class='jdgm-revs-tab-btn btn' position="none">★ Judge.me Reviews</div>
  <div class='jdgm-revs-tab__header'>
    <a class='jdgm-close-ico'></a>
    <h3 class='jdgm-revs-tab__title'>Let customers speak for us</h3>
    <a href='/pages/reviews'>
      <div data-score='{{ jm_metafields.all_reviews_rating }}' class='jdgm-all-reviews-rating'></div>{{ jm_metafields.all_reviews_count }} reviews
    </a>
  </div>
  {{ jm_metafields.reviews_tab }}
</section>
{% endif %}

{% if widget_type == 'judgeme_featured_carousel' %}
<div class='jdgm-carousel-wrapper'
data-from-snippet='{% if concierge_install != nil %}{{ concierge_install }}{% else %}true{% endif %}'
data-auto-install='{% if auto_install != nil %}{{ auto_install }}{% else %}false{% endif %}'  >
  <div class="jdgm-carousel-title-and-link">
    <h2 class='jdgm-carousel-title'>Let customers speak for us</h2>
    <a href=javascript:void(0) class='jdgm-all-reviews-rating-wrapper'>
      <span style="display:block"  data-score='{{ shop.metafields.judgeme.all_reviews_rating }}' class='jdgm-all-reviews-rating'></span>
      <span style="display: block">
        from {{ shop.metafields.judgeme.all_reviews_count }} reviews
      </span>
    </a>
  </div>
  {{ shop.metafields.judgeme.featured_carousel }}
</div>
{% endif %}

{% if widget_type == 'judgeme_preview_badge' %}
<div style='{{ jm_style }}' class='jdgm-widget jdgm-preview-badge' data-id='{{ product.id }}'
data-template='{% if concierge_install == true or concierge_install == nil %}{{ template }}{% else %}manual-installation{% endif %}'
data-auto-install='{% if auto_install != nil %}{{ auto_install }}{% else %}false{% endif %}'>
  {{ product.metafields.judgeme.badge }}
</div>
{% endif %}

