text: $(function(){if(Modernizr.touch){var e=$(".focus-highlight");e.length&&e.find("td, th").attr("tabindex","1").on("touchstart",function(){$(this).focus()}),$(".tablesorter").find("th").addClass("needsclick")}altair_tablesorter.pager_filter_example(),altair_tablesorter.align_widget_example(),altair_tablesorter.custom_filters()}),altair_tablesorter={pager_filter_example:function(){var t=$("#ts_pager_filter"),e=$("#columnSelector"),i={container:$(".ts_pager"),output:"{startRow} - {endRow} / {filteredRows} ({totalRows})",fixedHeight:!0,removeRows:!1,cssGoto:".ts_gotoPage"};$.tablesorter.language.button_print="Print table",$.tablesorter.language.button_close="Cancel",$("#printTable").on("click",function(e){e.preventDefault(),t.trigger("printTable")});var n=t.tablesorter({theme:"altair",widthFixed:!0,widgets:["zebra","filter","print","columnSelector"],headers:{0:{sorter:!1,parser:!1}},widgetOptions:{columnSelector_container:e,columnSelector_name:"data-name",columnSelector_layout:'<li class="padding_md"><input type="checkbox"><label class="inline-label">{name}</label></li>',columnSelector_saveColumns:!1,print_title:"",print_dataAttrib:"data-name",print_rows:"f",print_columns:"s",print_extraCSS:"",print_styleSheet:"",print_now:!0,print_callback:function(e,t,i){altair_main_sidebar.hide_sidebar(),setTimeout(function(){$.tablesorter.printTable.printOutput(e,t.html(),i)},300)}}}).tablesorterPager(i).on("pagerComplete",function(e,t){"undefined"!=typeof selectizeObj&&selectizeObj.data("selectize")&&(selectizePage=selectizeObj[0].selectize,selectizePage.setValue($("select.ts_gotoPage option:selected").index()+1,!1))});function a(){selectizeObj=$("select.ts_gotoPage").val($("select.ts_gotoPage option:selected").val()).after('<div class="selectize_fix"></div>').selectize({hideSelected:!0,onDropdownOpen:function(e){e.hide().velocity("slideDown",{duration:200,easing:easing_swiftOut})},onDropdownClose:function(e){e.show().velocity("slideUp",{duration:200,easing:easing_swiftOut}),$(".uk-tooltip").hide()}})}e.children("li").each(function(e){var t=$(this),i=0==e?"auto":e;t.children("input").attr("id","column_"+i),t.children("label").attr("for","column_"+i),t.children("input").prop("checked",!0).iCheck({checkboxClass:"icheckbox_md",radioClass:"iradio_md",increaseArea:"20%"}),0!=e&&t.find("input").on("ifChanged",function(e){$(e.target).toggleClass("checked").change()})}),$("#column_auto").on("ifChecked",function(e){$(this).closest("li").siblings("li").find("input").iCheck("disable"),$(e.target).removeClass("checked").change()}).on("ifUnchecked",function(e){$(this).closest("li").siblings("li").find("input").iCheck("enable"),$(e.target).addClass("checked").change()}),a(),$(".pagesize.ts_selectize").after('<div class="selectize_fix"></div>').selectize({hideSelected:!0,onDropdownOpen:function(e){e.hide().velocity("slideDown",{duration:200,easing:easing_swiftOut})},onDropdownClose:function(e){e.show().velocity("slideUp",{duration:200,easing:easing_swiftOut}),$(".uk-tooltip").hide(),"undefined"!=typeof selectizeObj&&selectizeObj.data("selectize")&&(selectizePage=selectizeObj[0].selectize,selectizePage.destroy(),$(".ts_gotoPage").next(".selectize_fix").remove(),setTimeout(function(){a()}))}}),$(".ts_checkbox_all").iCheck({checkboxClass:"icheckbox_md",radioClass:"iradio_md",increaseArea:"20%"}).on("ifChecked",function(){t.find(".ts_checkbox").prop("checked",!0).iCheck("update").closest("tr").addClass("row_highlighted")}).on("ifUnchecked",function(){t.find(".ts_checkbox").prop("checked",!1).iCheck("update").closest("tr").removeClass("row_highlighted")}),t.find(".ts_checkbox").on("ifUnchecked",function(){$(this).closest("tr").removeClass("row_highlighted"),$(".ts_checkbox_all").prop("checked",!1).iCheck("update")}).on("ifChecked",function(){$(this).closest("tr").addClass("row_highlighted")}),t.on("click",".ts_remove_row",function(e){e.preventDefault();var t=$(this);UIkit.modal.confirm("Are you sure you want to delete this user?",function(){t.closest("tr").remove(),n.trigger("update")},{labels:{Ok:"Delete"}})})},align_widget_example:function(){$("#ts_align").tablesorter({theme:"altair",widgets:["zebra","alignChar"],widgetOptions:{alignChar_wrap:"<i/>",alignChar_charAttrib:"data-align-char",alignChar_indexAttrib:"data-align-index",alignChar_adjustAttrib:"data-align-adjust"}})},custom_filters:function(){$("#ts_custom_filters").tablesorter({theme:"altair",headerTemplate:"{content} {icon}",widgets:["zebra","filter"],widgetOptions:{filter_reset:"button.ts_cf_reset",filter_cssFilter:["","ts_cf_range","ts_cf_select_single","ts_cf_datepicker"]}});var e=$(".ts_cf_range").ionRangeSlider({min:"0",max:"1000",type:"double","grid-num":"10","from-min":"10","from-max":"30",input_values_separator:" - "}).data("ionRangeSlider"),t=$(".ts_cf_select_single").after('<div class="selectize_fix"></div>').selectize({hideSelected:!0,dropdownParent:"body",closeAfterSelect:!0,onDropdownOpen:function(e){e.hide().velocity("slideDown",{duration:200,easing:[.4,0,.2,1]})},onDropdownClose:function(e){e.show().velocity("slideUp",{duration:200,easing:[.4,0,.2,1]})}})[0].selectize,i=UIkit.modal("#modal_daterange",{center:!0});$(".ts_cf_datepicker").on("focus",function(){i.isActive()?i.hide():i.show()});var n=$("#ts_dp_start"),a=$("#ts_dp_end"),o=UIkit.datepicker(n,{format:"MMM D, YYYY"}),l=UIkit.datepicker(a,{format:"MMM D, YYYY"});n.on("change",function(){l.options.minDate=n.val()}),a.on("change",function(){o.options.maxDate=a.val()}),$("#daterangeApply").on("click",function(e){e.preventDefault(),i.hide(),$(".ts_cf_datepicker").val(n.val()+" - "+a.val()).change().blur()}),$("button.ts_cf_reset").on("click",function(){t.clear(),e.reset()})}};