"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[3979],{2516:function(t,s,i){i.r(s),i.d(s,{default:function(){return c}});var a=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"margin-left":"5px"}},[t._m(0),s("div",{ref:"dropdown",staticClass:"uk-padding-small",attrs:{"uk-dropdown":"mode: click"}},[s("ul",{staticClass:"uk-nav uk-dropdown-nav"},t._l(t.menuItems,(function(i){return s("li",{key:i.title},[s("a",{attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.run(i)}}},[s("i",{class:i.icon}),s("span",{staticClass:"uk-margin-small-left"},[t._v(t._s(i.title))])])])})),0)])])},n=[function(){var t=this,s=t._self._c;return s("button",{staticClass:"uk-button uk-button-small uk-button-default",staticStyle:{"min-width":"32px"},attrs:{type:"button"}},[s("i",{staticClass:"fas fa-ellipsis-v"}),s("span",{staticClass:"uk-visible@l uk-margin-small-left"},[t._v(" Операции "),s("i",{staticClass:"fas fa-caret-down"})])])}],e=i(2779),r={name:"ExportOperations",props:{curExport:Object},computed:{curExportId(){return this.curExport?.DOCUMENT_ID},menuItems(){let t=[];return this.curExportId&&!this.curExport.EDIT||t.push({icon:"fas fa-upload",title:"Сохранить выгрузку",action:()=>this.$emit("save",!1)}),this.curExportId&&(t.push({icon:"far fa-clone",title:"Сохранить, как копию",action:()=>this.$emit("save",!0)}),t.push({icon:"fas fa-star",title:"Добавить в меню",action:()=>this.$emit("to-menu")}),this.curExport.ACCESS&&t.push({icon:"fas fa-users-cog",title:"Настройка доступа",action:()=>this.$emit("permissions")}),this.curExport.EDIT&&t.push({icon:"far fa-trash-alt",title:"Удалить",action:()=>this.$emit("delete")})),t}},mounted(){this.dropdown=e.dropdown(this.$refs.dropdown,{mode:"click"})},methods:{run(t){this.dropdown.hide(!1),t.action()}}},o=r,u=i(1656),l=(0,u.A)(o,a,n,!1,null,null,null),c=l.exports}}]);
//# sourceMappingURL=ExportOperations.bb005147.js.map