1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[730],{20730:(e,l,a)=>{a.d(l,{default:()=>m});var s=a(95155),t=a(12115),r=a(15239),i=a(52619),n=a.n(i),d=a(25016),c=a(83209),o=a(82180);function m(e){var l,a;let{post:i,className:m,isPinned:x=!1,variant:h="stacked",showReadTime:u=!0,showViews:f=!0}=e,p=(0,t.useId)(),g=new Date(i.publishedAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),j="number"==typeof i.views?i.views:null,N=f&&"number"==typeof j&&j>0,v=N&&null!==j?j>=1e3?"".concat((j/1e3).toFixed(j>=1e4?0:1),"K"):new Intl.NumberFormat("en-US").format(j):null,b=null!=(a=null==(l=i.coverImage)?void 0:l.url)?a:null,w=!!b,k=i.subtitle||i.brief,y=x?(0,s.jsx)("span",{className:"absolute top-2 left-2 z-10 inline-flex items-center px-2 py-1 rounded-md bg-muted dark:bg-muted backdrop-blur-md text-foreground text-sm font-semibold uppercase shadow-sm",children:"Pinned"}):null,C=(e,l,a)=>w?(0,s.jsxs)("div",{className:(0,d.cn)("relative overflow-hidden rounded-lg bg-muted",e,a),children:[y,(0,s.jsx)(r.default,{src:b,alt:i.title,fill:!0,sizes:l,className:"object-cover object-center"})]}):null,z=null!==j?"".concat(j.toLocaleString("en-US")," views"):"",_=[{key:"published",value:g},u&&i.readTimeInMinutes>0?{key:"readingTime",value:"".concat(i.readTimeInMinutes," min read")}:null,{key:"views",value:N&&v?v:"",title:N&&z?z:void 0}].filter(e=>!!(e&&e.value));if("grid"===h){let e=C("aspect-[800/420]","(min-width: 1024px) 50vw, 100vw","w-full");return(0,s.jsx)("article",{"aria-labelledby":p,className:(0,d.cn)("h-full",m),children:(0,s.jsx)(n(),{href:"/".concat(i.slug),className:"block h-full",children:(0,s.jsxs)(c.Zp,{className:"h-full flex flex-col overflow-hidden",children:[(w||x)&&(0,s.jsx)("div",{className:"p-4 pb-0 md:p-6 md:pb-0",children:null!=e?e:x&&(0,s.jsx)("div",{className:"relative",children:y})}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 p-4 md:p-6 grow",children:[(0,s.jsxs)("header",{className:"flex flex-col gap-3",children:[(0,s.jsx)("h3",{id:p,className:"text-foreground text-lg sm:text-xl font-bold leading-snug tracking-tight transition-colors line-clamp-2",children:i.title}),k&&(0,s.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground line-clamp-2",children:k})]}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground mt-auto",children:_.map((e,l)=>{let{key:a,value:t,title:r}=e;return(0,s.jsxs)("span",{className:"whitespace-nowrap",children:[l>0&&(0,s.jsx)("span",{className:"mr-3","aria-hidden":"true",children:"\xb7"}),r?(0,s.jsxs)(o.m_,{children:[(0,s.jsx)(o.k$,{asChild:!0,children:(0,s.jsx)("span",{children:t})}),(0,s.jsx)(o.ZI,{children:r})]}):t]},a)})})]})]})})})}if("magazine-featured"===h){let e=C("aspect-[800/420]","100vw");return(0,s.jsx)("article",{"aria-labelledby":p,className:(0,d.cn)("h-full",m),children:(0,s.jsx)(n(),{href:"/".concat(i.slug),className:"block h-full hover:bg-muted transition-colors",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4 p-4 md:p-6 h-full",children:[null!=e?e:x&&(0,s.jsx)("div",{className:"relative",children:y}),(0,s.jsxs)("header",{className:"flex flex-col gap-2",children:[(0,s.jsx)("h3",{id:p,className:"text-foreground text-xl sm:text-2xl font-bold leading-snug tracking-tight transition-colors line-clamp-3",children:i.title}),k&&(0,s.jsx)("p",{className:"text-sm sm:text-base leading-relaxed text-muted-foreground line-clamp-3",children:k})]}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground mt-auto",children:_.map((e,l)=>{let{key:a,value:t,title:r}=e;return(0,s.jsxs)("span",{className:"whitespace-nowrap",title:r,children:[l>0&&(0,s.jsx)("span",{className:"mr-3","aria-hidden":"true",children:"\xb7"}),t]},a)})})]})})})}if("magazine-secondary"===h){let e=C("aspect-[800/420]","(min-width: 1024px) 25vw, 100vw");return(0,s.jsx)("article",{"aria-labelledby":p,className:(0,d.cn)("h-full",m),children:(0,s.jsx)(n(),{href:"/".concat(i.slug),className:"block h-full hover:bg-muted transition-colors",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3 p-4 h-full",children:[null!=e?e:x&&(0,s.jsx)("div",{className:"relative",children:y}),(0,s.jsx)("header",{className:"flex flex-col gap-1",children:(0,s.jsx)("h3",{id:p,className:"text-foreground text-base font-bold leading-snug tracking-tight transition-colors line-clamp-2",children:i.title})}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2 text-sm text-muted-foreground mt-auto",children:_.map((e,l)=>{let{key:a,value:t,title:r}=e;return(0,s.jsxs)("span",{className:"whitespace-nowrap",title:r,children:[l>0&&(0,s.jsx)("span",{className:"mr-3","aria-hidden":"true",children:"\xb7"}),t]},a)})})]})})})}if("magazine-grid"===h){let e=C("aspect-[800/420]","(min-width: 1024px) 33vw, (min-width: 768px) 50vw, 100vw");return(0,s.jsx)("article",{"aria-labelledby":p,className:(0,d.cn)("h-full",m),children:(0,s.jsx)(n(),{href:"/".concat(i.slug),className:"block h-full hover:bg-muted transition-colors",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3 p-4 md:p-5 h-full",children:[null!=e?e:x&&(0,s.jsx)("div",{className:"relative",children:y}),(0,s.jsxs)("header",{className:"flex flex-col gap-2",children:[(0,s.jsx)("h3",{id:p,className:"text-foreground text-base sm:text-lg font-bold leading-snug tracking-tight transition-colors line-clamp-2",children:i.title}),k&&(0,s.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground line-clamp-2",children:k})]}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2 text-sm text-muted-foreground mt-auto",children:_.map((e,l)=>{let{key:a,value:t,title:r}=e;return(0,s.jsxs)("span",{className:"whitespace-nowrap",title:r,children:[l>0&&(0,s.jsx)("span",{className:"mr-3","aria-hidden":"true",children:"\xb7"}),t]},a)})})]})})})}if("magazine"===h){let e=C("aspect-[800/420]","(min-width: 1024px) 50vw, 100vw","w-full");return(0,s.jsx)("article",{"aria-labelledby":p,className:(0,d.cn)("h-full",m),children:(0,s.jsx)(n(),{href:"/".concat(i.slug),className:"block h-full",children:(0,s.jsxs)(c.Zp,{className:"h-full flex flex-col overflow-hidden",children:[(w||x)&&(0,s.jsx)("div",{className:"p-4 pb-0 md:p-6 md:pb-0",children:null!=e?e:x&&(0,s.jsx)("div",{className:"relative",children:y})}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 p-4 md:p-6 grow",children:[(0,s.jsxs)("header",{className:"flex flex-col gap-3",children:[(0,s.jsx)("h3",{id:p,className:"text-foreground text-lg sm:text-xl font-bold leading-snug tracking-tight transition-colors line-clamp-2",children:i.title}),k&&(0,s.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground line-clamp-2",children:k})]}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground mt-auto",children:_.map((e,l)=>{let{key:a,value:t,title:r}=e;return(0,s.jsxs)("span",{className:"whitespace-nowrap",children:[l>0&&(0,s.jsx)("span",{className:"mr-3","aria-hidden":"true",children:"\xb7"}),r?(0,s.jsxs)(o.m_,{children:[(0,s.jsx)(o.k$,{asChild:!0,children:(0,s.jsx)("span",{children:t})}),(0,s.jsx)(o.ZI,{children:r})]}):t]},a)})})]})]})})})}let I=C("aspect-[800/420]","(min-width: 1024px) 360px, (min-width: 768px) 300px, 100vw","w-full md:max-w-[320px]");return(0,s.jsx)("article",{"aria-labelledby":p,className:(0,d.cn)("h-full",m),children:(0,s.jsx)(n(),{href:"/".concat(i.slug),className:"block h-full",children:(0,s.jsx)(c.Zp,{className:"h-full",children:(0,s.jsxs)("div",{className:(0,d.cn)("grid h-full gap-4 p-4 items-stretch md:gap-6 md:p-6",I?"md:grid-cols-[1.2fr_1fr]":"md:grid-cols-1"),children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!I&&x&&(0,s.jsx)("div",{className:"relative",children:y}),(0,s.jsxs)("header",{className:"flex flex-col gap-3",children:[(0,s.jsx)("h3",{id:p,className:"text-foreground text-lg sm:text-xl font-bold leading-snug tracking-tight transition-colors line-clamp-3",children:i.title}),k&&(0,s.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground line-clamp-3",children:k})]}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground",children:_.map((e,l)=>{let{key:a,value:t,title:r}=e;return(0,s.jsxs)("span",{className:"whitespace-nowrap",children:[l>0&&(0,s.jsx)("span",{className:"mr-3","aria-hidden":"true",children:"\xb7"}),r?(0,s.jsxs)(o.m_,{children:[(0,s.jsx)(o.k$,{asChild:!0,children:(0,s.jsx)("span",{children:t})}),(0,s.jsx)(o.ZI,{children:r})]}):t]},a)})})]}),I&&(0,s.jsx)("div",{className:"flex items-center md:justify-end order-first md:order-last",children:I})]})})})})}},82180:(e,l,a)=>{a.d(l,{TooltipProvider:()=>i,ZI:()=>c,k$:()=>d,m_:()=>n});var s=a(95155);a(12115);var t=a(69216),r=a(25016);function i(e){let{delayDuration:l=0,...a}=e;return(0,s.jsx)(t.Kq,{"data-slot":"tooltip-provider",delayDuration:l,...a})}function n(e){let{...l}=e;return(0,s.jsx)(t.bL,{"data-slot":"tooltip",...l})}function d(e){let{...l}=e;return(0,s.jsx)(t.l9,{"data-slot":"tooltip-trigger",...l})}function c(e){let{className:l,sideOffset:a=0,children:i,...n}=e;return(0,s.jsx)(t.ZL,{children:(0,s.jsxs)(t.UC,{"data-slot":"tooltip-content",sideOffset:a,className:(0,r.cn)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",l),...n,children:[i,(0,s.jsx)(t.i3,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}},83209:(e,l,a)=>{a.d(l,{Zp:()=>i});var s=a(95155),t=a(12115),r=a(25016);let i=t.forwardRef((e,l)=>{let{className:a,...t}=e;return(0,s.jsx)("div",{ref:l,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground transition hover:border-slate-400 dark:hover:border-slate-600",a),...t})});i.displayName="Card",t.forwardRef((e,l)=>{let{className:a,...t}=e;return(0,s.jsx)("div",{ref:l,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",a),...t})}).displayName="CardHeader",t.forwardRef((e,l)=>{let{className:a,...t}=e;return(0,s.jsx)("div",{ref:l,className:(0,r.cn)("font-semibold leading-none tracking-tight",a),...t})}).displayName="CardTitle",t.forwardRef((e,l)=>{let{className:a,...t}=e;return(0,s.jsx)("div",{ref:l,className:(0,r.cn)("text-sm text-muted-foreground",a),...t})}).displayName="CardDescription",t.forwardRef((e,l)=>{let{className:a,...t}=e;return(0,s.jsx)("div",{ref:l,className:(0,r.cn)("p-6 pt-0",a),...t})}).displayName="CardContent",t.forwardRef((e,l)=>{let{className:a,...t}=e;return(0,s.jsx)("div",{ref:l,className:(0,r.cn)("flex items-center p-6 pt-0",a),...t})}).displayName="CardFooter"}}]);
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.