"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[40],{1813:function(t,s,a){a.r(s),a.d(s,{default:function(){return c}});var e=function(){var t=this,s=t._self._c;return s("div",[t._m(0),s("div",{ref:"dropdown",staticClass:"uk-padding-small",staticStyle:{"max-height":"400px",overflow:"auto"},attrs:{"uk-dropdown":"mode: click"}},[s("ul",{staticClass:"uk-nav uk-dropdown-nav"},[t._l(t.displayOptions,(function(a){return s("li",{key:a.title,class:{"uk-active":a.selected}},[s("a",{attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.setExport(a)}}},[a.selected?s("i",{staticClass:"fas fa-check"}):t._e(),t._v(" "+t._s(a.title)+" ")])])})),s("li",{class:{"uk-active":!t.curExportId}},[s("a",{attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.setExport(null)}}},[t.curExportId?t._e():s("i",{staticClass:"fas fa-check"}),t._v(" Новая выгрузка ")])])],2)])])},i=[function(){var t=this,s=t._self._c;return s("button",{staticClass:"uk-button uk-button-small uk-button-default",staticStyle:{"margin-right":"5px"},attrs:{type:"button"}},[s("i",{staticClass:"fas fa-table"}),s("span",{staticClass:"uk-visible@l uk-margin-small-left"},[t._v(" Выгрузки "),s("i",{staticClass:"fas fa-caret-down"})])])}],l=a(2779),r={name:"ExportsList",props:{options:Array,curExportId:{type:Number,default:null}},data:()=>({}),computed:{displayOptions(){return this.options.map((t=>({id:t.DOCUMENT_ID,selected:t.DOCUMENT_ID===this.curExportId,title:t.DOC_DESCR})))}},mounted(){this.dropdown=l.dropdown(this.$refs.dropdown,{mode:"click"})},methods:{setExport(t){this.$emit("change",t?t.id:null),this.dropdown.hide(!1)}}},n=r,u=a(1656),o=(0,u.A)(n,e,i,!1,null,null,null),c=o.exports}}]);
//# sourceMappingURL=ExportsList.a28b9167.js.map