(function($) {

    "use strict";

    var client_js = function($scope, $) {


        
        if ($('.clients-carousel').length) {
            $('.clients-carousel').owlCarousel({
                loop: true,
                margin: 30,
                nav: false,
                smartSpeed: 3000,
                autoplay: true,
                navText: ['<span class="fas fa-angle-left"></span>', '<span class="fas fa-angle-right"></span>'],
                responsive: {
                    0: {
                        items: 1
                    },
                    480: {
                        items: 2
                    },
                    600: {
                        items: 3
                    },
                    800: {
                        items: 4
                    },
                    1200: {
                        items: 5
                    }

                }
            });
        }

        
        if ($('.four-item-carousel').length) {
            $('.four-item-carousel').owlCarousel({
                loop: true,
                margin: 30,
                nav: true,
                smartSpeed: 500,
                autoplay: 5000,
                navText: ['<span class="fas fa-angle-left"></span>', '<span class="fas fa-angle-right"></span>'],
                responsive: {
                    0: {
                        items: 1
                    },
                    600: {
                        items: 2
                    },
                    800: {
                        items: 2
                    },
                    1024: {
                        items: 3
                    },
                    1200: {
                        items: 4
                    }
                }
            });
        }



    }


    $(window).on('elementor/frontend/init', function() {
        elementorFrontend.hooks.addAction('frontend/element_ready/dormatic_clients.default', client_js);
    });
})(window.jQuery);