"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),s=require("../common/helpers.js");exports.default=({setting:t,advanced:i})=>{let{align:r,appBlockId:n,version:p,widgetType:a}=t??{};return"v2"===p?s.getLiquidForAppBlock(n,r,i?.cssClass):e.template`
  <div
    class="gp-ignore-base-style ${i?.cssClass}"
    style="${{...e.makeStyleResponsive("ta",r)}}"
  >
    {% assign widget = '${a}' %}
    {% case widget %}
      {% when "reviews" %}
        {% capture the_snippet_reviews %}{% render 'socialshopwave-widget-recommends' with 1 %}{% endcapture %}
        {% unless the_snippet_reviews contains 'Liquid error' %}
          {{ the_snippet_reviews }}
        {% endunless %}
      {% when "badge" %}
        {% capture the_snippet_review_avg %}{% render 'ssw-widget-avg-rate-profile' %}{% endcapture %}
        {% unless the_snippet_review_avg contains 'Liquid error' %}
        {{ the_snippet_review_avg }}
        {% endunless %}
      {% when "productListBadge" %}
        {% capture the_snippet_review_avg %}{% render 'ssw-widget-avg-rate-listing' product: product %}{% endcapture %}
        {% unless the_snippet_review_avg contains 'Liquid error' %}
          {{ the_snippet_review_avg }}
        {% endunless %}
      {% when "wishList" %}
        {% capture the_snippet_fave %}{% render 'socialshopwave-widget-fave' %}{% endcapture %}
        {% unless the_snippet_fave contains 'Liquid error' %}
          {{ the_snippet_fave }}
        {% endunless  %}
      {% when "socialShare" %}
        {% capture the_snippet_share %}
        {% render  'ssw-widget-share-links' with 1 %}
        {% endcapture %}
        {% unless the_snippet_share contains 'Liquid error' %}
          {{ the_snippet_share }}
        {% endunless %}
      {% when "favorite" %}
        {% capture the_snippet_fave_icon %}
          {% render 'ssw-widget-faveicon' with product.id %}
        {% endcapture %}
        {% unless the_snippet_fave_icon contains 'Liquid error' %}
          {{ the_snippet_fave_icon }}
        {% endunless %}
    {% endcase %}
  </div>
`};
