HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/vfconf/wp-content/plugins/so-widgets-bundle/compat/elementor/sowb-elementor.js
var sowb = window.sowb || {};

( function($){

	// To ensure necessary scripts are executed again when settings are changed
	$( window ).on( 'elementor:init', function() {
		elementor.on( 'preview:loaded', function () {
			var preview_window = elementor.$preview.get( 0 ).contentWindow;
			var $sowb = preview_window.jQuery( preview_window.sowb );
			var timeoutId;
			elementorFrontend.hooks.addAction( 'frontend/element_ready/widget', function(){
				// Debounce
				if ( timeoutId ) {
					clearTimeout( timeoutId );
				}
				timeoutId = setTimeout( function () {
					// Trigger Widgets Bundle widgets to setup
					$sowb.trigger( 'setup_widgets', { preview: true } );
					timeoutId = null;
				}, 300 );
			} );
		} );
	} );

})(jQuery);