import{_}from"./BaseAnchorWrapper-Bvrxpmn-.js";import{y as h,o as a,g as f,l as g,f as e,n as d,e as i,t as o,m as s,v as l,C as u}from"./vendor-CI5NvTnj.js";function m(r){const c=r;c.__i18n=c.__i18n||[],c.__i18n.push({locale:"",resource:{cs:{carbohydrates:t=>{const{normalize:n}=t;return n(["Sacharidy"])},energy_value:t=>{const{normalize:n}=t;return n(["Energetická hodnota"])},fats:t=>{const{normalize:n}=t;return n(["Tuky"])},fiber:t=>{const{normalize:n}=t;return n(["Vláknina"])},of_which_saturated_fatty_acids:t=>{const{normalize:n}=t;return n(["z toho nasycenĂ© mastnĂ© kyseliny"])},of_which_sugars:t=>{const{normalize:n}=t;return n(["z toho cukry"])},portion:t=>{const{normalize:n}=t;return n(["porce"])},proteins:t=>{const{normalize:n}=t;return n(["BĂlkoviny"])},salt:t=>{const{normalize:n}=t;return n(["SĹŻl"])}},sk:{carbohydrates:t=>{const{normalize:n}=t;return n(["Sacharidy"])},energy_value:t=>{const{normalize:n}=t;return n(["Energia"])},fats:t=>{const{normalize:n}=t;return n(["Tuky"])},fiber:t=>{const{normalize:n}=t;return n(["Vláknina"])},of_which_saturated_fatty_acids:t=>{const{normalize:n}=t;return n(["z toho nasĂ˝tenĂ© mastnĂ© kyseliny"])},of_which_sugars:t=>{const{normalize:n}=t;return n(["z toho cukry"])},portion:t=>{const{normalize:n}=t;return n(["porcia"])},proteins:t=>{const{normalize:n}=t;return n(["Bielkoviny"])},salt:t=>{const{normalize:n}=t;return n(["SoÄľ"])}},pl:{carbohydrates:t=>{const{normalize:n}=t;return n(["WÄ™glowodany"])},energy_value:t=>{const{normalize:n}=t;return n(["Wartość energetyczna"])},fats:t=>{const{normalize:n}=t;return n(["TĹ‚uszcz"])},fiber:t=>{const{normalize:n}=t;return n(["BĹ‚onnik"])},of_which_saturated_fatty_acids:t=>{const{normalize:n}=t;return n(["w tym kwasy tĹ‚uszczowe nasycone"])},of_which_sugars:t=>{const{normalize:n}=t;return n(["w tym cukry"])},portion:t=>{const{normalize:n}=t;return n(["porcja"])},proteins:t=>{const{normalize:n}=t;return n(["BiaĹ‚ko"])},salt:t=>{const{normalize:n}=t;return n(["SĂłl"])}},hu:{carbohydrates:t=>{const{normalize:n}=t;return n(["SzĂ©nhidrátok"])},energy_value:t=>{const{normalize:n}=t;return n(["Energiatartalom"])},fats:t=>{const{normalize:n}=t;return n(["ZsĂrok"])},fiber:t=>{const{normalize:n}=t;return n(["Rost"])},of_which_saturated_fatty_acids:t=>{const{normalize:n}=t;return n(["ebbĹ‘l telĂtett zsĂrsavak"])},of_which_sugars:t=>{const{normalize:n}=t;return n(["ebbĹ‘l cukrok"])},portion:t=>{const{normalize:n}=t;return n(["adag"])},proteins:t=>{const{normalize:n}=t;return n(["FehĂ©rje"])},salt:t=>{const{normalize:n}=t;return n(["SĂł"])}},de:{carbohydrates:t=>{const{normalize:n}=t;return n(["Kohlenhydrate"])},energy_value:t=>{const{normalize:n}=t;return n(["Energiewert"])},fats:t=>{const{normalize:n}=t;return n(["Fette"])},fiber:t=>{const{normalize:n}=t;return n(["Ballaststoffe"])},of_which_saturated_fatty_acids:t=>{const{normalize:n}=t;return n(["davon gesättigte Fettsäuren"])},of_which_sugars:t=>{const{normalize:n}=t;return n(["davon Zucker"])},portion:t=>{const{normalize:n}=t;return n(["Portion"])},proteins:t=>{const{normalize:n}=t;return n(["EiweiĂź"])},salt:t=>{const{normalize:n}=t;return n(["Salz"])}},at:{carbohydrates:t=>{const{normalize:n}=t;return n(["Kohlenhydrate"])},energy_value:t=>{const{normalize:n}=t;return n(["Energiewert"])},fats:t=>{const{normalize:n}=t;return n(["Fette"])},fiber:t=>{const{normalize:n}=t;return n(["Ballaststoffe"])},of_which_saturated_fatty_acids:t=>{const{normalize:n}=t;return n(["davon gesättigte Fettsäuren"])},of_which_sugars:t=>{const{normalize:n}=t;return n(["davon Zucker"])},portion:t=>{const{normalize:n}=t;return n(["Portion"])},proteins:t=>{const{normalize:n}=t;return n(["EiweiĂź"])},salt:t=>{const{normalize:n}=t;return n(["Salz"])}},ro:{carbohydrates:t=>{const{normalize:n}=t;return n(["CarbohidraČ›i"])},energy_value:t=>{const{normalize:n}=t;return n(["Valoare energeticÄ"])},fats:t=>{const{normalize:n}=t;return n(["GrÄsimi"])},fiber:t=>{const{normalize:n}=t;return n(["Fibre"])},of_which_saturated_fatty_acids:t=>{const{normalize:n}=t;return n(["din care acizi graČ™i saturaČ›i"])},of_which_sugars:t=>{const{normalize:n}=t;return n(["din care zaharuri"])},portion:t=>{const{normalize:n}=t;return n(["porČ›ii"])},proteins:t=>{const{normalize:n}=t;return n(["Proteine"])},salt:t=>{const{normalize:n}=t;return n(["Sare"])}}}})}const y={class:"container"},b={class:"row justify-center"},w=e("td",null,null,-1),k=e("td",{class:"font-bold"}," 100g ",-1),v={key:0,class:"font-bold"},p={key:0},x={class:"font-bold text-nowrap"},S=e("br",null,null,-1),F={key:0,class:"font-bold text-nowrap"},B=e("br",null,null,-1),C={class:"font-bold text-nowrap"},E={key:0,class:"font-bold text-nowrap"},V={class:"font-bold text-nowrap"},N={key:0,class:"font-bold text-nowrap"},P={class:"font-bold text-nowrap"},T={key:0,class:"font-bold text-nowrap"},j={class:"font-bold text-nowrap"},W={key:0,class:"font-bold text-nowrap"},Z={class:"font-bold text-nowrap"},J={key:0,class:"font-bold text-nowrap"},K={class:"font-bold text-nowrap"},L={key:0,class:"font-bold text-nowrap"},q={class:"font-bold text-nowrap"},D={key:0,class:"font-bold text-nowrap"},G={__name:"ProductNutritionTable",props:{product:{type:Object,required:!0},isFullWidth:{type:Boolean,default:!1},sectionClasses:{type:String,default:""},themeLight:{type:Boolean,default:!1}},setup(r){const c=r,{t}=h(),n=z=>c.product.servingSize?(z/100*c.product.servingSize).toFixed(1):null;return(z,I)=>(a(),f(_,{id:"nutrition-information",tag:"section",class:d(r.sectionClasses?r.sectionClasses:"px-1 py-4 py-md-6 py-lg-6 bg-primary-200 order-1 order-lg-2")},{default:g(()=>[e("div",y,[e("div",b,[e("div",{class:d(r.isFullWidth?"col-12":"col-md-9 col-lg-6")},[e("table",{class:d(["table table-striped border-bottom",{"table-theme-light":r.themeLight}])},[e("thead",null,[e("tr",null,[w,k,r.product.servingSize?(a(),i("td",v,o(r.product.servingSize)+"g / "+o(s(t)("portion")),1)):l("",!0)])]),r.product.nutrition?(a(),i("tbody",p,[e("tr",null,[e("td",null,o(s(t)("energy_value")),1),e("td",x,[u(o(r.product.nutrition.energy)+" kJ /",1),S,u(" "+o((r.product.nutrition.energy/4.186).toFixed(2))+" kcal ",1)]),r.product.servingSize?(a(),i("td",F,[u(o(n(r.product.nutrition.energy))+" kJ /",1),B,u(" "+o((n(r.product.nutrition.energy)/4.186).toFixed(2))+" kcal ",1)])):l("",!0)]),e("tr",null,[e("td",null,o(s(t)("fats")),1),e("td",C,o(r.product.nutrition.fats)+" g ",1),r.product.servingSize?(a(),i("td",E,o(n(r.product.nutrition.fats))+" g ",1)):l("",!0)]),e("tr",null,[e("td",null,o(s(t)("of_which_saturated_fatty_acids")),1),e("td",V,o(r.product.nutrition.saturatedFats)+" g ",1),r.product.servingSize?(a(),i("td",N,o(n(r.product.nutrition.saturatedFats))+" g ",1)):l("",!0)]),e("tr",null,[e("td",null,o(s(t)("carbohydrates")),1),e("td",P,o(r.product.nutrition.carbohydrates)+" g ",1),r.product.servingSize?(a(),i("td",T,o(n(r.product.nutrition.carbohydrates))+" g ",1)):l("",!0)]),e("tr",null,[e("td",null,o(s(t)("of_which_sugars")),1),e("td",j,o(r.product.nutrition.sugars)+" g ",1),r.product.servingSize?(a(),i("td",W,o(n(r.product.nutrition.sugars))+" g ",1)):l("",!0)]),e("tr",null,[e("td",null,o(s(t)("fiber")),1),e("td",Z,o(r.product.nutrition.fibre)+" g ",1),r.product.servingSize?(a(),i("td",J,o(n(r.product.nutrition.fibre))+" g ",1)):l("",!0)]),e("tr",null,[e("td",null,o(s(t)("proteins")),1),e("td",K,o(r.product.nutrition.proteins)+" g ",1),r.product.servingSize?(a(),i("td",L,o(n(r.product.nutrition.proteins))+" g ",1)):l("",!0)]),e("tr",null,[e("td",null,o(s(t)("salt")),1),e("td",q,o(r.product.nutrition.salt)+" g ",1),r.product.servingSize?(a(),i("td",D,o(n(r.product.nutrition.salt))+" g ",1)):l("",!0)])])):l("",!0)],2)],2)])])]),_:1},8,["class"]))}};typeof m=="function"&&m(G);export{G as _};