import{P as g}from"./PriceSavingsInPercentFi-CaRG3hZo.js";import{_ as p,r as m,o as i,b as s,a as u,q as c,p as o,v as a,F as l,u as _,n as v}from"./main-DHoZdmBw.js";const P={name:"PriceSavingsFi",components:{PriceSavingsInPercentFi:g},props:{bestPrice:{type:Object,default:()=>({})},isMobile:{type:Boolean,default:!1},theme:{type:String,default:null},hideSavingsInPercent:{type:Boolean,default:!1},showTotalPicePrefix:{type:Boolean,default:!1},strokePriceAbsolute:{type:Boolean,default:!1},useEco:Boolean},computed:{savingsInformation(){var r,n;return(n=(r=this.bestPrice)==null?void 0:r.price)==null?void 0:n.savingsInformation}}},k={key:0,class:"price-savings-fi__eco-wrapper"},b={class:"price-savings-fi__eco-label"},h={key:0,class:"price-savings-fi__price-stroke","data-test":"price-savings-price-stroke"},y={class:"price-savings-fi__eco-price"},I={key:2,class:"price-savings-fi__price-stroke"};function F(r,n,e,S,B,t){var f;const d=m("price-savings-in-percent-fi");return(f=e.bestPrice)!=null&&f.price?(i(),s("div",{key:0,class:v({"price-savings-fi":!0,"price-savings-fi--is-mobile":e.isMobile,"price-savings-fi--stroke-price-absolute":e.strokePriceAbsolute,[`price-savings-fi--theme-${e.theme}`]:e.theme}),"data-test":"price-savings"},[!e.hideSavingsInPercent&&t.savingsInformation?(i(),u(d,{key:0,class:"price-savings-fi__price-savings-in-percent","best-price":e.bestPrice},null,8,["best-price"])):c("",!0),o("div",{class:v({"price-savings-fi__price":!0,"price-savings-fi__price--stroke":t.savingsInformation}),"data-test":"price-savings-price"},[e.useEco?(i(),s("div",k,[o("div",b,a(r.$dict.get("checkout.Cart.Sum")),1),t.savingsInformation?(i(),s("span",h,a(t.savingsInformation.totalStrokePriceValueFormatted),1)):c("",!0),o("div",y,a(e.bestPrice.price.totalValueFormatted),1)])):(i(),s(l,{key:1},[e.showTotalPicePrefix?(i(),s(l,{key:0},[_(a(`${r.$dict.get("product-List.Table.Total")} ${e.bestPrice.price.totalValueFormatted}`),1)],64)):(i(),s(l,{key:1},[_(a(e.bestPrice.price.totalValueFormatted),1)],64)),t.savingsInformation?(i(),s("span",I,a(t.savingsInformation.totalStrokePriceValueFormatted),1)):c("",!0)],64))],2)],2)):c("",!0)}const x=p(P,[["render",F],["__scopeId","data-v-490019f9"]]);export{x as P};