try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="603abe33-87a6-470b-9571-50fa6e4d1220",e._sentryDebugIdIdentifier="sentry-dbid-603abe33-87a6-470b-9571-50fa6e4d1220")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1393],{24978:(e,t,s)=>{"use strict";s.d(t,{K:()=>n});var l=s(24507);let n=(0,l.createServerReference)("70ed40074f3c7b47478fa17d40f2d1e364ce3ce23a",l.callServer,void 0,l.findSourceMapURL,"getPosts")},55737:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HomeNewsletterSignup:()=>c});var l=s(65183),n=s(24375),r=s(36047),i=s(39812),a=s(49275);let o={title:"Subscribe to my newsletter",description:"Expect 1-2 emails per month. No spam. Subscribe anytime."},c=(0,n.memo)(function(){let e=(0,n.useMemo)(()=>a.Y.find(e=>e.object.includes("Luca"))||null,[]);return(0,l.jsx)("div",{className:"w-full max-w-3xl p-3 widget-border h-full",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 items-center h-full",children:[(0,l.jsxs)("div",{className:"w-full text-center",children:[(0,l.jsx)("h3",{className:"mb-3 text-lg font-semibold",children:o.title}),(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)(r.ConvertkitForm,{}),(0,l.jsx)("p",{className:"mt-2 text-xs text-center text-balance text-gray-500 leading-snug",children:o.description})]})]}),e&&(0,l.jsx)("div",{className:"w-full flex justify-center",children:(0,l.jsx)(i.ReviewCard,{review:e,showRating:!1,showBorder:!1,variant:"carousel"})})]})})})},70713:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var l=s(65183),n=s(24375),r=s(82212),i=s.n(r);let a={viewAll:"View all my posts"},o=(0,n.memo)(function(){return(0,l.jsx)(i(),{href:"/blog",className:"no-underline hover:opacity-80 transition-opacity",children:(0,l.jsx)("p",{className:"text-xs text-center italic text-muted mt-2",children:a.viewAll})})});function c(e){let{post:t}=e;return(0,l.jsx)(i(),{href:"/posts/".concat(t.slug),children:(0,l.jsx)("p",{className:"text-[0.8rem] leading-4 my-1",children:t.title})})}function d(e){let{posts:t}=e;return t&&0!==t.length?(0,l.jsxs)("nav",{"aria-label":"Blog posts list",children:[t.map(e=>(0,l.jsx)("div",{className:"mb-2",children:(0,l.jsx)(c,{post:e})},e.slug)),(0,l.jsx)(o,{})]}):(0,l.jsx)("p",{className:"text-gray-500","aria-label":"No posts available",children:"No posts available."})}var u=s(24978);let f={title:"My top posts",loading:"Loading..."},m=(0,n.memo)(function(){let[e,t]=(0,n.useState)([]),[s,r]=(0,n.useState)(!0),[i,a]=(0,n.useState)(null);return((0,n.useEffect)(()=>{!async function(){try{let e=await (0,u.K)(void 0,4);t(e),a(null)}catch(e){console.error("Error fetching posts:",e),a(e instanceof Error?e:Error("Failed to fetch posts"))}finally{r(!1)}}()},[]),i)?(0,l.jsxs)("div",{className:"flex-1 mx-auto flex flex-col gap-3 items-center justify-center p-3 widget-border w-full content-start h-full",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold text-center mb-2",children:f.title}),(0,l.jsx)("p",{className:"text-sm text-muted",children:"Unable to load posts at this time."})]}):(0,l.jsxs)("div",{className:"flex-1 mx-auto flex flex-col gap-3 items-center justify-center p-3 widget-border w-full content-start h-full",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold text-center mb-2",children:f.title}),s?(0,l.jsx)("p",{children:f.loading}):(0,l.jsx)(d,{posts:e})]})})},81446:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,82212,23)),Promise.resolve().then(s.t.bind(s,91045,23)),Promise.resolve().then(s.bind(s,13080)),Promise.resolve().then(s.bind(s,16517)),Promise.resolve().then(s.bind(s,70713)),Promise.resolve().then(s.bind(s,55737)),Promise.resolve().then(s.bind(s,15376))}},e=>{e.O(0,[2382,1045,3998,8305,3423,9493,4661,9275,7150,435,3675,7358],()=>e(e.s=81446)),_N_E=e.O()}]);