"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[6253],{6246:function(t,e,l){l.r(e),l.d(e,{default:function(){return a}});var i=function(){var t=this,e=t._self._c;return e("ButtonMenu",{attrs:{title:"Фильтры",dropdownTitle:"Выберите фильтр",icon:'<i class="fas fa-filter"></i>',buttonClasses:t.buttonClasses,showListIcons:!0,items:t.options},on:{select:t.setFilter}})},s=[],n={name:"DoclistFilterList",components:{ButtonMenu:()=>l.e(2466).then(l.bind(l,6433))},props:{filters:Array,curXmlFilter:{type:Object,default:null}},data:()=>({}),computed:{buttonClasses(){var t=["uk-button","uk-button-small"];return t.push(this.curXmlFilter?"uk-button-primary":"uk-button-default"),t},options(){const t='<i class="fas fa-check"></i>';let e=[{id:0,icon:this.curXmlFilter?null:t,title:"Без фильтра",filter:null,main:!0}];e.push({id:"new",icon:this.curXmlFilter&&!this.curXmlFilter.DOCUMENT_ID?t:null,title:"Новый фильтр",main:!0});for(let l of this.filters)e.push({id:l.DOCUMENT_ID,icon:l.DOCUMENT_ID===this.curXmlFilter?.DOCUMENT_ID?t:null,title:l.DOC_DESCR,filter:l});return e}},methods:{setFilter(t){"new"===t.id?this.$emit("createXml"):this.$emit("change",t.filter)}}},u=n,r=l(1656),o=(0,r.A)(u,i,s,!1,null,null,null),a=o.exports}}]);
//# sourceMappingURL=FilterList.2f66b3ba.js.map