import{N as w,i as x,D as g,o as s,e as _,f as o,k as m,t as c,q as R,y,A as E,m as u,g as b,l as p,F as B,B as j,C as z,u as A,n as H,a4 as O,I as V,v as W}from"./vendor-CI5NvTnj.js";import{q as D,g as v,B as S,R as P,p as Z}from"./index-BRMV7KFd.js";import q from"./BaseBreadcrumb-B6HDJrad.js";import{S as F}from"./swiper-core-KMhvhzce.js";import{S as J}from"./scrollbar-Dd9IoCR7.js";import{S as K,a as G}from"./swiper-vue-B4GuJSWe.js";import{_ as Q}from"./index-ebaarzgv.js";import X from"./BasePageWrapper-CXSeoIUS.js";import"./classes-to-selector-B0617UQA.js";const Y={class:"px-1 pb-5 pb-xl-0"},ee={class:"container"},te={class:"row ml-xl-n6 items-center justify-center relative d-xl-block clearfix"},oe=o("div",{class:"col-3 d-none d-md-block absolute position-top position-left-40 pr-6 mt-4 pl-0 ml-n9 js-parallax"},[o("div",{class:"embed-responsive embed-responsive-1by1 bg-light pattern-2 opacity-40 ml-n6"})],-1),ne=o("div",{class:"col-2 d-none d-md-block absolute position-bottom position-left ml-n9 px-0 mb-n5 js-parallax"},[o("div",{class:"embed-responsive embed-responsive-1by1 ml-n7 mb-n3 bg-light pattern-1 opacity-40"})],-1),le={class:"col-sm-9 col-md-5 col-xl-6 pl-xl-2 pr-xl-5 order-1 order-md-0 float-left"},ie={class:"hero-carousel"},se={class:"row overflow-hidden pb-7 py-lg-5 mx-lg-n6"},ae={id:"js-product-hero",class:"row mx-0 w-100 mb-0 flex-nowrap flex-grow-1 h-auto list-unstyled"},re={class:"col-12 px-lg-6"},ce={class:"hero-carousel__image mb-0"},me={class:"hero-carousel__image__in no-padding"},de={class:"col-md-7 col-xl-6 px-xl-5 mb-4 mb-md-0 order-0 order-md-0 float-right clear-right"},_e={class:"display-4 mb-4 mb-md-5"},ue={class:"col-xl-6 px-xl-5 order-2 order-md-0 float-right clear-right"},pe={class:"text"},he={class:"mt-4"},ge=w({__name:"BlogIntro",props:{article:{},permalink:{}},setup(d){const l=d,t="https://www.mixit.sk/",e={"@context":"https://schema.org","@type":"NewsArticle",headline:l.article.title,image:l.article.image.llg.formats["image/jpeg"],author:{"@type":"Person",name:"Mixit.sk",url:t.endsWith("/")?t.slice(0,-1):t}};D({title:l.article.title,meta:[{property:"og:title",content:x(()=>l.article.title)}],script:[{type:"application/ld+json",children:JSON.stringify(e)}]});const h=g([{name:"Blog",link:{name:"blogPath"}},{name:l.article.title,link:{name:"showBlogPath",params:{permalink:l.permalink}}}]);return(a,r)=>(s(),_("section",Y,[o("div",ee,[o("div",te,[oe,ne,o("div",le,[o("div",ie,[o("div",se,[o("div",ae,[o("div",re,[o("div",ce,[o("div",me,[m(v,{"product-image-data":a.article.image,"img-class":"hero-carousel__image__in-img",alt:a.article.title,sizes:"(min-width: 1200px) 620px, (min-width: 500px) 582px, 70vw","lazy-load":!1},null,8,["product-image-data","alt"])])])])])])])]),o("div",de,[m(q,{"breadcrumb-list":h.value},null,8,["breadcrumb-list"]),o("h1",_e,c(a.article.title),1),R(a.$slots,"default")]),o("div",ue,[o("div",pe,[o("p",he,c(a.article.introText),1)])])])])]))}}),ze={class:"py-5 py-lg-6 overflow-hidden"},be={class:"container"},fe={class:"mb-5 mb-lg-6 text-center"},ke={class:"row no-gutters ml-n2 ml-md-n3 ml-lg-n4 ml-xl-n5 ml-xxl-n7"},xe={class:"shadowbox p-3 p-sm-4 d-flex flex-col flex-grow-1 relative rounded-lg"},ve={class:"embed-responsive embed-responsive-4by3 mb-4"},we=["src","alt"],ye={class:"mb-4 line-height-base text-lg font-family-base font-weight-medium"},$e={class:"mb-5 text-sm"},Be={class:"mt-auto text-center"},je={key:1,class:"row mx-0 w-100 mb-0 flex-nowrap flex-lg-wrap flex-grow-1 h-auto no-gutters mb-0 list-unstyled"},Se={class:"shadowbox p-3 p-sm-4 d-flex flex-col flex-grow-1 relative rounded-lg"},Me={class:"embed-responsive embed-responsive-4by3 mb-4"},Ce=["src","alt"],Le={class:"mb-4 line-height-base text-lg font-family-base font-weight-medium"},Ae={class:"mb-5 text-sm"},De={class:"mt-auto text-center"},Pe={class:"mt-7 text-center"},N=w({__name:"BlogOtherArticles",setup(d){F.use([J]);const{t:l}=y(),t=g([]),e=g();return(async()=>{const{data:a}=await P.get("articles?limit=3");t.value=a.articles,S.isTablet()&&(e.value=document.querySelector("#js-similar-blog-posts").swiper),e.value&&setTimeout(()=>{var r;(r=e.value.scrollbar)==null||r.updateSize()},1e3)})(),(a,r)=>{const i=E("router-link");return s(),_("section",ze,[o("div",be,[o("h2",fe,c(u(l)("read_more_articles")),1),o("div",ke,[u(S).isTablet()?(s(),b(u(G),{key:0,id:"js-similar-blog-posts",class:"lightSlider--center row no-gutters mx-0 w-100 mb-0 flex-nowrap flex-grow-1 h-auto list-unstyled","slides-per-view":"auto",scrollbar:{draggable:!0,hide:!1}},{default:p(()=>[(s(!0),_(B,null,j(t.value,n=>(s(),b(u(K),{key:n.id,class:"col-11 col-sm-8 col-md-6 col-lg-4 d-flex flex-col pl-2 pl-md-3 pl-lg-4 pl-xl-5 pl-xxl-7"},{default:p(()=>[o("article",xe,[o("div",ve,[n.image?(s(),b(v,{key:0,"product-image-data":n.image,"img-class":"embed-responsive-item image-cover",alt:n.title,sizes:"(min-width: 1200px) 25vw, (min-width: 992px) 20vw, (min-width: 600px) 35vw, (min-width: 500px) 50vw, 70vw"},null,8,["product-image-data","alt"])):(s(),_("img",{key:1,src:n.imageUrl,alt:n.title,class:"embed-responsive-item image-cover",loading:"lazy"},null,8,we))]),o("h3",ye,[m(i,{to:{name:"showBlogPath",params:{permalink:n.permalink}},class:"stretched-link no-decoration"},{default:p(()=>[z(c(n.title),1)]),_:2},1032,["to"])]),o("p",$e,c(n.perex),1),o("div",Be,[m(i,{to:{name:"showBlogPath",params:{permalink:n.permalink}},class:"btn btn-outline-primary px-5 stretched-link rounded-pill font-weight-medium"},{default:p(()=>[z(c(u(l)("read_full_article")),1)]),_:2},1032,["to"])])])]),_:2},1024))),128))]),_:1})):(s(),_("ul",je,[(s(!0),_(B,null,j(t.value,n=>(s(),_("li",{key:n.id,class:"col-6 col-sm-5 col-md-4 d-flex flex-col pl-2 pl-md-3 pt-lg-3 pl-xl-4 pt-xl-4"},[o("article",Se,[o("div",Me,[n.image?(s(),b(v,{key:0,"product-image-data":n.image,"img-class":"embed-responsive-item image-cover",alt:n.title,sizes:"(min-width: 1200px) 25vw, (min-width: 992px) 20vw, (min-width: 600px) 35vw, (min-width: 500px) 50vw, 70vw"},null,8,["product-image-data","alt"])):(s(),_("img",{key:1,src:n.imageUrl,alt:n.title,class:"embed-responsive-item image-cover",loading:"lazy"},null,8,Ce))]),o("h3",Le,[m(i,{to:{name:"showBlogPath",params:{permalink:n.permalink}},class:"stretched-link no-decoration"},{default:p(()=>[z(c(n.title),1)]),_:2},1032,["to"])]),o("p",Ae,c(n.perex),1),o("div",De,[m(i,{to:{name:"showBlogPath",params:{permalink:n.permalink}},class:"btn btn-outline-primary px-5 stretched-link rounded-pill font-weight-medium"},{default:p(()=>[z(c(u(l)("read_full_article")),1)]),_:2},1032,["to"])])])]))),128))]))]),o("div",Pe,[m(i,{to:{name:"blogPath"},class:"btn btn-success btn-gradient px-5 py-3 rounded-pill font-weight-medium"},{default:p(()=>[z(c(u(l)("show_all")),1)]),_:1})])])])}}});function M(d){const l=d;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{cs:{read_full_article:t=>{const{normalize:e}=t;return e(["ÄŚĂst celĂ˝ ÄŤlánek"])},read_more_articles:t=>{const{normalize:e}=t;return e(["ÄŚĂst dalšà články"])},show_all:t=>{const{normalize:e}=t;return e(["Zobrazit všechny"])}},sk:{read_full_article:t=>{const{normalize:e}=t;return e(["ÄŚĂtaĹĄ celĂ˝ ÄŤlánok"])},read_more_articles:t=>{const{normalize:e}=t;return e(["ÄŚĂtaĹĄ ÄŹalšie ÄŤlánky"])},show_all:t=>{const{normalize:e}=t;return e(["ZobraziĹĄ všetky"])}},pl:{read_full_article:t=>{const{normalize:e}=t;return e(["Przeczytaj caĹ‚y artykuĹ‚"])},read_more_articles:t=>{const{normalize:e}=t;return e(["Zobacz inne artykuĹ‚y"])},show_all:t=>{const{normalize:e}=t;return e(["Zobacz wszystkie"])}},hu:{read_full_article:t=>{const{normalize:e}=t;return e(["Elolvasom a bejegyzĂ©st"])},read_more_articles:t=>{const{normalize:e}=t;return e(["KövetkezĹ‘ bejegyzĂ©s"])},show_all:t=>{const{normalize:e}=t;return e(["Mutass mindet"])}},de:{read_full_article:t=>{const{normalize:e}=t;return e(["Den ganzen Artikel lesen"])},read_more_articles:t=>{const{normalize:e}=t;return e(["Weitere Artikel lesen"])},show_all:t=>{const{normalize:e}=t;return e(["Alle anzeigen"])}},at:{read_full_article:t=>{const{normalize:e}=t;return e(["Den ganzen Artikel lesen"])},read_more_articles:t=>{const{normalize:e}=t;return e(["Weitere Artikel lesen"])},show_all:t=>{const{normalize:e}=t;return e(["Alle anzeigen"])}},ro:{read_full_article:t=>{const{normalize:e}=t;return e(["Citesc toatÄ postarea"])},read_more_articles:t=>{const{normalize:e}=t;return e(["UrmÄtoarea postare"])},show_all:t=>{const{normalize:e}=t;return e(["AratÄ toate"])}}}})}typeof M=="function"&&M(N);const Ne={class:"form-row list-unstyled mb-0 mt-4 justify-end justify-lg-start d-print-none"},Te={class:"col-auto"},Ue={class:"col-auto"},Ie={class:"bg-primary-200 rounded-pill"},Re=["href"],T=w({__name:"BlogShare",setup(d){const{t:l}=y(),t=A(),e=g(!1),h=x(()=>{const i="https://www.mixit.sk/";return i.endsWith("/")?i.slice(0,-1):i}),a=x(()=>`${h.value}${t.fullPath}`),r=i=>{var f;i.preventDefault();const n=document.createElement("textarea");n.value=(f=i==null?void 0:i.target)==null?void 0:f.getAttribute("href"),n.classList.add("sr-only"),document.body.append(n),n.select(),document.execCommand("copy"),n.remove(),e.value=!0,setTimeout(()=>{e.value=!1},2e3)};return(i,n)=>(s(),_("ul",Ne,[o("li",Te,[m(Q,{"button-class":"fb-share-button",url:a.value},null,8,["url"])]),o("li",Ue,[o("div",Ie,[o("a",{href:a.value,class:H(["btn py-2 py-sm-3 px-lg-5 rounded-pill font-weight-medium",[e.value?"btn-outline-success":"btn-outline-primary"]]),onClick:r},c(e.value?u(l)("link_copied"):u(l)("copy_link")),11,Re)])])]))}});function C(d){const l=d;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{cs:{copy_link:t=>{const{normalize:e}=t;return e(["ZkopĂrovat odkaz"])},link_copied:t=>{const{normalize:e}=t;return e(["Odkaz zkopĂrován"])}},sk:{copy_link:t=>{const{normalize:e}=t;return e(["SkopĂrujte si odkaz"])},link_copied:t=>{const{normalize:e}=t;return e(["Odkaz skopĂrovanĂ˝"])}},pl:{copy_link:t=>{const{normalize:e}=t;return e(["Skopiuj link"])},link_copied:t=>{const{normalize:e}=t;return e(["Link zostaĹ‚ skopiowany"])}},hu:{copy_link:t=>{const{normalize:e}=t;return e(["Link másolása"])},link_copied:t=>{const{normalize:e}=t;return e(["A link másolva"])}},de:{copy_link:t=>{const{normalize:e}=t;return e(["Link kopieren"])},link_copied:t=>{const{normalize:e}=t;return e(["Link kopiert"])}},at:{copy_link:t=>{const{normalize:e}=t;return e(["Link kopieren"])},link_copied:t=>{const{normalize:e}=t;return e(["Link kopiert"])}},ro:{copy_link:t=>{const{normalize:e}=t;return e(["CopiazÄ linkul"])},link_copied:t=>{const{normalize:e}=t;return e(["Linkul a fost copiat"])}}}})}typeof C=="function"&&C(T);function L(d){const l=d;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{cs:{blog:t=>{const{normalize:e}=t;return e(["Blog"])},og_description:t=>{const{normalize:e}=t;return e(["Hledáte inspiraci na zdravĂ© recepty nebo vás zajĂmá co s tubusy od Mixit? ÄŚtÄ›te na blogu Mixit.cz."])}},sk:{blog:t=>{const{normalize:e}=t;return e(["Blog"])},og_description:t=>{const{normalize:e}=t;return e(["HÄľadáte inšpiráciu na zdravĂ© recepty alebo vás zaujĂma ÄŤo s tubusmi od Mixit? ÄŚĂtajte na blogu Mixit.sk."])}},pl:{blog:t=>{const{normalize:e}=t;return e(["Blog"])},og_description:t=>{const{normalize:e}=t;return e(["Szukasz inspiracji na zdrowe przepisy lub chcesz zobaczyć co moĹĽna zrobić z tub Mixit? O wszystkim przeczytasz na blogu Mixit.pl."])}},hu:{blog:t=>{const{normalize:e}=t;return e(["Blog"])},og_description:t=>{const{normalize:e}=t;return e(["EgĂ©szsĂ©ges receptekhez keresel ihletet, vagy Ă©rdekel, mihez kezdj a fennmaradt Mixit tubusokkal? ErrĹ‘l Ă©s mĂ©g sok minden másrĂłl olvashatsz a Mixit.hu blogon."])}},de:{blog:t=>{const{normalize:e}=t;return e(["Blog"])},og_description:t=>{const{normalize:e}=t;return e(["Suchst Du nach Inspirationen fĂĽr gesunde Rezepte oder fragst Du Dich, was man mit den Dosen von Mixit anfangen soll? Lies im Mixit-Blog."])}},at:{blog:t=>{const{normalize:e}=t;return e(["Blog"])},og_description:t=>{const{normalize:e}=t;return e(["Suchst Du nach Inspirationen fĂĽr gesunde Rezepte oder fragst Du Dich, was man mit den Dosen von Mixit anfangen soll? Lies im Mixit-Blog."])}},ro:{blog:t=>{const{normalize:e}=t;return e(["Blog"])},og_description:t=>{const{normalize:e}=t;return e(["CauČ›i inspiraČ›ie pentru reČ›ete sÄnÄtoase sau te Ă®ntrebi ce poČ›i face cu aceste cutii Mixit? CiteČ™te despre asta Č™i multe altele pe blogul Mixit.ro."])}}}})}const Ee={id:"article",class:"px-1 py-5"},He={class:"container"},Oe={class:"row justify-center"},Ve={class:"col-lg-9 col-xl-8 text"},We=["innerHTML"],Ze={__name:"show",setup(d){const{t:l}=y(),t=A(),e="https://www.mixit.sk/",h=(e.endsWith("/")?e.slice(0,-1):e)+t.path,{params:a}=t,r=g(),i=g(!1),n=g({}),{setNavbar:f}=Z();O((k,U,I)=>{r.value=k.params.permalink,$(),I()}),D({meta:[{property:"og:description",content:l("og_description")},{name:"description",content:l("og_description")},{property:"og:url",content:h}],link:[{rel:"canonical",href:h}]});const $=async()=>{const{data:k}=await P.get(`articles/${r.value}`);n.value=k.article,i.value=!0,f({backgroundColor:"bg-primary-750"})};return V(()=>{r.value=a.permalink,$()}),(k,U)=>i.value?(s(),b(X,{key:0},{default:p(()=>[m(ge,{article:n.value,permalink:r.value},{default:p(()=>[m(T)]),_:1},8,["article","permalink"]),o("section",Ee,[o("div",He,[o("div",Oe,[o("div",Ve,[o("div",{class:"text",innerHTML:n.value.text},null,8,We)])])])]),m(N)]),_:1})):W("",!0)}};typeof L=="function"&&L(Ze);export{Ze as default};