"use strict";(self.webpackChunkwpide=self.webpackChunkwpide||[]).push([[574],{84267(n,t,e){e.r(t),e.d(t,{default:()=>l});e(62010);const s={name:"FilesItemActions",props:["actions","icon","label","noPadding","count","extraToggleClass"],computed:{toggleClass:function(){var n=this.extraToggleClass?" "+this.extraToggleClass:"";return this.label?"trigger p-0 link tb-head text-secondary"+n:this.noPadding?"trigger btn btn-sm btn-icon"+n:"trigger btn btn-sm btn-icon btn-trigger"+n},iconClass:function(){return"icon ni "+(this.icon||"ni-more-h")}}};var i=(0,e(81656).A)(s,function(){var n=this,t=n._self._c;return t("b-nav-item-dropdown",{attrs:{"toggle-class":n.toggleClass,"menu-class":"link-list-plain no-bdr",right:""},scopedSlots:n._u([{key:"button-content",fn:function(){return[t("em",{class:n.iconClass}),n.label?t("span",{staticClass:"p-0",domProps:{textContent:n._s(n.label)}}):n._e(),n.count?t("span",{staticClass:"pl-1 text-muted"},[n.count>1?t("span",[n._v("("+n._s(n.sprintf(n.__("%d items","wpide"),n.count))+")")]):t("span",[n._v("("+n._s(n.sprintf(n.__("%d item","wpide"),n.count))+")")])]):n._e()]},proxy:!0},{key:"default",fn:function(){return[n._l(n.actions,function(e){return[e.allowed?t("b-dropdown-item",{key:e.key,on:{click:function(n){return n.preventDefault(),e.handler.apply(null,arguments)}}},[t("em",{staticClass:"icon ni",class:e.icon}),t("span",[n._v(n._s(e.name))])]):n._e()]})]},proxy:!0}])})},[],!1,null,null,null);const l=i.exports}}]);