( function( $ ) {
    
    "use strict";

    var pxl_widget_progressbar_handler = function( $scope, $ ) {
        elementorFrontend.waypoint($scope.find('.pxl--progressbar'), function () {
            $(this).progressbar();
        });
    };

    $( window ).on( 'elementor/frontend/init', function() {
        elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_progressbar.default', pxl_widget_progressbar_handler );
        elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_team_single.default', pxl_widget_progressbar_handler );
        elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_video_single.default', pxl_widget_progressbar_handler );
        elementorFrontend.hooks.addAction( 'frontend/element_ready/pxl_carousel_custom.default', pxl_widget_progressbar_handler );
    } );
} )( jQuery );