"use strict";(this.webpackChunk_tsmesolutions_cubes_initiatives=this.webpackChunk_tsmesolutions_cubes_initiatives||[]).push([[4521],{54521:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r});var o=l(24590);const a={model:Object,groupedFields:Object},n={class:"collapse-indicator flip-up mr-2"},d=(0,o.defineComponent)({__name:"collapsed-meta",props:a,setup(e){const t=e,l=(0,o.ref)(Object.keys(t.groupedFields||{}).reduce((e,t)=>(e[t]=!0,e),{}));return(e,t)=>{const a=(0,o.resolveComponent)("v-icon"),d=(0,o.resolveComponent)("v-collapse-toggle"),r=(0,o.resolveComponent)("v-literal"),s=(0,o.resolveComponent)("v-col"),c=(0,o.resolveComponent)("v-row"),i=(0,o.resolveComponent)("v-collapse");return(0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(Object.entries(e.groupedFields),t=>{let[p,u]=t;return(0,o.openBlock)(),(0,o.createBlock)(i,{modelValue:l.value[p],"onUpdate:modelValue":e=>l.value[p]=e,model:!0,class:"my-2 p-2",key:p},{head:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{indicator:!1,tag:"span",class:"d-flex justify-content-between p-3 bg-secondary"},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(u.first?.group),1),(0,o.createElementVNode)("span",n,[(0,o.createVNode)(a,{name:"chevron-down",accent:"primary",size:"lg"})])]),_:2},1024)]),default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(u.sort((t,l)=>e.model[t.metadataFieldId].rank-e.model[l.metadataFieldId].rank),t=>((0,o.openBlock)(),(0,o.createBlock)(c,{class:"px-3 py-2",key:`${p}-${t.group}`},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(s,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(r,{modelValue:e.model[`${t.metadataFieldId}`].name,"onUpdate:modelValue":l=>e.model[`${t.metadataFieldId}`].name=l},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),(0,o.createVNode)(s,null,{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.displayValue),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])}),128)}}}),r=d}}]);
//# sourceMappingURL=de5c521c2c5081a5d5ba.js.map