1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8560],{88560:(e,t,l)=>{l.r(t),l.d(t,{default:()=>i});var s=l(95155),n=l(12115);l(6874);var a=l(66766),d=l(35695);let i=e=>{let{newsAndBlogs:t=[]}=e,l=(0,d.useRouter)(),[i,r]=(0,n.useState)(3);(0,n.useEffect)(()=>{let e=()=>{window.innerWidth<768?r(2):r(3)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let o=t&&[...t].sort((e,t)=>e.eventDate&&t.eventDate?new Date(t.eventDate)-new Date(e.eventDate):(t.displayOrder||0)-(e.displayOrder||0)),u=null==o?void 0:o.slice(0,i);return(null==u?void 0:u.length)?(0,s.jsxs)("div",{className:"py-11 w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mx-auto",children:[(0,s.jsx)("h2",{className:"text-lg sm:text-xl md:text-2xl text-[#1C1C1C] font-medium",children:"News and Blogs"}),(0,s.jsx)("button",{onClick:e=>{l.push("/blog")},className:"bg-[#304EA1] text-md text-[#ffffff] font-normal rounded-sm px-5 py-1 transition-colors duration-200 hover:opacity-90",children:"See All"})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 md:gap-6 mx-auto mt-8",children:u.map(e=>(0,s.jsxs)("div",{className:"relative w-full h-[200px] sm:h-[300px] md:h-[380px] rounded-lg overflow-hidden group cursor-pointer",onClick:()=>l.push("/blog/".concat(e.slug)),children:[(0,s.jsx)(a.default,{src:(null==e?void 0:e.thumbnail)||"/NewsAndBlogs1.png",alt:null==e?void 0:e.headLine,fill:!0,className:"object-cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent to-[#000000BF]"}),(0,s.jsx)("div",{className:"absolute bottom-0 left-0 p-4 sm:p-6 w-full",children:(0,s.jsx)("h3",{className:"text-white text-sm sm:text-base md:text-xl font-semibold",children:null==e?void 0:e.headLine})})]},e._id))})]}):null}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.