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