import{L as _}from"./Layout-CkBTjrsX.js";import{I as h,h as x}from"./moment-C7JtfGJw.js";import{i as u,r,c as s,o,b as e,f as d,t as i,a as c,F as f,j as g,w as b,e as v}from"./app-BLo7SiiE.js";import{P as w}from"./Pagination-D4ad3TfC.js";import{S as y}from"./Subscribe-DnwqbR1f.js";import{_ as k}from"./FlashMessages-DImpr6PL.js";import"./LoadingButton-fIGCYE5-.js";const L={layout:_,props:{posts:Object,type:Object},components:{Icon:h,Pagination:w,Subscribe:y,Link:u},created(){this.moment=x}},B={class:"relative z-10 overflow-hidden bg-primary pt-[120px] pb-[100px] md:pt-[130px] lg:pt-[160px]"},N={class:"container"},V={class:"-mx-4 flex flex-wrap items-center"},Y={class:"w-full px-4"},j={class:"text-center"},z={key:0,class:"text-4xl font-semibold text-white"},C={class:"pt-20 pb-10 lg:pt-[120px] lg:pb-20"},D={class:"container"},I={class:"-mx-4 flex flex-wrap"},M={class:"wow fadeInUp group mb-10","data-wow-delay":".1s"},S={class:"mb-8 overflow-hidden rounded"},F=["href"],O=["src"],P={class:"mb-5 inline-block rounded bg-primary py-1 px-4 text-center text-xs font-semibold leading-loose text-white"},T={class:"text-base text-body-color"};function E(l,n,a,U,q,A){const m=r("Link"),p=r("pagination");return o(),s("div",null,[e("section",B,[e("div",N,[e("div",V,[e("div",Y,[e("div",j,[a.type.name?(o(),s("h1",z,i(a.type.name),1)):d("",!0)])])])]),n[0]||(n[0]=e("div",null,[e("span",{class:"absolute top-0 left-0 z-[-1]"},[e("img",{src:"/landing/images/header/shape-1.svg",alt:""})]),e("span",{class:"absolute top-0 right-0 z-[-1]"},[e("img",{src:"/landing/images/header/shape-2.svg",alt:""})])],-1))]),e("section",C,[e("div",D,[e("div",I,[(o(!0),s(f,null,g(a.posts.data,t=>(o(),s("div",{class:"w-full px-4 md:w-1/2 lg:w-1/3",key:t.id},[e("div",M,[e("div",S,[e("a",{href:l.route("blog.details",t.id),class:"block"},[t.image?(o(),s("img",{key:0,src:t.image,alt:"",class:"w-full transition group-hover:rotate-6 group-hover:scale-125"},null,8,O)):d("",!0)],8,F)]),e("div",null,[e("span",P,i(l.moment(t.updated_at).format("MMM DD, YYYY")),1),e("h3",null,[c(m,{href:l.route("blog.details",t.id),class:"mb-4 inline-block text-xl font-semibold text-dark hover:text-primary sm:text-2xl lg:text-xl xl:text-2xl"},{default:b(()=>[v(i(t.title),1)]),_:2},1032,["href"])]),e("p",T,i(t.details.length<70?t.details:t.details.substring(0,70)+"..."),1)])])]))),128))]),c(p,{class:"mt-6",links:a.posts.links},null,8,["links"])])])])}const X=k(L,[["render",E]]);export{X as default};
