import{_ as D,b_ as y,m as k,M as B,f as a,o as c,v as x,w as l,g as r,h as s,i as e,t as i,F as w,k as S}from"./app-ff872a97.js";const $={data:()=>({metaTitle:"",metaDescription:"",loading:!0,blogDetails:{},recentBlogs:[{},{},{},{},{}]}),components:{SocialShare:y},computed:{...k("app",["appUrl"]),appURL:function(){return this.appUrl+"/"+this.blogDetails.slug}},watch:{metaTitle(t){this.updateHead(t,this.metaDescription)},metaDescription(t){this.updateHead(this.metaTitle,t)}},methods:{updateHead(t,n){B({title:t,meta:[{name:"description",content:n}]})}},async created(){const t=await this.call_api("get",`blog/details/${this.$route.params.slug}`);t.data.success&&(this.blogDetails=t.data.data,this.metaTitle=t.data.data.meta_title,this.metaDescription=t.data.data.meta_description,this.recentBlogs=t.data.recentBlogs.data,this.loading=!1)}},H={key:0,class:"mx-auto col-12 col-md-8 mt-4"},T={key:1,class:"mx-auto col-12 col-md-8 mt-4"},F={class:"px-0 pt-0"},L={class:"row justify-content-sm-between"},E={class:"col-sm-6"},M={class:"grey--text text-truncate"},U={class:"text-truncate"},j={class:"col-sm-6 text-sm-right"},C={class:"position-relative"},N=["src"],V=["innerHTML"],G={class:"fw-700 fs-14 mb-4 border-bottom pb-3"},q=["src"],z={class:"pa-0 text-truncate-2"},A={class:"grey--text text-truncate"},I={class:"text-truncate"};function J(t,n,K,O,P,Q){const m=a("v-skeleton-loader"),p=a("SocialShare"),d=a("v-card-text"),u=a("v-divider"),_=a("v-col"),g=a("router-link"),h=a("v-row"),v=a("v-container");return c(),x(v,{class:"py-9"},{default:l(()=>[t.loading?(c(),r("div",H,[s(m,{type:"image",height:"145"})])):(c(),r("div",T,[s(h,{class:"gutters-20"},{default:l(()=>[s(_,{cols:"12",md:"9",class:"pt-0"},{default:l(()=>[e("h3",F,i(t.blogDetails.title),1),s(d,{class:"px-0"},{default:l(()=>[e("div",L,[e("div",E,[e("div",M,[e("i",null,i(t.blogDetails.category),1)]),e("span",U,i(t.blogDetails.created_at),1)]),e("div",j,[s(p,{title:t.blogDetails.title},null,8,["title"])])])]),_:1}),e("div",C,[e("img",{src:t.blogDetails.banner,class:"img-fit rounded",alt:"Banner",onError:n[0]||(n[0]=o=>t.imageFallback(o))},null,40,N)]),s(u,{class:"mx-4"}),e("div",{class:"py-4 blog-details-description text-justify",innerHTML:t.blogDetails.description},null,8,V)]),_:1}),s(_,{cols:"12",md:"3",class:"mt-2 mt-md-0"},{default:l(()=>[e("h4",G,i(t.$t("recent_blogs")),1),(c(!0),r(w,null,S(t.recentBlogs,(o,f)=>(c(),r("div",{class:"my-2",key:f},[s(g,{to:{name:"BlogDetails",params:{slug:o.slug}},class:"text-reset fs-14 fw-600"},{default:l(()=>[e("img",{src:o.banner,class:"img-fit rounded",alt:"Banner",onError:n[1]||(n[1]=b=>t.imageFallback(b))},null,40,q),e("h4",z,i(o.title),1),s(d,{class:"px-0 pt-1"},{default:l(()=>[e("div",A,[e("i",null,i(o.category),1)]),e("span",I,i(o.created_at),1)]),_:2},1024)]),_:2},1032,["to"])]))),128))]),_:1})]),_:1})]))]),_:1})}const X=D($,[["render",J]]);export{X as default};
