1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5251],{3707:(e,t,r)=>{Promise.resolve().then(r.bind(r,15062))},15062:(e,t,r)=>{"use strict";r.d(t,{BlogListClient:()=>x});var a=r(69496),s=r(37172),i=r(92839),l=r(34259),n=r(74013),o=r(77612),c=r(55057),m=r(44540),u=r(77313);function d(e){let{post:t}=e,r=(0,i.useRouter)(),s=t.publishedAt?new Date(t.publishedAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):null,l=t.categories[0];return(0,a.jsxs)("article",{className:"group cursor-pointer",onClick:()=>r.push("/blog/".concat(t.slug)),children:[(0,a.jsx)("div",{className:"aspect-video rounded-xl overflow-hidden bg-primary/5 mb-4",children:t.coverImageUrl?(0,a.jsx)("img",{src:t.coverImageUrl,alt:t.title,className:"w-full h-full object-cover group-hover:scale-[1.02] transition-transform duration-300",loading:"lazy"}):(0,a.jsx)("div",{className:"w-full h-full"})}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-2 text-sm text-bloom-text-tertiary",children:["draft"===t.status&&(0,a.jsx)("span",{className:"px-1.5 py-0.5 rounded-full bg-amber-500/10 text-amber-600 font-medium",children:"Draft"}),l&&(0,a.jsx)("span",{children:l}),l&&s&&(0,a.jsx)("span",{children:"\xb7"}),s&&(0,a.jsx)("time",{children:s})]}),(0,a.jsx)("h2",{className:"text-2xl font-medium text-primary mb-2 group-hover:text-primary/80 transition-colors leading-snug",children:t.title}),(0,a.jsx)("p",{className:"text-base text-bloom-text-tertiary leading-relaxed line-clamp-2",children:t.excerpt})]})}function x(e){let{posts:t}=e,{isAuthenticated:r,isLoading:i}=(0,l.Z)(),{user:x}=(0,u.Z)(),p=!!(null==x?void 0:x.isAdmin),[h,g]=(0,s.useState)(null),[b,f]=(0,s.useState)(!1),y=(0,m.v2)(c.FH.queries.blogPosts.auth.getAllBlogPostsForAdmin,!i&&r&&p?{}:"skip",{initialNumItems:50}),v=p?y.results:null,j=b&&v?v:t,N=Array.from(new Set(j.flatMap(e=>e.categories))).sort(),w=h?j.filter(e=>e.categories.includes(h)):j;return(0,a.jsxs)("div",{className:"relative min-h-screen pb-24",children:[(0,a.jsxs)(n.P.header,{initial:{opacity:0,y:15,filter:"blur(8px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.5},className:"relative z-10 text-center pt-16 pb-12",children:[(0,a.jsx)("h1",{className:"text-5xl sm:text-[56px] font-medium text-primary tracking-tight leading-none",children:"Blog"}),(0,a.jsx)("p",{className:"text-xl sm:text-2xl font-medium text-bloom-text-tertiary mt-4",children:"Stories and insights from the Bloom team"})]}),(0,a.jsxs)("div",{className:"max-w-5xl mx-auto px-6 lg:px-8",children:[N.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap justify-center gap-2 mb-10",children:[(0,a.jsx)("button",{onClick:()=>g(null),className:(0,o.cn)("text-base px-3 py-1 rounded-full transition-colors",h?"text-bloom-text-tertiary hover:text-primary hover:bg-primary/5":"bg-primary text-primary-foreground"),children:"All"}),N.map(e=>(0,a.jsx)("button",{onClick:()=>g(h===e?null:e),className:(0,o.cn)("text-base px-3 py-1 rounded-full transition-colors",h===e?"bg-primary text-primary-foreground":"text-bloom-text-tertiary hover:text-primary hover:bg-primary/5"),children:e},e))]}),0===w.length?(0,a.jsx)("div",{className:"text-center py-24",children:(0,a.jsx)("p",{className:"text-bloom-text-tertiary text-xl",children:h?'No posts in "'.concat(h,'" yet.'):"No blog posts yet."})}):(0,a.jsx)(n.P.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"grid grid-cols-1 md:grid-cols-2 gap-x-10 gap-y-12",children:w.map(e=>(0,a.jsx)(d,{post:e},e._id))})]}),p&&(0,a.jsxs)("button",{onClick:()=>f(!b),className:(0,o.cn)("fixed bottom-6 left-6 z-50 flex items-center gap-2 px-3 py-1.5 rounded-full text-sm font-medium transition-all shadow-lg backdrop-blur-sm",b?"bg-amber-500/90 text-white hover:bg-amber-500":"bg-primary/5 text-bloom-text-tertiary hover:text-bloom-text-secondary hover:bg-primary/10 border border-primary/10"),children:[(0,a.jsx)("div",{className:(0,o.cn)("w-1.5 h-1.5 rounded-full",b?"bg-white":"bg-amber-500")}),b?"Showing drafts":"Drafts"]})]})}},77612:(e,t,r)=>{"use strict";r.d(t,{F:()=>n,cn:()=>i,z:()=>l});var a=r(96541),s=r(81165);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";let r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(t<0?0:t))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}function n(e){switch(e){case"image":return"\uD83D\uDDBCï¸";case"icon":return"\uD83D\uDD37";case"document":return"\uD83D\uDCC4";case"font":return"\uD83D\uDD24";case"audio":return"\uD83C\uDFB5";case"vector":return"âï¸";default:return"\uD83D\uDCC1"}}},92839:(e,t,r)=>{"use strict";var a=r(34735);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})}},e=>{e.O(0,[4259,2265,3654,7414,8731,6493,4013,9570,7710,2262,5777,48
113,7358],()=>e(e.s=3707)),_N_E=e.O()}]);
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.