1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8317],{71976:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(78030).Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},87138:function(e,t,r){r.d(t,{default:function(){return a.a}});var n=r(231),a=r.n(n)},55601:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return i},getImageProps:function(){return o}});let n=r(99920),a=r(80497),s=r(38173),l=n._(r(21241));function o(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let i=s.Image},18317:function(e,t,r){r.d(t,{default:function(){return b}});var n=r(57437),a=r(2265),s=r(87138),l=r(55601),o=r.n(l),i=r(48185),c=r(79055),d=r(78030);let u=(0,d.Z)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),f=(0,d.Z)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),g=(0,d.Z)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var m=r(71976),h=r(89733),x=r(49354),p=r(68292),v=e=>{var t,r;let{post:a}=e,l=a.category?(0,p.un)(a.category):"uncategorized",d=(0,x.p)(a.publishedAt),v=(null===(r=a.mainImage)||void 0===r?void 0:null===(t=r.asset)||void 0===t?void 0:t._ref)?"https://cdn.sanity.io/images/n22ec8qe/production/".concat(a.mainImage.asset._ref.replace("image-","").replace("-jpg",".jpg").replace("-png",".png").replace("-webp",".webp").replace("-jpeg",".jpeg")):"/placeholder.svg";return(0,n.jsxs)(i.Zb,{className:"overflow-hidden flex flex-col h-full border-2 border-black/20 shadow-sm hover:shadow-md transition-shadow duration-300 font-[Verdana,sans-serif]",children:[(0,n.jsxs)("div",{className:"h-48 overflow-hidden relative",children:[(0,n.jsx)(s.default,{href:"/blog/post/".concat(a.slug.current),className:"relative block h-full",children:(0,n.jsx)(o(),{src:v,alt:a.title,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",style:{objectFit:"cover"},className:"transition-transform hover:scale-105 duration-300"})}),a.category&&(0,n.jsx)(s.default,{href:"/blog/category/".concat(l),onClick:e=>e.stopPropagation(),children:(0,n.jsx)(c.C,{className:"absolute top-3 left-3 max-w-[75%] truncate bg-[#095591] text-white hover:bg-[#095591]/80",children:a.category})})]}),(0,n.jsx)(i.Ol,{className:"pb-2",children:(0,n.jsx)(i.ll,{className:"text-xl line-clamp-2 hover:text-[#095591] transition-colors",children:(0,n.jsx)(s.default,{href:"/blog/post/".concat(a.slug.current),children:a.title})})}),(0,n.jsxs)(i.aY,{className:"pb-4 flex-grow",children:[a.author&&(0,n.jsxs)("div",{className:"flex items-center text-sm mb-2",children:[(0,n.jsx)(u,{className:"mr-1 h-3 w-3 text-muted-foreground"}),(0,n.jsx)("span",{className:"text-muted-foreground text-xs",children:"By: "}),(0,n.jsx)("span",{className:"text-xs ml-1",children:a.author})]}),(0,n.jsx)(i.SZ,{className:"line-clamp-3 mb-4 text-sm",children:a.excerpt}),(0,n.jsxs)("div",{className:"flex items-center text-sm text-muted-foreground",children:[(0,n.jsxs)("span",{className:"flex items-center",children:[(0,n.jsx)(f,{className:"mr-1 h-3 w-3"}),d]}),(0,n.jsx)("span",{className:"mx-2",children:"â¢"}),(0,n.jsxs)("span",{className:"flex items-center",children:[(0,n.jsx)(g,{className:"mr-1 h-3 w-3"}),a.estimatedReadingTime||"5 min read"]})]})]}),(0,n.jsx)(i.eW,{children:(0,n.jsx)(s.default,{href:"/blog/post/".concat(a.slug.current),children:(0,n.jsxs)(h.z,{variant:"ghost",className:"p-0 h-auto group text-[#095591] hover:text-[#095591]/80 hover:bg-transparent",children:[(0,n.jsx)("span",{children:"Read Article"}),(0,n.jsx)(m.Z,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]})})})]})},b=e=>{let{posts:t}=e,[r,s]=(0,a.useState)(6),[l,o]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{var e;console.log("BlogPostGrid mounted with posts:",{count:(null==t?void 0:t.length)||0,firstPost:(null==t?void 0:t[0])?{title:t[0].title,publishedAt:t[0].publishedAt,_id:t[0]._id,slug:null===(e=t[0].slug)||void 0===e?void 0:e.current}:null}),o(!0)},[t]),l)?(0,n.jsxs)("div",{className:"container mx-auto px-4 md:px-6 mb-16 font-[Verdana,sans-serif]",children:[(0,n.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-10",children:null==t?void 0:t.slice(0,r).map(e=>(0,n.jsx)(v,{post:e},e._id))}),t&&r<t.length&&(0,n.jsx)("div",{className:"mt-12 text-center",children:(0,n.jsx)(h.z,{onClick:()=>{s(e=>Math.min(e+6,t.length))},className:"bg-emdata-darkpink hover:bg-emdata-pink text-white px-8",children:"Load More"})})]}):null}},68292:function(e,t,r){r.d(t,{bd:function(){return a},un:function(){return n}});let n=e=>(null==e?void 0:e.toLowerCase().replace(/\s+/g,"-").replace(/[&()]/g,"").replace(/--/g,"-"))||"uncategorized",a=[{name:"News",slug:"news"},{name:"Features",slug:"features"},{name:"Spotlights",slug:"spotlights"},{name:"Education",slug:"education"}]},79055:function(e,t,r){r.d(t,{C:function(){return o}});var n=r(57437);r(2265);var a=r(13027),s=r(49354);let l=(0,a.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-[#095591] bg-white text-[#095591] hover:bg-[#095591]/10",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"border-[#095591] text-[#095591] bg-white",success:"border-green-500 bg-green-100 text-green-700"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:r,...a}=e;return(0,n.jsx)("div",{className:(0,s.cn)(l({variant:r}),t),...a})}},89733:function(e,t,r){r.d(t,{z:function(){return c}});var n=r(57437),a=r(2265),s=r(71538),l=r(13027),o=r(49354);let i=(0,l.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-black text-white hover:bg-black/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-black hover:text-white",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-black underline-offset-4 hover:underline",darkred:"bg-[#095591] text-white hover:bg-[#095591]/90"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>
1{let{className:r,variant:a,size:l,asChild:c=!1,...d}=e,u=c?s.g7:"button";return(0,n.jsx)(u,{className:(0,o.cn)(i({variant:a,size:l,className:r})),ref:t,...d})});c.displayName="Button"},48185:function(e,t,r){r.d(t,{Ol:function(){return o},SZ:function(){return c},Zb:function(){return l},aY:function(){return d},eW:function(){return u},ll:function(){return i}});var n=r(57437),a=r(2265),s=r(49354);let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("border bg-card text-card-foreground shadow-sm",r),...a})});l.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...a})});o.displayName="CardHeader";let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h3",{ref:t,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});i.displayName="CardTitle";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...a})});c.displayName="CardDescription";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...a})});d.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},49354:function(e,t,r){r.d(t,{cn:function(){return s},p:function(){return l}});var n=r(44839),a=r(96164);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m6)((0,n.W)(t))}function l(e){let t=new Date(e);return new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric"}).format(t)}}}]);
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.