import{a as k,k as T,b as g,m as r,g as l,p as s,q as y,n as B,u as a,ab as v,I as c,K as f,D as h,J as C}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{_ as K}from"./HeaderTitle.vue_vue_type_style_index_0_lang-BP1XF0_q.js";import{a as V}from"./widget-BUAABBRb.js";import{u as x}from"./translationsStore-DBJu9sBR.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";const D={class:"ccb-summary-list"},N={class:"ccb-summary-list__header"},P=["onKeydown","aria-label","aria-expanded"],O={class:"ccb-summary-list__titles"},I=k({__name:"SummaryList",setup(U){var d;const t=V(),o=x(),n=T(((d=t.general)==null?void 0:d.showDetailsAccordion)||!1),S=g(()=>{var e;return!((e=t.general)!=null&&e.showOptionUnit)}),w=g(()=>{var e;return(e=t.general)==null?void 0:e.iconPath}),i=()=>{n.value=!n.value};return(e,m)=>{var u,p,_,b;return l(),r("div",D,[s("div",N,[B(K,{title:(u=a(t).getGeneralSettings)==null?void 0:u.headerTitle,icon:w.value},null,8,["title","icon"]),(p=a(t).general)!=null&&p.descriptions?(l(),r("button",{key:0,class:c(["ccb-summary-list__accordion-btn",{rotated:!n.value}]),onClick:i,onKeydown:[v(f(i,["prevent"]),["enter"]),v(f(i,["prevent"]),["space"])],type:"button","aria-label":((_=a(o).getTranslations)==null?void 0:_.details)||"Toggle details","aria-expanded":n.value},m[0]||(m[0]=[s("i",{class:"ccb-icon-Path-3485"},null,-1)]),42,P)):y("",!0)]),(b=a(t).general)!=null&&b.descriptions?(l(),r("div",{key:0,class:c(["ccb-summary-list__body",{hidden:!n.value}])},[s("div",O,[s("div",null,h(a(o).getTranslations.name),1),s("div",null,h(a(o).getTranslations.total),1)]),s("div",{class:c(["ccb-summary-list__wrapper",{"ccb-summary-list__wrapper--disable-option-unit":S.value}])},[C(e.$slots,"default")],2)],2)):y("",!0)])}}});export{I as default};
//# sourceMappingURL=SummaryList-Bsx162ze.js.map
