const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bmj_12NV.js","assets/index-D1vJ9qYR.css"])))=>i.map(i=>d[i]); import{_ as R,Y as T,S as V,a as p,r as c,d as u,e as o,m as j,b as I,Z as P,f as m,i as a,w as _,V as w,j as E,o as l,T as O,g as d,N as D,A as f,t as A,h,p as g,n as v}from"./index-Bmj_12NV.js";import{F as $}from"./Footer-HZwtkbtN.js";import{a as b}from"./alternate-hreflangs-xZGRuUDd.js";import{u as k}from"./index-Dz520mHp.js";import{u as C}from"./vue.f36acd1f-DOct_Vl-.js";const x={name:"Content",props:["slug"],components:{Footer:$,vueVimeoPlayer:T},beforeRouteEnter(i,t,n){n(e=>{const s=i.params.locale;V.includes(s)&&(e.$i18n.locale=s,p().$patch({locale:s})),i.name==="remedies-content"&&e.$i18n.locale!==null&&i.path.startsWith("/"+e.$i18n.locale)===!1&&(e.$i18n.locale!=="en"||s)?c.push("/"+e.$i18n.locale+"/"+e.$t("routes.remedies")+"/"+i.params.slug).catch(()=>{}):i.name==="contact-content"&&e.$i18n.locale!==null&&i.path.startsWith("/"+e.$i18n.locale)===!1&&(e.$i18n.locale!=="en"||s)?c.push("/"+e.$i18n.locale+"/"+e.$t("routes.about-us")+"/"+i.params.slug).catch(()=>{}):i.name==="about"&&e.$i18n.locale!==null&&i.path.startsWith("/"+e.$i18n.locale)===!1&&(e.$i18n.locale!=="en"||s)?c.push("/"+e.$i18n.locale+"/"+e.$t("routes.contact")+"/"+i.params.slug).catch(()=>{}):i.name==="sanum"&&e.$i18n.locale!==null&&i.path.startsWith("/"+e.$i18n.locale)===!1&&(e.$i18n.locale!=="en"||s)?c.push("/"+e.$i18n.locale+i.path).catch(()=>{}):n()})},data(){return{show:!1,content:null,slug_en:"",previousLocale:"en",title:"",description:"",image:"",keywords:"",url:"",playerReady:!1,options:{responsive:!0,dnt:!0},links:b(this.$router,this.$i18n)}},watch:{$route(i,t){if(i!==t&&this.slug){this.show=!1;let n=this.locale;u(Object.assign({"../locales/cs.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bl),__vite__mapDeps([0,1])),"../locales/de.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bm),__vite__mapDeps([0,1])),"../locales/en.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bn),__vite__mapDeps([0,1])),"../locales/es.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bo),__vite__mapDeps([0,1])),"../locales/fi.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bp),__vite__mapDeps([0,1])),"../locales/fr.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bq),__vite__mapDeps([0,1])),"../locales/it.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.br),__vite__mapDeps([0,1])),"../locales/ja.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bs),__vite__mapDeps([0,1])),"../locales/nl.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bt),__vite__mapDeps([0,1])),"../locales/ru.json":()=>o(()=>import("./index-Bmj_12NV.js").then(e=>e.bu),__vite__mapDeps([0,1]))}),"../locales/".concat(n,".json"),3).then(e=>{let s=e.routes;for(let r in s)s[r].toLowerCase()===this.slug.toLowerCase()&&this.loadContent(r)})}},locale(){this.show=!1;let i=this.locale;u(Object.assign({"../locales/cs.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bl),__vite__mapDeps([0,1])),"../locales/de.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bm),__vite__mapDeps([0,1])),"../locales/en.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bn),__vite__mapDeps([0,1])),"../locales/es.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bo),__vite__mapDeps([0,1])),"../locales/fi.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bp),__vite__mapDeps([0,1])),"../locales/fr.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bq),__vite__mapDeps([0,1])),"../locales/it.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.br),__vite__mapDeps([0,1])),"../locales/ja.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bs),__vite__mapDeps([0,1])),"../locales/nl.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bt),__vite__mapDeps([0,1])),"../locales/ru.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bu),__vite__mapDeps([0,1]))}),"../locales/".concat(i,".json"),3).then(t=>{let n=t.routes;for(let e in n)n[e].toLowerCase()===this.slug.toLowerCase()&&this.loadContent(e)})}},mounted(){this.$gtag.pageview({page_path:this.$route.path}),document.getElementById("scrolling-content").scrollTop=0;let i=this.locale;u(Object.assign({"../locales/cs.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bl),__vite__mapDeps([0,1])),"../locales/de.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bm),__vite__mapDeps([0,1])),"../locales/en.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bn),__vite__mapDeps([0,1])),"../locales/es.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bo),__vite__mapDeps([0,1])),"../locales/fi.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bp),__vite__mapDeps([0,1])),"../locales/fr.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bq),__vite__mapDeps([0,1])),"../locales/it.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.br),__vite__mapDeps([0,1])),"../locales/ja.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bs),__vite__mapDeps([0,1])),"../locales/nl.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bt),__vite__mapDeps([0,1])),"../locales/ru.json":()=>o(()=>import("./index-Bmj_12NV.js").then(t=>t.bu),__vite__mapDeps([0,1]))}),"../locales/".concat(i,".json"),3).then(t=>{let n=t.routes;for(let e in n)n[e].toLowerCase()===this.slug.toLowerCase()&&this.loadContent(e)})},computed:{...j(p,["locale"])},methods:{addMeta(){C({htmlAttrs:{lang:this.locale},link:b(this.$router,this.$i18n)}),k({title:"Helios Homeopathy - "+this.title,description:this.description,keywords:this.keywords,ogDescription:this.description,ogTitle:this.name,ogImage:this.image,ogUrl:this.url,twitterTitle:this.name,twitterDescription:this.description,twitterImage:this.image,twitterCard:"summary_large_image"})},loadContent(i){I.create({baseURL:"https://api.helios.co.uk",headers:P()}).get("/api/content/"+i).then(n=>{this.content=n.data.data,this.url="https://helios.co.uk"+this.$route.path,this.title=n.data.data.heading,this.description=n.data.data.description,this.image=n.data.data.path?"https://images.helios.co.uk/cdn-cgi/image/width=800,quality=85,fit=contain/"+n.data.data.path:"",this.keywords=n.data.data.keywords,this.robots="all",this.addMeta(),this.show=!0,setTimeout(function(){window.prerenderReady=!0},1e3)}).catch(n=>{n.response&&n.response.status===404&&this.$router.push("/404/not-found").catch(()=>{})})},onReady(){this.playerReady=!0,document.getElementById("scrolling-content").scrollTop=0},play(){this.$refs.player.play()},pause(){this.$refs.player.pause()}}},q={id:"content"},H={class:"text-h4 mb-6 text-capitalize"},S={key:0,class:"video-container mb-6"},B=["innerHTML"];function M(i,t,n,e,s,r){const L=E("vueVimeoPlayer"),y=E("Footer");return l(),m("div",q,[a(w,null,{default:_(()=>[a(O,{name:"fade"},{default:_(()=>[s.show&&s.content?(l(),d(v,{key:0,class:"mx-auto pa-4 text-left",outlined:"",tile:"","max-width":"800"},{default:_(()=>[a(D,null,{default:_(()=>[f("h1",H,A(i.$t("headings."+s.content.heading)),1),s.content.video?(l(),m("div",S,[a(L,{ref:"player","video-id":s.content.video,onReady:r.onReady,class:"player-container",options:s.options},null,8,["video-id","onReady","options"])])):h("",!0),s.content.banner?(l(),d(g,{key:1,contain:"",src:"https://images.helios.co.uk/cdn-cgi/image/width=400,quality=85,fit=contain/"+s.content.banner,srcset:"https://images.helios.co.uk/cdn-cgi/image/width=800,quality=85,fit=contain/"+s.content.banner+" 2x",class:"mb-6"},null,8,["src","srcset"])):h("",!0),s.content.path?(l(),d(g,{key:2,width:"50%",contain:"",src:"https://images.helios.co.uk/cdn-cgi/image/width=400,quality=85,fit=contain/"+s.content.path,srcset:"https://images.helios.co.uk/cdn-cgi/image/width=800,quality=85,fit=contain/"+s.content.path+" 2x",class:"float-right ml-6 mb-3"},null,8,["src","srcset"])):h("",!0),f("div",{innerHTML:s.content.copy,style:{"white-space":"pre-line"},class:"text-body-1"},null,8,B)]),_:1})]),_:1})):h("",!0)]),_:1})]),_:1}),a(y)])}const Y=R(x,[["render",M]]);export{Y as default}; //# sourceMappingURL=Content-C9SiVAUv.js.map