import{T as k}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{_ as C}from"./index-D2j7l29-.js";import{u as F}from"./fieldsStore-CNpVuoPu.js";import{d as S,e as T,f as o,i as t,F as l,r as _,t as d,x as e,k as B,m as N,j as R}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as V,r as E,u as f}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as v,t as u}from"./vendor-vue-shared-DrzsEcag.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./appearanceStore-Cp-euDX2.js";import"./vendor-pinia-BSPefQhS.js";import"./settingsStore-8bwiLMEn.js";import"./appStore-CFAkQG2b.js";import"./Wrapper.vue_vue_type_script_setup_true_lang-D49ddy6w.js";import"./widget-RmM7xAIR.js";import"./translationsStore-D6vLzgNA.js";import"./pageBreakerStore-Bkj6mcUr.js";import"./vendor-vueform-slider-CCH9_7pb.js";import"./vendor-moment-Cv92BTSA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-php-date-formatter-DSpPwBF8.js";import"./callbackStore-BhxBUA6V.js";import"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-html2canvas-BfYXEYrK.js";import"./Button.vue_vue_type_style_index_0_lang-CxqKrtR4.js";import"./ProBadge.vue_vue_type_style_index_0_lang-DqDXUf8-.js";import"./Popup.vue_vue_type_style_index_0_lang-uNTBWSeR.js";import"./ThankYouPage-CQHohb6N.js";const G={class:"ccb-summary-repeater"},$=["onClick"],j={class:"ccb-summary-repeater__left"},w=["aria-expanded"],x={class:"ccb-summary-repeater__title"},z={class:"ccb-summary-repeater__count"},A={class:"ccb-summary-repeater__value"},ne=S({__name:"RepeaterItem",props:{summary:{}},setup(y){const h=y,{summary:c}=V(h),a=E({}),b=F(),p=T(()=>s=>Array.from(s.values()).filter(m=>m.addToSummary)),g=s=>b.getRepeaterGroupTotal(c.value,s);return(s,m)=>(t(),o("div",G,[(t(!0),o(l,null,_(f(c).groupElements,(i,r)=>(t(),o(l,null,[p.value(i).length>0?(t(),o("div",{key:0,class:"ccb-summary-repeater__header",onClick:n=>a.value[r]=!a.value[r]},[e("div",j,[e("div",{class:v(["ccb-summary-repeater__btn",{rotated:a.value[r]}]),"aria-expanded":!a.value[r]},m[0]||(m[0]=[e("i",{class:"ccb-icon-Path-3514"},null,-1)]),10,w),e("div",x,u(f(c).label),1),e("div",z,"#"+u(r+1),1)]),e("div",A,u(g(i)),1)],8,$)):d("",!0),e("div",{class:v(["ccb-summary-repeater__list",{hidden:a.value[r]}])},[p.value(i).length>0?(t(!0),o(l,{key:0},_(p.value(i),n=>(t(),B(k,{name:"fade"},{default:N(()=>[R(C,{"item-type":"summary",summary:n},null,8,["summary"])]),_:2},1024))),256)):d("",!0)],2)],64))),256))]))}});export{ne as default};
//# sourceMappingURL=RepeaterItem-3XBwTGCu.js.map
