(function ($) {
  "use strict";
  let wntslider = new Swiper(".wnt-banner-slider", {
    spaceBetween: 0,
    slidesPerView: 1,
    speed: 1500,
    effect: "fade",
    autoplay: {
      delay: 5000,
      disableOnInteraction: false,
    },
    pagination: {
      el: ".wnt-slider-pagination",
      clickable: true,
    },
    navigation: {
      nextEl: ".wnt-slide-next",
      prevEl: ".wnt-slide-prev",
      clickable: true,
    },
  });

  let wntTicker = new Swiper(".wnt-ticker-slider", {
    spaceBetween: 0,
    speed: 150,
    slidesPerView: 1,
    autoplay: {
      delay: 2000,
      disableOnInteraction: false,
      pauseOnMouseEnter: true,
    },
    loop: true,
    allowTouchMove: true,
    disableOnInteraction: true,
    navigation: {
      nextEl: ".wnt-slide-next",
      prevEl: ".wnt-slide-prev",
      clickable: true,
    },
    breakpoints: {
      400: {
        slidesPerView: 1,
      },
      767: {
        slidesPerView: 2,
      },
      1024: {
        slidesPerView: 3,
      },
      1180: {
        slidesPerView: 3,
      },
    },
  });

  $(".wnt-swiper-holder").find(".wp-block-post").addClass("swiper-slide");
})(jQuery);
