maxChecks ) { clearInterval(interval); return; } if (!$(input).is(':visible')) { return; } if ( activeElement && $(activeElement).closest('.elementor-popup-modal')[0] !== $modal[0] ) { clearInterval(interval); return; } if ( activeElement !== input && ( !activeElement || activeElement === document.body || $(activeElement).hasClass('dialog-close-button') || activeElement === $modal.find('.dialog-widget-content')[0] ) ) { input.focus(); } }, 60); }; $(document).on('focusin', '.elementor-popup-modal .dgwt-wcas-search-input', function() { var $modal = $(this).closest('.elementor-popup-modal'); keepFocusOnInput($modal, this, 'fibosearchFocusGuardToken', 25); }); }); })(jQuery); //# sourceURL=jquery-dgwt-wcas-js-after