"use strict";(this.webpackChunk_tsmesolutions_cubes_initiatives=this.webpackChunk_tsmesolutions_cubes_initiatives||[]).push([[5509],{5509:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});var o=t(24590),r=t(90726),n=t(16464),l=t(19244);const s={class:"page-navs px-0 bg-transparent mb-3"},i={class:"nav-scroller"},c={class:"nav nav-tabs"},d=(0,o.defineComponent)({__name:"view",setup(e){const a=r.IoC.DI().resolve(n.Ow.appContext),d=a.translation.global,p=(0,o.inject)(n.Ow.programsLayoutContext),u=(0,o.toRef)(p.props,"collapseModels"),m=(0,o.ref)(1),f=a.services[l.St.AppService.key]?.application.config.discussionAllowed,v=e=>{m.value=e},C=(0,o.defineAsyncComponent)(()=>t.e(3669).then(t.bind(t,93669))),k=(0,o.defineAsyncComponent)(()=>t.e(3607).then(t.bind(t,53607))),g=(0,o.defineAsyncComponent)(()=>t.e(3226).then(t.bind(t,73226))),b=(0,o.defineAsyncComponent)(()=>t.e(4654).then(t.bind(t,44654)));return(e,a)=>{const t=(0,o.resolveComponent)("v-collapse-toggle"),r=(0,o.resolveComponent)("v-collapse"),n=(0,o.resolveDirective)("fake-link");return(0,o.unref)(p)?.props?.programRead?.id?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.createVNode)(r,{modelValue:u.value.details,"onUpdate:modelValue":a[0]||(a[0]=e=>u.value.details=e),tag:"v-card",model:"details",key:"details",class:"mb-3"},{head:(0,o.withCtx)(e=>{let{collapsed:a}=e;return[(0,o.createVNode)(t,{class:(0,o.normalizeClass)(["has-pointer",{"border-bottom-0 mb-3":!a}])},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("b",null,(0,o.toDisplayString)((0,o.unref)(d).details),1)]),_:2},1032,["class"])]}),default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(C),{program:(0,o.unref)(p).props.programRead},null,8,["program"])]),_:1},8,["modelValue"]),(0,o.createVNode)(r,{modelValue:u.value.permissions,"onUpdate:modelValue":a[3]||(a[3]=e=>u.value.permissions=e),tag:"v-card",model:"permissions",key:"permissions",class:"mb-0"},{head:(0,o.withCtx)(e=>{let{collapsed:a}=e;return[(0,o.createVNode)(t,{class:(0,o.normalizeClass)(["has-pointer",{"border-bottom-0 mb-3":!a}])},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("b",null,(0,o.toDisplayString)((0,o.unref)(d).strategicInitiative),1)]),_:2},1032,["class"])]}),default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("nav",s,[(0,o.createElementVNode)("div",i,[(0,o.createElementVNode)("div",c,[(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("a",{class:(0,o.normalizeClass)(["nav-link",1==m.value?"active":""]),onClick:a[1]||(a[1]=e=>v(1))},[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(d).tableView),1)],2)),[[n]]),(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("a",{disabled:"",class:(0,o.normalizeClass)(["nav-link",2==m.value?"active":""]),onClick:a[2]||(a[2]=e=>v(2))},[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(d).ganttView),1)],2)),[[n]])])])]),(0,o.createVNode)(o.TransitionGroup,{name:"fade",appear:""},{default:(0,o.withCtx)(()=>[1==m.value?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(k),{key:0,"program-id":(0,o.unref)(p).props.programRead.id,"is-draft":(0,o.unref)(p).props.programRead.isDraft,"is-correction":(0,o.unref)(p).props.isCorrection.value},null,8,["program-id","is-draft","is-correction"])):2==m.value?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(g),{key:1,"program-id":e.$route.params.id,"is-draft":(0,o.unref)(p).props.programRead.isDraft,"is-correction":(0,o.unref)(p).props.isCorrection.value},null,8,["program-id","is-draft","is-correction"])):(0,o.createCommentVNode)("v-if",!0)]),_:1})]),_:1},8,["modelValue"]),(0,o.unref)(f)?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(b),{key:0,id:(0,o.unref)(p).props.programRead.id,translation:(0,o.unref)(d)},null,8,["id","translation"])):(0,o.createCommentVNode)("v-if",!0)],64)):(0,o.createCommentVNode)("v-if",!0)}}})}}]);
//# sourceMappingURL=7559d601a027b19af48b.js.map