"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[5721],{1504:function(t,n,e){e.r(n),e.d(n,{default:function(){return i}});var o=function(){var t=this,n=t._self._c;return n("div",{staticClass:"uk-margin-small-top actions-bar"},[t._l(t.actions,(function(e){return n("button",{key:e.label,staticClass:"uk-button uk-button-small uk-margin-small-left uk-button-primary",staticStyle:{"text-wrap":"nowrap"},attrs:{type:"button"},on:{click:function(n){return n.preventDefault(),t.model.runAction(e.action)}}},[t._v(" "+t._s(e.label)+" ")])})),n("ActionsModel",{ref:"model",attrs:{documentIds:t.documentIds,defaultActions:t.defaultActions,onBeforeAction:t.onBeforeAction,cardId:t.cardId},on:{"hook:mounted":function(n){t.model=t.$refs.model},reload:function(n){return t.$emit("reload")},"mark-null-fields":function(n){return t.$emit("mark-null-fields",n)}}})],2)},l=[],a={name:"DocCardActionsBar",props:{documentIds:{type:Array,default:()=>[]},defaultActions:{type:Array,default:()=>[]},onBeforeAction:{type:Function,default:()=>null},cardId:{type:Number,default:()=>null}},components:{ActionsModel:()=>e.e(1236).then(e.bind(e,1068))},data:()=>({model:null}),computed:{actions(){return this.model&&this.model.loaded?this.model.actions.map((t=>({label:t.NAME,action:t}))):[]}}},u=a,r=e(1656),c=(0,r.A)(u,o,l,!1,null,null,null),i=c.exports}}]);
//# sourceMappingURL=DocCardActionsBar.803036bf.js.map