define(["modules/tables/module","datatables","datatables-responsive","datatables-colvis","datatables-tools","datatables-bootstrap"],function(a){"use strict";return a.registerDirective("datatableColumnFilter",function(){return{restrict:"A",link:function(a,b){var c=void 0,d={tablet:1024,phone:480},e=b.DataTable({sDom:"<'dt-toolbar'<'col-xs-12 col-sm-6 hidden-xs'f><'col-sm-6 col-xs-12 hidden-xs'<'toolbar'>>r>t<'dt-toolbar-footer'<'col-sm-6 col-xs-12 hidden-xs'i><'col-xs-12 col-sm-6'p>>",oLanguage:{sSearch:"<span class='input-group-addon input-sm'><i class='glyphicon glyphicon-search'></i></span> "},autoWidth:!1,preDrawCallback:function(){c||(c=new ResponsiveDatatablesHelper(b,d))},rowCallback:function(a){c.createExpandIcon(a)},drawCallback:function(){c.respond()}});b.parent().find("div.toolbar").html('<div class="text-right"><img src="styles/img/logo.png" alt="SmartAdmin" style="width: 111px; margin-top: 3px; margin-right: 10px;"></div>'),b.on("keyup change","thead th input[type=text]",function(){e.column($(this).parent().index()+":visible").search(this.value).draw()})}}})});