/*----------------------------------------------------*/
/*  Table Default
/*  @datatable plugin
/*----------------------------------------------------*/
!function(a){a.extend(!0,a.fn.dataTable.defaults,{sDom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'table-responsive'rt><'row'<'col-sm-6'p><'col-sm-6'i>>",sPaginationType:"bootstrap",oLanguage:{sLengthMenu:"_MENU_ records per page",sPrevious:"prev",sNext:"next",sProcessing:"<div class='indicator'><div class='spinner'></div></div>"}}),a.extend(a.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper"}),a.fn.dataTableExt.oApi.fnPagingInfo=function(a){return{iStart:a._iDisplayStart,iEnd:a.fnDisplayEnd(),iLength:a._iDisplayLength,iTotal:a.fnRecordsTotal(),iFilteredTotal:a.fnRecordsDisplay(),iPage:-1===a._iDisplayLength?0:Math.ceil(a._iDisplayStart/a._iDisplayLength),iTotalPages:-1===a._iDisplayLength?0:Math.ceil(a.fnRecordsDisplay()/a._iDisplayLength)}},a.extend(a.fn.dataTableExt.oPagination,{bootstrap:{fnInit:function(b,c,d){var e=b.oLanguage.oPaginate,f=function(a){a.preventDefault(),b.oApi._fnPageChange(b,a.data.action)&&d(b)};a(c).append('<ul class="pagination"><li class="prev disabled"><a href="#"><span class="fa fa-angle-double-left"></span> <span class="text">'+e.sPrevious+"</span></a></li>"+'<li class="next disabled"><a href="#"><span class="text">'+e.sNext+'</span> <span class="fa fa-angle-double-right"></span></a></li>'+"</ul>");var g=a("a",c);a(g[0]).bind("click.DT",{action:"previous"},f),a(g[1]).bind("click.DT",{action:"next"},f)},fnUpdate:function(b,c){var g,h,i,j,k,l,d=5,e=b.oInstance.fnPagingInfo(),f=b.aanFeatures.p,m=Math.floor(d/2);for(e.iTotalPages<d?(k=1,l=e.iTotalPages):e.iPage<=m?(k=1,l=d):e.iPage>=e.iTotalPages-m?(k=e.iTotalPages-d+1,l=e.iTotalPages):(k=e.iPage-m+1,l=k+d-1),g=0,h=f.length;h>g;g++){for(a("li:gt(0)",f[g]).filter(":not(:last)").remove(),i=k;l>=i;i++)j=i==e.iPage+1?'class="active"':"",a("<li "+j+'><a href="#">'+i+"</a></li>").insertBefore(a("li:last",f[g])[0]).bind("click",function(d){d.preventDefault(),b._iDisplayStart=(parseInt(a("a",this).text(),10)-1)*e.iLength,c(b)});0===e.iPage?a("li:first",f[g]).addClass("disabled"):a("li:first",f[g]).removeClass("disabled"),e.iPage===e.iTotalPages-1||0===e.iTotalPages?a("li:last",f[g]).addClass("disabled"):a("li:last",f[g]).removeClass("disabled")}}}}),a.fn.DataTable.TableTools&&(a.extend(!0,a.fn.DataTable.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn btn-default",disabled:"disabled"},collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info modal"},select:{row:"active"}}),a.extend(!0,a.fn.DataTable.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}))}(jQuery);