import{Q as u}from"./QPage.4b25609a.js";import{_ as m,S as _,r as l,z as f,o as h,c as p,w as b,aa as x,f as a,t as B}from"./index.ff6d394a.js";import{c as k}from"./apiServices.3c55a2c2.js";import"./render.eba623de.js";let r,g;const v={created(){r=this.$route.params.slug,g=this.$route.params.bid},setup(){_();const e=l([]);let o=l({}),i=l(!0);const t=async()=>{e.value=await k("blog"),o.value=e.value.find(s=>s.linkID.toString()===g)&&e.value.find(s=>s.slug===r)};return f(()=>{t()}),{blogs:e,slug:r,singleBlog:o,isloading:i}}},w={class:"image q-pa-lg q-z-10 bg-black"},y=["src"],q={class:"q-pa-md bg-white text-dark-gray"},D={class:"text-black text-weight-bold text-2"},S=["innerHTML"];function C(e,o,i,t,s,M){return t.isloading?(h(),p(u,{key:0,class:"flex column cairo"},{default:b(()=>{var n,c,d;return[a("figure",w,[a("img",{src:"https://elmetr-cms.media-bots.com/storage/uploads/"+((c=(n=t.singleBlog)==null?void 0:n.image)==null?void 0:c.path),class:"w-full rounded-borders",alt:""},null,8,y)]),a("div",q,[a("h3",D,B((d=t.singleBlog)==null?void 0:d.title),1),a("div",{class:"q-py-xs",innerHTML:t.singleBlog.body,id:"htmlContainer"},null,8,S)])]}),_:1})):x("",!0)}var N=m(v,[["render",C]]);export{N as default};