<commit_before><% permitted_params = params.permit(:color, :keywords, :price, :size, :sort_by) %>

<div data-hook="search_results">
  <% if @products.empty? %>
    <% if !params[:color].blank? || !params[:price].blank? || !params[:size].blank? %>
      <%= render 'spree/products/no_results_with_filters', permitted_params: permitted_params %>
    <% else %>
      <%= render 'spree/products/no_results' %>
    <% end %>
  <% else %>
    <% if params[:keywords] %>
      <div class="container d-md-flex pt-md-5">
        <div class="plp-results-text text-uppercase mx-md-auto py-md-5">
          <%= "#{@products.total_count} #{Spree.t('plp.results_for')} '#{params[:keywords].upcase}'" %>
        </div>
      </div>
    <% end %>

    <% unless @taxon %>
      <div id="no-taxon-banner">
        <div class="container">
          <%= lazy_image(
            src: asset_path('homepage/products.jpg'),
            alt: 'products-banner',
            width: 1110,
            height: 300,
            class: 'w-100 d-none d-md-block'
          ) %>
        </div><commit_msg>[SD-593] Don't display category baner on Search results<commit_after><% permitted_params = params.permit(:color, :keywords, :price, :size, :sort_by) %>

<div data-hook="search_results">
  <% if @products.empty? %>
    <% if !params[:color].blank? || !params[:price].blank? || !params[:size].blank? %>
      <%= render 'spree/products/no_results_with_filters', permitted_params: permitted_params %>
    <% else %>
      <%= render 'spree/products/no_results' %>
    <% end %>
  <% else %>
    <% if params[:keywords] %>
      <div class="container d-md-flex pt-md-5">
        <div class="plp-results-text text-uppercase mx-md-auto py-md-5">
          <%= "#{@products.total_count} #{Spree.t('plp.results_for')} '#{params[:keywords].upcase}'" %>
        </div>
      </div>
    <% elsif not @taxon %>
      <div id="no-taxon-banner">
        <div class="container">
          <%= lazy_image(
            src: asset_path('homepage/products.jpg'),
            alt: 'products-banner',
            width: 1110,
            height: 300,
            class: 'w-100 d-none d-md-block'
          ) %>
        </div>
{'fraction_non_alphanumeric': 0.1928374655647383, 'fraction_numerical': 0.012396694214876033, 'mean_word_length': 2.5258899676375406, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '364068', 'n_tokens_mistral': 788, 'n_tokens_neox': 715, 'n_words': 128}