      jQuery(document).ready(function($) {
        $('#dokan-store-listing-filter-wrap .dokan-store-list-filter-button').on('click',function(){
            $("#dokan-store-listing-filter-form-wrap").slideToggle();
        });

      //   console.log(dokan.storeLists);

        function setRatings(a) {
          a.preventDefault();
          const e = $(a.target),
              n = e.parent();
          n.addClass("selected"),
              [...n.find("i")].forEach(function (a) {
                  e.is(a) ? ($(a).hasClass("active") ? (n.removeClass("selected"), $(a).removeClass("active")) : $(a).addClass("active")) : $(a).removeClass("active");
              }),
              dokan.storeLists.query.rating != e.data("rating") ? (dokan.storeLists.query.rating = e.data("rating")) : delete dokan.storeLists.query.rating;
      }
      $("#dokan-store-listing-filter-form-wrap .store-ratings.item i").on("click", setRatings);

      });
