!function(t){var n=t(".loading-ring"),a=t(".candidates-list"),i=null,e=null;function o(t){a.find('input[name="page"]').val(t)}function c(){var a=t("form.candidate-filter-form"),i=a.serialize(),o=a.attr("action"),c=location.origin+location.pathname;e&&e.abort(),e=t.ajax({url:o,method:"GET",data:i,beforeSend:function(){n.show(),window.history.pushState(i,null,"".concat(c,"?").concat(i))},success:function(n){t(".candidate-list").html(n.data.list),t(".text-showing").text(n.data.total_text)},complete:function(){n.hide()}})}n.hide(),a.find(".box-list-character").on("click",".keyword",(function(){i&&clearTimeout(i),o(1),t(this).toggleClass("active"),a.find(".keyword.active").not(t(this)).removeClass("active"),t(this).hasClass("active")?a.find('input[name="keyword"]').val(t(this).data("keyword")):a.find('input[name="keyword"]').val(""),i=setTimeout((function(){c()}),200)})),a.on("click",".per-page",(function(){o(1),c()})),t(".sort-by").on("click",(function(){o(1),a.find('input[name="sort_by"]').val(t(this).data("sort-by")),c()})),a.on("click","a.pagination-button",(function(n){n.preventDefault(),a.find('input[name="page"]').val(t(this).data("page")),c()}))}(jQuery);