1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77629,e=>{"use strict";var t=e.i(26755),l=e.i(29539),s=e.i(98618),a=e.i(11181),i=e.i(85818),r=e.i(96404),d=e.i(44166),o=e.i(88625),n=e.i(24399);function c({post:e,reversed:l=!1,className:s=""}){let a=e.image?(0,o.getFileUrl)(e,e.image):"/placeholder-image.webp";return(0,t.jsxs)(d.default,{href:`/blog/${e.slug||e.id}`,className:`group flex cursor-pointer flex-col justify-between rounded-[8px] border border-slate-200 bg-slate-50 p-2 transition-all duration-300 hover:translate-y-[-2.5%] hover:bg-slate-100/80 lg:col-span-2 ${l?"lg:flex-row-reverse":"lg:flex-row"} gap-4 lg:gap-6 ${s}`,children:[(0,t.jsx)("div",{className:"relative aspect-[16/10] w-full shrink-0 overflow-hidden rounded-[8px] border border-black/5 lg:w-1/2",children:(0,t.jsx)(r.default,{src:a,alt:e.title||"Blog featured image",fill:!0,sizes:"(max-width: 1024px) 100vw, 50vw",className:"object-cover transition-transform duration-300 group-hover:scale-105"})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col justify-between p-2 lg:py-2 lg:pr-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-inter text-[12px] font-medium text-slate-500",children:e.expand?.category?.title||"General"}),(0,t.jsx)("h3",{className:"font-geist mt-3 text-[18px] leading-[130%] font-medium tracking-[-0.3px] text-slate-900 lg:text-[22px]",children:e.title})]}),(0,t.jsx)("div",{className:"font-inter mt-6 flex items-center text-[12px] font-medium text-slate-500",children:(0,t.jsx)("span",{children:(0,n.formatDate)(e.created)})})]})]})}var x=e.i(6282);let u="category",g=(0,l.memo)(function({categories:e=[],onSelectCategory:s}){let i=(0,x.useRouter)(),r=(0,x.usePathname)(),d=(0,x.useSearchParams)(),o=(0,l.useMemo)(()=>[{id:"-1",title:"All",count:e.reduce((e,t)=>e+t.count,0),slug:"all"},...e.map(e=>({...e,slug:(e.title||e.id).toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/(^-+|-+$)/g,"")}))],[e]),n=d.get(u)??"all",c=(0,l.useCallback)(e=>{let t=new URLSearchParams(d.toString());"all"===e.slug?t.delete(u):t.set(u,e.slug);let l=t.toString();i.push(`${r}${l?`?${l}`:""}`,{scroll:!1}),s?.(e.id)},[i,r,d,s]);return(0,t.jsx)("div",{className:"flex w-full items-center gap-3 overflow-x-auto pb-2 [-ms-overflow-style:none] [-webkit-overflow-scrolling:touch] [scrollbar-width:none] md:flex-wrap md:overflow-visible md:pb-0 max-md:[&::-webkit-scrollbar]:hidden",children:o.map(e=>{let l=n===e.slug;return(0,t.jsx)("div",{onClick:()=>c(e),className:`${0===e.count?"hidden":""} group shrink-0 cursor-pointer`,children:(0,t.jsxs)(a.default,{variant:"tertiary",className:` ${l?"bg-[#000000] text-white":"bg-[#F1F1F1] hover:bg-[#D9D9D9] hover:text-[#101010]"} `,children:[(0,t.jsxs)("span",{children:[e.title," "]}),(0,t.jsxs)("span",{className:`font-geist-pixel-square ${l?"text-white":"text-blue-500"}`,children:["[",e.count,"]"]})]})},e.id)})})});function m(e){return{id:e.id,slug:e.slug||e.id,title:e.title,category:e.expand?.category?.title||"General",date:(0,n.formatDate)(e.created),imageSrc:e.image,collectionId:e.collectionId}}e.s(["default",0,function({categories:e=[],posts:r=[]}){let[d,o]=(0,l.useState)("-1"),n=(0,l.useMemo)(()=>e.map(e=>({id:e.id,title:e.title,count:r.filter(t=>t.expand?.category?.id===e.id).length})),[e,r]),x="-1"===d,u=(0,l.useMemo)(()=>x?r:r.filter(e=>e.expand?.category?.id===d),[r,d,x]),[p,f,h,j,...v]=u;return(0,t.jsx)("div",{className:"min-h-screen bg-slate-50/50 pt-30 pb-20 lg:pt-47",children:(0,t.jsxs)(s.default,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-12",children:[(0,t.jsx)("h2",{className:"text-[26px] leading-[1.2] font-medium text-black max-md:max-w-[201px] lg:text-[48px]",children:"The Third Factor Blogs"}),(0,t.jsx)(l.Suspense,{fallback:(0,t.jsx)("div",{}),children:(0,t.jsx)(g,{categories:n,onSelectCategory:o})})]}),(0,t.jsx)("div",{className:"mt-8 h-px w-full bg-slate-200"}),(0,t.jsx)("div",{className:"blog-cards-container mt-12 grid w-full grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:x?(0,t.jsxs)(t.Fragment,{children:[p&&(0,t.jsx)(c,{post:p},`featured-1-${p.id}`),f&&(0,t.jsx)(i.default,{post:m(f)},`post-2-${f.id}`),h&&(0,t.jsx)(c,{className:"lg:flex-row-reverse!",post:h,reversed:!0},`featured-2-${h.id}`),j&&(0,t.jsx)(i.default,{post:m(j)},`post-4-${j.id}`),v.map(e=>(0,t.jsx)(i.default,{post:m(e)},e.id))]}):u.map(e=>(0,t.jsx)(i.default,{post:m(e)},e.id))}),u.length>0&&(0,t.jsx)("div",{className:"mt-12 hidden justify-center",children:(0,t.jsx)(a.default,{variant:"primary",children:"View more blog"})})]})})}],77629)}]);
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.