import{d as b,l as z,p as u,m as t,t as n,s as w,z as f}from"./C8f13W7F.js";const g={key:0,class:"w-full lg:w-[400px] bg-background-secondary p-5 rounded-lg h-max"},h={class:"wizard-banner__item"},B={class:"wizard-banner__label"},k=["src","alt"],C={class:"wizard-banner__item"},N={class:"wizard-banner__text"},P={class:"wizard-banner__item"},v={class:"wizard-banner__text"},y={class:"wizard-banner__item"},D={class:"wizard-banner__text"},M=b({__name:"EnergoBanner",props:{item:{}},setup(I){function p(e){if(e)return e===1?"1 mÄ›sĂc":e>1&&e<=4?`${e} mÄ›sĂce`:`${e} mÄ›sĂcĹŻ`}return(e,s)=>{var r,a,o,i,l,d,_,m,c;return e.item?(z(),u("div",g,[s[3]||(s[3]=t("h4",{class:"text-lg"}," Vaše energie ",-1)),t("div",h,[t("p",B,n((r=e.item)==null?void 0:r.Name),1),t("img",{class:"max-h-[30px]",src:(o=(a=e.item)==null?void 0:a.Provider)==null?void 0:o.LogoURL,alt:(l=(i=e.item)==null?void 0:i.Provider)==null?void 0:l.Name},null,8,k)]),t("div",C,[s[0]||(s[0]=t("p",{class:"wizard-banner__label"}," RoÄŤnĂ cena ",-1)),t("p",N,n(((d=e.item)==null?void 0:d.BilledPrice)&&new Intl.NumberFormat("cs-CZ").format(Math.floor(e.item.BilledPrice)))+" KÄŤ ",1)]),t("div",P,[s[1]||(s[1]=t("p",{class:"wizard-banner__label"}," MÄ›sĂÄŤnĂ záloha ",-1)),t("p",v,n(((_=e.item)==null?void 0:_.BilledPrice)&&new Intl.NumberFormat("cs-CZ").format(Math.floor(e.item.BilledPrice/12)))+" KÄŤ ",1)]),t("div",y,[s[2]||(s[2]=t("p",{class:"wizard-banner__label"}," DĂ©lka závazku ",-1)),t("p",D,n(((m=e.item)==null?void 0:m.ContractDuration)&&p((c=e.item)==null?void 0:c.ContractDuration)||"bez závazku"),1)])])):w("",!0)}}}),x=f(M,[["__scopeId","data-v-c524a2ec"]]);export{x as _};