( function( $ ) {
	var WidgetKenthaElementorEventListHandler = function( $scope, $ ) {
		if(!$('#qtBody').hasClass('elementor-editor-active')){
			return;
		}
		if(typeof( $.qtWebsiteObj ) !== 'object' ){
			console.log( 'Missing main theme script' );  
		}
		try {
			$.qtWebsiteObj.fn.dynamicBackgroundsV4('#qtBody .kentha-elementor-event-list');
			$.qtWebsiteObj.fn.countDown.init();
		} catch(e) {
			console.log(e);
		}
	};
	$( window ).on( 'elementor/frontend/init', function() {
		elementorFrontend.hooks.addAction( 'frontend/element_ready/kentha-elementor-event-list.default', WidgetKenthaElementorEventListHandler );
	} );
} )( jQuery );