text: define(["config"],function(a){"use strict";var b=function(){this.sandbox.on("sulu.toolbar.add",function(){this.sandbox.emit("sulu.resource.filters.new")}.bind(this)),this.sandbox.on("sulu.header.back",function(){var b=a.get("suluresource.filters.type."+this.options.type);b.routeToList&&this.sandbox.emit("sulu.router.navigate",b.routeToList)}.bind(this)),this.sandbox.on("sulu.toolbar.delete",function(){this.sandbox.emit("husky.datagrid.items.get-selected",function(a){this.sandbox.emit("sulu.resource.filters.delete",a)}.bind(this))}.bind(this)),this.sandbox.on("husky.datagrid.number.selections",function(a){var b=a>0?"enable":"disable";this.sandbox.emit("sulu.header.toolbar.item."+b,"deleteSelected",!1)},this)};return{fullSize:{width:!0},layout:{content:{width:"max"}},header:function(){return{noBack:!1,toolbar:{buttons:{add:{},deleteSelected:{}},languageChanger:{preSelected:this.options.locale}}}},templates:["/admin/resource/template/filter/list"],initialize:function(){this.render(),b.call(this)},renderGrid:function(){this.sandbox.dom.html(this.$el,this.renderTemplate("/admin/resource/template/filter/list")),this.sandbox.sulu.initListToolbarAndList.call(this,"filterFields","/admin/api/filters/fields?locale="+this.options.locale,{el:this.$find("#list-toolbar-container"),instanceName:"filterSearch",template:"default"},{el:this.sandbox.dom.find("#filter-list",this.$el),url:"/admin/api/filters?locale="+this.options.locale+"&flat=true&context="+this.options.type,resultKey:"filters",storageName:"filters",searchInstanceName:"filterSearch",searchFields:["name"],actionCallback:function(a){this.sandbox.emit("sulu.resource.filters.edit",a)}.bind(this)})},render:function(){this.renderGrid()}}});