"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core");const ProductReviews=({setting:e,advanced:s})=>{let{widgetType:d,align:i}=e??{};return core.template`
    <div
      class="${s?.cssClass}"
      style="${{...core.makeStyleResponsive("ta",i)}}"
    >
      <div>
        {% assign widget = '${d}' %}
        {% if widget == 'reviews' %}
          <div id="shopify-product-reviews" data-id="{{product.id}}">{{ product.metafields.spr.reviews }}</div>
        {% else %}
          <span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>
        {% endif %}
      </div>
    </div>
  `};exports.default=ProductReviews;
