"use strict";(this.webpackChunk_tsmesolutions_cubes_initiatives=this.webpackChunk_tsmesolutions_cubes_initiatives||[]).push([[1783],{1783:(e,t,o)=>{o.r(t),o.d(t,{default:()=>c});var i=o(24590),l=o(90726),n=o(16464),s=o(57383);const a={key:0,class:"align-content-center"},r=["disabled","id"],c=(0,i.defineComponent)({__name:"progress-reporting-tool-actions",setup(e){const t=l.IoC.DI().resolve(n.Ow.appContext),o=(0,i.inject)(n.Ow.initiativeLayoutContext),c=o.translation.tProgressReporting,p=t.translation.global,d=e=>Object.keys(o.props.reportingSetupCollapsibleTabs.value).forEach(t=>o.props.reportingSetupCollapsibleTabs.value[t]=e?"true":null),u=(0,i.computed)(()=>o.viewMode.value.isView?[]:[...o.initiativeWriteDC.model.milestones.length?[{title:c.value.addCustomReporting,icon:"plus",handler:o.actions.openReportingSetupModal}]:[],...o.props.allowUserAddProgressCustomField.value!==s.j.None?[{title:p.value.addCustomField,icon:"plus",handler:o.actions.openProgressReportingAddCustomFieldsModal}]:[]]);return(e,t)=>{const l=(0,i.resolveComponent)("v-icon"),n=(0,i.resolveComponent)("v-toolbar"),s=(0,i.resolveDirective)("fake-link");return u.value.length?((0,i.openBlock)(),(0,i.createBlock)(n,{key:0,items:u.value,class:"px-3"},(0,i.createSlots)({default:(0,i.withCtx)(()=>[(0,i.unref)(o).initiativeWriteDC.model.milestones.length&&d?((0,i.openBlock)(),(0,i.createElementBlock)("div",a,[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("a",{onClick:t[0]||(t[0]=e=>d(!0))},[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(p).expandAll),1)])),[[s]]),(0,i.createTextVNode)("   |   "),(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("a",{onClick:t[1]||(t[1]=e=>d(!1))},[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(p).collapseAll),1)])),[[s]])])):(0,i.createCommentVNode)("v-if",!0)]),_:2},[(0,i.unref)(o).viewMode.value.isView?void 0:{name:"action",fn:(0,i.withCtx)(e=>{let{item:t}=e;return[(0,i.createElementVNode)("span",(0,i.mergeProps)({class:[t.classes],disabled:t.disabled,id:t.id},t.props),[t.icon?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,name:t.icon,class:"mr-1 font-size-lg","fixed-width":""},null,8,["name"])):(0,i.createCommentVNode)("v-if",!0),(0,i.createElementVNode)("span",null,(0,i.toDisplayString)(t.title),1)],16,r)]}),key:"0"}]),1032,["items"])):(0,i.createCommentVNode)("v-if",!0)}}})}}]);
//# sourceMappingURL=48be62daa269f93938e4.js.map