import{L as p}from"./Layout-CkBTjrsX.js";import{I as x,h as _}from"./moment-C7JtfGJw.js";import{i as h,r,c as o,o as a,b as t,f,t as n,a as c,F as u,j as g,w as b,e as v}from"./app-BLo7SiiE.js";import{P as y}from"./Pagination-D4ad3TfC.js";import{S as k}from"./Subscribe-DnwqbR1f.js";import{_ as w}from"./FlashMessages-DImpr6PL.js";import"./LoadingButton-fIGCYE5-.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 a(),o("div",null,[t("section",B,[t("div",N,[t("div",V,[t("div",Y,[t("div",j,[s.type.name?(a(),o("h1",z,n(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,[(a(!0),o(u,null,g(s.posts.data,e=>(a(),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,n(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(n(e.title),1)]),_:2},1032,["href"])]),t("p",F,n(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};
