import x from"./BaseLoading-BybaDtvq.js";import{a as d}from"./LandingPageCategoryHeader-ClLjVGQ3.js";import{_}from"./LandingPageGridProduct-B1sP6KeE.js";import{o as n,e as r,k as i,f as p,F as m,B as a,y as g,D as h,v as c,m as y,g as f}from"./vendor-CI5NvTnj.js";import{_ as v}from"./LandingPageListProduct-ZNtby_gx.js";const k={class:"row no-gutters list-unstyled justify-sm-center justify-md-start mt-n2 ml-sm-n2 ml-md-n3 mt-md-n3 ml-lg-n4 mt-lg-n4 ml-xl-n5 mt-xl-n5 ml-xxl-n7 mt-xxl-n7"},z={__name:"LandingPageCategory",props:{category:{type:Object,required:!0},hLevel:{type:String,default:"h2",validator:e=>["h1","h2","h3","h4","h5","h6"].includes(e)}},setup(e){return(o,l)=>(n(),r(m,null,[i(d,{title:e.category.title},null,8,["title"]),p("ul",k,[(n(!0),r(m,null,a(e.category.products,t=>(n(),r("li",{key:t.id,class:"col-sm-8 col-md-6 col-lg-4 d-flex flex-col pt-2 pl-sm-2 pl-md-3 pt-md-3 pl-lg-4 pt-lg-4 pl-xl-7 pt-xl-7 pl-xxl-7 pt-xxl-7"},[i(_,{product:t,"h-level":e.hLevel},null,8,["product","h-level"])]))),128))])],64))}};function u(e){const o=e;o.__i18n=o.__i18n||[],o.__i18n.push({locale:"",resource:{cs:{do_you_prefer_to_mix:l=>{const{normalize:t}=l;return t(["Chcete si radši namíchat svůj vlastní mix?"])}},sk:{do_you_prefer_to_mix:l=>{const{normalize:t}=l;return t(["Chcete si radšej namiešať svoj vlastný mix?"])}},pl:{do_you_prefer_to_mix:l=>{const{normalize:t}=l;return t(["Chcesz stworzyć własną mieszankę musli lub kaszy?"])}},hu:{do_you_prefer_to_mix:l=>{const{normalize:t}=l;return t(["Inkább saját müzlit vagy kását szeretnél?"])}},de:{do_you_prefer_to_mix:l=>{const{normalize:t}=l;return t(["Würdest Du lieber Deinen eigenen Mix mischen?"])}},at:{do_you_prefer_to_mix:l=>{const{normalize:t}=l;return t(["Würdest Du lieber Deinen eigenen Mix mischen?"])}},ro:{do_you_prefer_to_mix:l=>{const{normalize:t}=l;return t(["Preferi să amesteci propriul tău musli sau terci?"])}}}})}const j={key:0},L={key:0,class:"row list-unstyled mt-n2 mt-sm-n3 mt-md-n4 mt-lg-n5 mt-xl-n6 mb-6"},b={key:1},w={key:0,class:"row list-unstyled mt-n2 mt-sm-n3 mt-md-n4 mt-lg-n5 mt-xl-n6 catalog__list"},C={key:1,class:"row no-gutters list-unstyled justify-sm-center justify-md-start mt-n2 ml-sm-n2 ml-md-n3 mt-md-n3 ml-lg-n4 mt-lg-n4 ml-xl-n5 mt-xl-n5 ml-xxl-n7 mt-xxl-n7 catalog__grid"},$={__name:"LandingPageList",props:{categories:{type:Array,required:!0},ingredients:{type:Array,required:!0},hLevel:{type:String,default:"h2",validator:e=>["h1","h2","h3","h4","h5","h6"].includes(e)}},setup(e){const{t:o}=g(),l=h(!0);return(t,B)=>e.categories.length>0||e.ingredients.length>0?(n(),r("div",j,[e.categories?(n(),r("ul",L,[(n(!0),r(m,null,a(e.categories,s=>(n(),r("li",{key:s.id,class:"col-12 d-flex flex-col pt-2 pt-sm-3 pt-md-4 pt-lg-5 pt-xl-6"},[i(z,{category:s},null,8,["category"])]))),128))])):c("",!0),e.ingredients?(n(),r("div",b,[i(d,{title:y(o)("do_you_prefer_to_mix")},null,8,["title"]),l.value?(n(),r("ul",C,[(n(!0),r(m,null,a(e.ingredients,s=>(n(),r("li",{key:s.id,class:"col-sm-8 col-md-6 col-lg-4 d-flex flex-col pt-2 pl-sm-2 pl-md-3 pt-md-3 pl-lg-4 pt-lg-4 pl-xl-7 pt-xl-7 pl-xxl-7 pt-xxl-7"},[i(_,{product:s,"h-level":e.hLevel},null,8,["product","h-level"])]))),128))])):(n(),r("ul",w,[(n(!0),r(m,null,a(e.ingredients,s=>(n(),r("li",{key:s.id,class:"col-12 d-flex flex-col pt-2 pt-sm-3 pt-md-4 pt-lg-5 pt-xl-6"},[i(v,{product:s,"h-level":e.hLevel},null,8,["product","h-level"])]))),128))]))])):c("",!0)])):(n(),f(x,{key:1,style:{minHeight:"60vh"}}))}};typeof u=="function"&&u($);export{$ as _};