"use strict";(this.webpackChunk_tsmesolutions_cubes_initiatives=this.webpackChunk_tsmesolutions_cubes_initiatives||[]).push([[1581],{81581:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});var i=t(24590),o=t(16464),a=t(19244),s=t(90726);const r=(0,i.defineComponent)({__name:"index",setup(e){const n=s.IoC.DI().resolve(o.Ow.appContext),r=n.translation.global,c=(0,i.inject)(o.Ow.initiativeLayoutContext),l=(0,i.ref)(),u=n.services[a.St.AppService.key]?.application.config.discussionAllowed;(0,i.watch)(()=>l.value,e=>new Promise((n,t)=>{try{e&&c?.api.registerForm(e),n()}catch(e){t(e)}}));const f=(0,i.defineAsyncComponent)(()=>t.e(171).then(t.bind(t,20171))),p=(0,i.defineAsyncComponent)(()=>t.e(6433).then(t.bind(t,46433))),d=(0,i.defineAsyncComponent)(()=>t.e(4654).then(t.bind(t,44654)));return(e,n)=>e.$route.meta.createInitiative?((0,i.openBlock)(),(0,i.createBlock)((0,i.unref)(p),{key:0,ref_key:"formRef",ref:l},null,512)):((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createVNode)((0,i.unref)(f),{initiative:(0,i.unref)(c).initiative.value},null,8,["initiative"]),(0,i.unref)(u)?((0,i.openBlock)(),(0,i.createBlock)((0,i.unref)(d),{key:0,id:(0,i.unref)(c).initiative.value.id,"custom-styles":"mx-3",translation:(0,i.unref)(r)},null,8,["id","translation"])):(0,i.createCommentVNode)("v-if",!0)],64))}})}}]);
//# sourceMappingURL=88f08152b6e4ea63f9ff.js.map