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]="fd1165ab-6bf7-4bef-b3b7-53442dd49acf",e._sentryDebugIdIdentifier="sentry-dbid-fd1165ab-6bf7-4bef-b3b7-53442dd49acf")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1393],{10913:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,74109,23)),Promise.resolve().then(s.t.bind(s,39154,23)),Promise.resolve().then(s.bind(s,79075)),Promise.resolve().then(s.bind(s,64830)),Promise.resolve().then(s.bind(s,15832)),Promise.resolve().then(s.bind(s,33789)),Promise.resolve().then(s.bind(s,78844))},15832:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var l=s(11824),n=s(79100),r=s(74109),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 f=s(58918);let u={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,f.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:u.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:u.title}),s?(0,l.jsx)("p",{children:u.loading}):(0,l.jsx)(d,{posts:e})]})})},33789:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HomeNewsletterSignup:()=>c});var l=s(11824),n=s(79100),r=s(20188),i=s(16799),a=s(86439);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"})})]})})})},58918:(e,t,s)=>{"use strict";s.d(t,{K:()=>n});var l=s(85636);let n=(0,l.createServerReference)("7077d23a290ca76aae88cc0398b7f6c074a8b2c4ad",l.callServer,void 0,l.findSourceMapURL,"getPosts")}},e=>{e.O(0,[3354,9154,8341,3759,9992,1194,2378,6439,2561,8628,99,7358],()=>e(e.s=10913)),_N_E=e.O()}]);