$(function() {

	// Busca e seleção de cliente
	$('#search_client').on('keyup', function() {
		if($(this).val() != '') {
			let text = $(this).val();		
			utils.searchRequestBy('searchclient', text, 'searchresultclient');
		} else {
			$('.searchresultclient').hide();
		}
	});

	$(document).on('click', 'div.searchresultclient ul li', function() {
		let clicked = parseInt($(this).attr('data-list'));
		let text = $(this).html();

		$('input[name="filter[client]"]').val(clicked);
		$('#search_client').val(text);
		$('div.searchresultclient').hide(100);
	});
	// Fim Busca e seleção de cliente

});