import{template as e,makeStyleResponsive as s}from"@gem-sdk/core";import{getLiquidForAppBlock as t}from"../common/helpers.js";let Growave=({setting:i,advanced:n})=>{let{align:r,appBlockId:a,version:p,widgetType:d}=i??{};return"v2"===p?t(a,r,n?.cssClass):e`
  <div
    class="gp-ignore-base-style ${n?.cssClass}"
    style="${{...s("ta",r)}}"
  >
    {% assign widget = '${d}' %}
    {% 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>
`};export{Growave as default};
