import{L as p}from"./Layout-CvLR9wQj.js";import{I as x,h as _}from"./moment-BywspGD9.js";import{i as h,r,c as o,b as t,t as a,h as f,F as u,j as g,a as c,o as n,w as b,e as v}from"./app-CK3cEAAe.js";import{P as y}from"./Pagination-CpO7GCRF.js";import{S as k}from"./Subscribe-DhodLqop.js";import{_ as w}from"./FlashMessages-ByEdcHWZ.js";import"./LoadingButton-DQHYFAIm.js";const L={layout:p,props:{posts:Object,type:Object},components:{Icon:x,Pagination:y,Subscribe:k,Link:h},created(){this.moment=_}},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-5 inline-block rounded bg-primary py-1 px-4 text-center text-xs font-semibold leading-loose text-white"},F={class:"text-base text-body-color"};function O(i,l,s,P,T,E){const d=r("Link"),m=r("pagination");return n(),o("div",null,[t("section",B,[t("div",N,[t("div",V,[t("div",Y,[t("div",j,[s.type.name?(n(),o("h1",z,a(s.type.name),1)):f("",!0)])])])]),l[0]||(l[0]=t("div",null,[t("span",{class:"absolute top-0 left-0 z-[-1]"},[t("img",{src:"/landing/images/header/shape-1.svg",alt:""})]),t("span",{class:"absolute top-0 right-0 z-[-1]"},[t("img",{src:"/landing/images/header/shape-2.svg",alt:""})])],-1))]),t("section",C,[t("div",D,[t("div",I,[(n(!0),o(u,null,g(s.posts.data,e=>(n(),o("div",{class:"w-full px-4 md:w-1/2 lg:w-1/3",key:e.id},[t("div",M,[t("div",null,[t("span",S,a(i.moment(e.updated_at).format("MMM DD, YYYY")),1),t("h3",null,[c(d,{href:i.route("kb.details",e.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(a(e.title),1)]),_:2},1032,["href"])]),t("p",F,a(e.details.length<70?e.details:e.details.substring(0,70)+"..."),1)])])]))),128))]),c(m,{class:"mt-6",links:s.posts.links},null,8,["links"])])])])}const Q=w(L,[["render",O]]);export{Q as default};
