1jQuery(document).ready(function($){let searchTimeout;const originalContent={};$(document).on('input','.wtm-live-search',function(){const $input=$(this);const $container=$input.closest('.dwl-team-wrapper');const $loading=$input.siblings('.wtm-search-loading');const $results=$container.find('.dwl-team-wrapper--main');const searchTerm=$input.val().trim();const containerId=$container.attr('id')||'default';if(!originalContent[containerId]){originalContent[containerId]=$results.html()} 2clearTimeout(searchTimeout);if(searchTerm.length===0){$results.html(originalContent[containerId]);$container.find('.wtm-pagination-wrap, .dwl-team-load-more-wrap, .dwl-team-ajax-pagination-wrap').show();$loading.hide();if(typeof initTeamPopup==='function'){initTeamPopup()} 3return} 4if(searchTerm.length<2){return} 5searchTimeout=setTimeout(function(){$loading.show();$results.addClass('wtm-searching');$.ajax({url:wtm_ajax.ajax_url,type:'POST',data:{action:'wtm_live_search',search:searchTerm,layout:$input.data('layout'),style:$input.data('style'),nonce:wtm_ajax.nonce},success:function(response){$loading.hide();$results.removeClass('wtm-searching');if(response.success){$results.html(response.data);$container.find('.wtm-pagination-wrap, .dwl-team-load-more-wrap, .dwl-team-ajax-pagination-wrap').hide();if(typeof initTeamPopup==='function'){initTeamPopup()}}},error:function(){$loading.hide();$results.removeClass('wtm-searching')}})},300)})})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.