requirejs.config({
   "baseUrl": "js/",
   paths: {
	  "common": "common",
      "jquery": "../libs/jquery/dist/jquery",
      "bootstrap": "../libs/bootstrap/dist/js/bootstrap.min",
      "owlCarousel" : "../libs/owl.carousel/dist/owl.carousel.min",
   },
   shim: {
      "bootstrap": {
         deps: ["jquery"],
         exports: '$'
      },
      "owlCarousel": {
        deps: ["jquery"],
        exports: "$"
      },
   },
   enforceDefine: true
});
define([
   "common",
   "bootstrap",
   "owlCarousel",
], function(
	common,
   bootstrap,
   owlCarousel
) {
   (function($) {
   
    $('.banners-2 .carousel').each(function() {
	  $('.carousel-inner .item').first().addClass('active');
	  $('.carousel-indicators li').first().addClass('active');
   });


      // slider
      $('.carousel').carousel({
        interval: 6000,
      });

      $('#product-slider-1, #product-slider-2').owlCarousel({
        autoplay: true,
        rtl: true,
        loop: true,
        margin: 10,
        nav: true,
        dots: false,
        navText: [
           '<div class="btn-controller"><i class="fa fa-chevron-right"></i></div>',
           '<div class="btn-controller"><i class="fa fa-chevron-left"></i></div>'
        ],
        responsive: {
          0: {
            items: 1
          },
          400: {
            items: 2
          },
          700: {
            items: 4
          },
          1020: {
            items: 5
          },
        }
      });

      $('#product-slider-3').owlCarousel({
        autoplay: true,
        rtl: true,
        loop: true,
        margin: 10,
        nav: true,
        dots: false,
        navText: [
           '<div class="btn-controller"><i class="fa fa-chevron-right"></i></div>',
           '<div class="btn-controller"><i class="fa fa-chevron-left"></i></div>'
        ],
        responsive: {
          0: {
            items: 1
          },
          400: {
            items: 2
          },
          700: {
            items: 4
          },
          1020: {
            items: 6
          },

        }
      });
   })(jQuery);
});
;