import{u as L,y,i as Z,A as P,o as i,e as r,f as o,k as s,t as d,m as _,C as x,l as w,F as M,B as R,v as j,E,G as F,g as C,s as T,D as k,a4 as q,I as H}from"./vendor-CI5NvTnj.js";import{o as O,u as D,g,j as Q,q as U,p as G,l as W,R as S}from"./index-BRMV7KFd.js";import J from"./BasePageWrapper-CXSeoIUS.js";import K from"./BaseBreadcrumb-B6HDJrad.js";import{S as X}from"./swiper-core-KMhvhzce.js";import{E as Y}from"./effect-fade-KwCiLuaB.js";import"./effect-target-CicQ8Gyi.js";function A(a){const n=a;n.__i18n=n.__i18n||[],n.__i18n.push({locale:"",resource:{cs:{media:e=>{const{normalize:t}=e;return t(["Média"])},source:e=>{const{normalize:t}=e;return t(["Zdroj"])}},sk:{media:e=>{const{normalize:t}=e;return t(["Médiá"])},source:e=>{const{normalize:t}=e;return t(["Zdroj"])}},pl:{media:e=>{const{normalize:t}=e;return t(["Media"])},source:e=>{const{normalize:t}=e;return t(["Źródło"])}},hu:{media:e=>{const{normalize:t}=e;return t(["Megjelenéseink"])},source:e=>{const{normalize:t}=e;return t(["Forrás"])}},de:{media:e=>{const{normalize:t}=e;return t(["Medien"])},source:e=>{const{normalize:t}=e;return t(["Quelle"])}},at:{media:e=>{const{normalize:t}=e;return t(["Medien"])},source:e=>{const{normalize:t}=e;return t(["Quelle"])}},ro:{media:e=>{const{normalize:t}=e;return t(["Media"])},source:e=>{const{normalize:t}=e;return t(["Sursa"])}}}})}const ee=a=>(E("data-v-965dfc48"),a=a(),F(),a),te={key:0,class:"container"},ae={class:"row justify-center"},ne={class:"col-md-10 col-xl-8 mb-5 mb-lg-7 text-center"},oe={key:0,class:"display-4 mb-3"},ie={key:1,class:"display-4 mb-3"},re={class:"mb-3 text-sm"},se=["href"],le={key:1},me=ee(()=>o("i",{class:"mi-chevron-l mr-2"},null,-1)),de={key:0,class:"col-12"},ce=["href"],ue={key:1,class:"col-12 text"},_e={class:"media_main_catalog row no-gutters list-unstyled justify-center px-4 pointer"},ze=["onClick"],he={key:2,class:"col-lg-10 col-xl-8 pt-5 pt-md-6 pt-lg-7"},pe=["innerHTML"],N={__name:"MediaMain",props:{medium:{type:Object,required:!0},dataLoaded:{type:Boolean,default:!1}},setup(a){const n=a,{openModal:e}=D(),t=L(),{t:m}=y(),l=Z(()=>{const h=[];return h.push({name:m("media"),link:{name:"mediaPath"}},{name:n.medium.source+(n.medium.source&&n.medium.title?": ":"")+n.medium.title,link:t.fullPath}),h});return(h,z)=>{var p,b,f,c;const v=P("router-link");return a.dataLoaded?(i(),r("div",te,[o("div",ae,[o("div",ne,[s(K,{"breadcrumb-list":l.value,"additional-class-name":"justify-center"},null,8,["breadcrumb-list"]),(p=a.medium)!=null&&p.title?(i(),r("h1",oe,d(a.medium.title),1)):(i(),r("h1",ie,d(_(m)("media")),1)),o("p",re,[x(d(_(m)("source"))+": ",1),(b=a.medium)!=null&&b.link?(i(),r("a",{key:0,href:a.medium.link,target:"_blank"},d(a.medium.source),9,se)):(i(),r("span",le,d(a.medium.source),1))]),s(v,{to:{name:"mediaPath"},class:"mt-2 btn btn-outline-primary border-0 font-weight-medium rounded-pill"},{default:w(()=>[me,x(" "+d(_(m)("media")),1)]),_:1})]),(f=a.medium)!=null&&f.link?(i(),r("div",de,[o("a",{href:a.medium.link,target:"_blank",class:"row justify-center"},[s(g,{"product-image-data":a.medium.image,"img-class":"w-100 h-100",class:"col-4",alt:a.medium.title,sizes:"(min-width: 1200px) 25vw, (min-width: 600px) 30vw, (min-width: 500px) 30vw, 50vw","lazy-load":!1},null,8,["product-image-data","alt"])],8,ce)])):(i(),r("div",ue,[o("ul",_e,[o("li",{class:"media_main_catalog-img col-4 m-2",onClick:z[0]||(z[0]=u=>_(e)({id:"modal-media-image",title:a.medium.title,params:{image:a.medium.image}}))},[s(g,{"product-image-data":a.medium.image,"img-class":"w-100 h-100",alt:a.medium.title,sizes:"(min-width: 1200px) 25vw, (min-width: 600px) 30vw, (min-width: 500px) 30vw, 50vw","lazy-load":!1},null,8,["product-image-data","alt"])]),(i(!0),r(M,null,R(a.medium.attachments,u=>(i(),r("li",{key:u,class:"media_main_catalog-img col-4 m-2 pointer",onClick:$=>_(e)({id:"modal-media-image",title:a.medium.title,params:{image:u}})},[s(g,{"product-image-data":u,"img-class":"w-100 h-100",alt:a.medium.name,sizes:"(min-width: 1200px) 25vw, (min-width: 600px) 30vw, (min-width: 500px) 30vw, 50vw"},null,8,["product-image-data","alt"])],8,ze))),128))])])),(c=a.medium)!=null&&c.text?(i(),r("div",he,[o("div",{class:"text",innerHTML:a.medium.text},null,8,pe)])):j("",!0)])])):j("",!0)}}};typeof A=="function"&&A(N);const fe=O(N,[["__scopeId","data-v-965dfc48"]]);function B(a){const n=a;n.__i18n=n.__i18n||[],n.__i18n.push({locale:"",resource:{cs:{read_more:e=>{const{normalize:t}=e;return t(["Číst další"])},show_all:e=>{const{normalize:t}=e;return t(["Zobrazit všechny"])}},sk:{read_more:e=>{const{normalize:t}=e;return t(["Čítať ďalšie"])},show_all:e=>{const{normalize:t}=e;return t(["Zobraziť všetky"])}},pl:{read_more:e=>{const{normalize:t}=e;return t(["Przeczytaj więcej"])},show_all:e=>{const{normalize:t}=e;return t(["Zobacz wszystkie"])}},hu:{read_more:e=>{const{normalize:t}=e;return t(["Mutass többet"])},show_all:e=>{const{normalize:t}=e;return t(["Mutass mindent"])}},de:{read_more:e=>{const{normalize:t}=e;return t(["Mehr lesen"])},show_all:e=>{const{normalize:t}=e;return t(["Alle anzeigen"])}},at:{read_more:e=>{const{normalize:t}=e;return t(["Mehr lesen"])},show_all:e=>{const{normalize:t}=e;return t(["Alle anzeigen"])}},ro:{read_more:e=>{const{normalize:t}=e;return t(["Citesc mai departe"])},show_all:e=>{const{normalize:t}=e;return t(["Arată totul"])}}}})}const ge={class:"pt-6 pt-sm-7 pt-xl-8 overflow-hidden"},we={class:"container overflow-lg-hidden"},ve={class:"mb-4 mb-md-5 mb-xl-7 text-center"},be={class:"row no-gutters ml-n2 ml-sm-n4 ml-md-n5 ml-xl-n6 mb-0"},ke={class:"media-other_catalog row mx-0 w-100 mb-0 flex-nowrap flex-grow-1 h-auto no-gutters mb-0 list-unstyled justify-center","data-carousel":"media"},xe={class:"pl-2 pl-sm-4 pl-md-5 pl-xl-6 d-flex flex-col flex-grow-1"},ye={class:"product-item p-3 p-md-4 m-0 relative flex-grow-1"},Me={class:"pt-2 mb-n1 text-center text-lg medium-source"},$e={class:"mt-5 mt-lg-6 text-center"},V={__name:"MediaOtherArticles",props:{media:{type:Array,required:!0}},setup(a){const{t:n}=y();return(e,t)=>{const m=P("router-link");return i(),r("section",ge,[o("div",we,[o("h2",ve,d(_(n)("read_more")),1),o("div",be,[o("ul",ke,[(i(!0),r(M,null,R(a.media,l=>(i(),r("li",{key:l.id,class:"d-flex flex-col col-6 col-md-5 col-lg-3"},[o("div",xe,[o("div",ye,[l.image?(i(),C(g,{key:0,"product-image-data":l.image,"img-class":"media-other_catalog-img",alt:l.source,sizes:"(min-width: 1200px) 25vw, (min-width: 600px) 30vw, (min-width: 500px) 30vw, 50vw"},null,8,["product-image-data","alt"])):(i(),C(Q,{key:1,"img-class":"media-other_catalog-img",alt:l.source},null,8,["alt"])),o("div",Me,[s(m,{to:{name:"mediaDetailPath",params:{permalink:l.permalink}},class:"product-item__title d-block stretched-link no-decoration font-weight-medium"},{default:w(()=>[x(d(l.source),1)]),_:2},1032,["to"])])])])]))),128))])]),o("div",$e,[s(m,{to:{name:"mediaPath"},class:"btn btn-success px-6 py-3 btn-gradient rounded-pill font-weight-medium"},{default:w(()=>[x(d(_(n)("show_all")),1)]),_:1})])])])}}};typeof B=="function"&&B(V);const je={class:"relative"},Ce={class:"row justify-center"},Se={class:"col-12 text"},Ae={__name:"ModalMediaImage",setup(a){X.use([Y]);const n=D(),{getParams:e}=T(n);return(t,m)=>(i(),r("div",je,[o("div",Ce,[o("div",Se,[s(g,{"product-image-data":_(e).image,"img-class":"embed-responsive embed-responsive-item",sizes:"100vw"},null,8,["product-image-data"])])])]))}};function I(a){const n=a;n.__i18n=n.__i18n||[],n.__i18n.push({locale:"",resource:{cs:{media:e=>{const{normalize:t}=e;return t(["Média"])},media_about_us:e=>{const{normalize:t}=e;return t(["Média o nás"])}},sk:{media:e=>{const{normalize:t}=e;return t(["Médiá"])},media_about_us:e=>{const{normalize:t}=e;return t(["Médiá o nás"])}},pl:{media:e=>{const{normalize:t}=e;return t(["Media"])},media_about_us:e=>{const{normalize:t}=e;return t(["Media o nas"])}},hu:{media:e=>{const{normalize:t}=e;return t(["Megjelenéseink"])},media_about_us:e=>{const{normalize:t}=e;return t(["Rólunk a médiában"])}},de:{media:e=>{const{normalize:t}=e;return t(["Medien"])},media_about_us:e=>{const{normalize:t}=e;return t(["Medien über uns"])}},at:{media:e=>{const{normalize:t}=e;return t(["Medien"])},media_about_us:e=>{const{normalize:t}=e;return t(["Medien über uns"])}},ro:{media:e=>{const{normalize:t}=e;return t(["Media"])},media_about_us:e=>{const{normalize:t}=e;return t(["Media despre noi"])}}}})}const Be={__name:"show",setup(a){const{t:n}=y(),e=L(),t="https://www.mixit.sk/",m=(t.endsWith("/")?t.slice(0,-1):t)+e.path,l=k(!1);U({title:n("media_about_us"),link:[{rel:"canonical",href:m}]});const{params:h}=e,z=k(),v=k({}),p=k([]),{setDefault:b}=G();b(),q((c,u,$)=>{z.value=c.params.permalink,f(),$()});const f=async()=>{const{data:{medium:c}}=await S.get(`media/${z.value}`);v.value=c;const{data:u}=await S.get(`media?limit=4&year=${c.year}`);p.value=u.media,l.value=!0};return H(()=>{z.value=h.permalink,f()}),(c,u)=>(i(),r(M,null,[s(J,null,{default:w(()=>[s(fe,{medium:v.value,"data-loaded":l.value},null,8,["medium","data-loaded"]),s(V,{media:p.value},null,8,["media"])]),_:1}),s(W,{"modal-id":"modal-media-image"},{default:w(()=>[s(Ae)]),_:1})],64))}};typeof I=="function"&&I(Be);export{Be as default};