import{a as k,C,k as F,b as S,m as s,g as t,F as u,H as _,u as d,q as v,p as e,I as y,D as i,f as T,w as B,n as N,T as R}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{a as V}from"./index-CyV7iH2C.js";import{c as w}from"./widget-BUAABBRb.js";import"./Wrapper.vue_vue_type_script_setup_true_lang-BmxjHg10.js";import"./translationsStore-DBJu9sBR.js";import"./ThankYouPage-bf4cLsjC.js";import"./index-CEuXXsrq.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const D={class:"ccb-summary-repeater"},E=["onClick"],G={class:"ccb-summary-repeater__left"},I=["aria-expanded"],$={class:"ccb-summary-repeater__title"},q={class:"ccb-summary-repeater__count"},z={class:"ccb-summary-repeater__value"},Q=k({__name:"RepeaterItem",props:{summary:{}},setup(f){const b=f,{summary:l}=C(b),r=F({}),h=w(),n=S(()=>o=>Array.from(o.values()).filter(c=>c.addToSummary)),g=o=>h.getRepeaterGroupTotal(l.value,o);return(o,c)=>(t(),s("div",D,[(t(!0),s(u,null,_(d(l).groupElements,(m,a)=>(t(),s(u,null,[n.value(m).length>0?(t(),s("div",{key:0,class:"ccb-summary-repeater__header",onClick:p=>r.value[a]=!r.value[a]},[e("div",G,[e("div",{class:y(["ccb-summary-repeater__btn",{rotated:r.value[a]}]),"aria-expanded":!r.value[a]},c[0]||(c[0]=[e("i",{class:"ccb-icon-Path-3514"},null,-1)]),10,I),e("div",$,i(d(l).label),1),e("div",q,"#"+i(a+1),1)]),e("div",z,i(g(m)),1)],8,E)):v("",!0),e("div",{class:y(["ccb-summary-repeater__list",{hidden:r.value[a]}])},[n.value(m).length>0?(t(!0),s(u,{key:0},_(n.value(m),p=>(t(),T(R,{name:"fade"},{default:B(()=>[N(V,{"item-type":"summary",summary:p},null,8,["summary"])]),_:2},1024))),256)):v("",!0)],2)],64))),256))]))}});export{Q as default};
//# sourceMappingURL=RepeaterItem-CQ4kp1Cz.js.map
