import{u as _}from"./translationsStore-D6vLzgNA.js";import{d as m,e as p,f as i,i as a,t as n,x as o}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as h,u as s}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as e,a as w}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-pinia-BSPefQhS.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";const v=["id"],y={key:0,class:"ccb-total-row__discount"},b={class:"name"},f={class:"value"},T={class:"ccb-total-row__item"},k={class:"ccb-total-row__name"},D={key:0,class:"discount"},V={class:"ccb-total-row__value"},x={key:0,class:"discount"},g=["innerHTML"],z=m({__name:"TotalItem",props:{summary:{}},setup(l){const r=_(),d=l,{summary:t}=h(d),u=p(()=>t.value.label==="Total"?r.getTranslations.total:t.value.label);return(S,c)=>(a(),i("div",{class:w(["ccb-total-row",s(t).additionalStyles||""]),id:s(t).alias},[s(t).hasDiscount&&s(t).discount&&s(t).discount.viewType==="show_with_title"?(a(),i("div",y,[c[0]||(c[0]=o("div",{class:"label"},"Discount:",-1)),o("div",b,e(s(t).discount.discountName),1),o("div",f,e(s(t).discount.extraView),1)])):n("",!0),o("div",T,[o("div",k,[o("span",null,e(u.value),1),s(t).hasDiscount&&s(t).discount&&s(t).discount.viewType==="show_without_title"?(a(),i("span",D,e(s(t).discount.extraView),1)):n("",!0)]),o("div",V,[s(t).hasDiscount&&s(t).discount&&s(t).discount.viewType==="show_without_title"?(a(),i("span",x,e(s(t).originalDisplayView),1)):n("",!0),o("span",null,e(s(t).displayValue),1)])]),s(t).description&&s(t).description.length>0?(a(),i("div",{key:1,class:"ccb-total-row__description",innerHTML:s(t).description},null,8,g)):n("",!0)],10,v))}});export{z as default};
//# sourceMappingURL=TotalItem-B-oDNpGQ.js.map
