!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="150ce7fb-a6f7-4970-9be1-9e8b76d86b11",e._sentryDebugIdIdentifier="sentry-dbid-150ce7fb-a6f7-4970-9be1-9e8b76d86b11")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1309],{49006:(e,r,t)=>{Promise.resolve().then(t.bind(t,25041)),Promise.resolve().then(t.bind(t,39389)),Promise.resolve().then(t.bind(t,61899)),Promise.resolve().then(t.bind(t,96245)),Promise.resolve().then(t.bind(t,96153)),Promise.resolve().then(t.bind(t,70123)),Promise.resolve().then(t.bind(t,3690)),Promise.resolve().then(t.bind(t,97433)),Promise.resolve().then(t.bind(t,54979)),Promise.resolve().then(t.bind(t,37885)),Promise.resolve().then(t.bind(t,26439)),Promise.resolve().then(t.bind(t,87756)),Promise.resolve().then(t.bind(t,14516)),Promise.resolve().then(t.bind(t,48564)),Promise.resolve().then(t.bind(t,41033)),Promise.resolve().then(t.bind(t,73221)),Promise.resolve().then(t.bind(t,67099)),Promise.resolve().then(t.bind(t,20858)),Promise.resolve().then(t.bind(t,44748)),Promise.resolve().then(t.bind(t,11485)),Promise.resolve().then(t.bind(t,41156)),Promise.resolve().then(t.bind(t,49871)),Promise.resolve().then(t.bind(t,37491)),Promise.resolve().then(t.bind(t,2201)),Promise.resolve().then(t.bind(t,54494)),Promise.resolve().then(t.bind(t,34208)),Promise.resolve().then(t.bind(t,45255)),Promise.resolve().then(t.bind(t,42547)),Promise.resolve().then(t.bind(t,59202)),Promise.resolve().then(t.bind(t,43118)),Promise.resolve().then(t.bind(t,34464)),Promise.resolve().then(t.bind(t,55623)),Promise.resolve().then(t.bind(t,79731)),Promise.resolve().then(t.bind(t,83553)),Promise.resolve().then(t.bind(t,45536)),Promise.resolve().then(t.bind(t,2623)),Promise.resolve().then(t.bind(t,20453)),Promise.resolve().then(t.t.bind(t,784,23)),Promise.resolve().then(t.t.bind(t,61087,23)),Promise.resolve().then(t.t.bind(t,13320,23)),Promise.resolve().then(t.bind(t,11767)),Promise.resolve().then(t.bind(t,76014)),Promise.resolve().then(t.bind(t,78465))},41859:(e,r,t)=>{"use strict";t.d(r,{default:()=>s.a});var n=t(52613),s=t.n(n)},26929:(e,r,t)=>{"use strict";t.d(r,{default:()=>s.a});var n=t(61087),s=t.n(n)},68009:(e,r,t)=>{"use strict";var n=t(89142);t.o(n,"useParams")&&t.d(r,{useParams:function(){return n.useParams}}),t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},11294:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return n.callServer},createServerReference:function(){return o},findSourceMapURL:function(){return s.findSourceMapURL}});let n=t(52059),s=t(10434),o=t(86103).createServerReference},52613:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{default:function(){return a},getImageProps:function(){return l}});let n=t(85235),s=t(67289),o=t(784),i=n._(t(70484));function l(e){let{props:r}=(0,s.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,t]of Object.entries(r))void 0===t&&delete r[e];return{props:r}}let a=o.Image},11767:(e,r,t)=>{"use strict";t.d(r,{default:()=>d});var n=t(77485),s=t(26929),o=t(11294);let i=(0,o.createServerReference)("0a60383a270c1f8273a0492442ae491c52807b35",o.callServer,void 0,o.findSourceMapURL,"getPosts");var l=t(51522),a=t(41431);let d=function(){let[e,r]=(0,a.useState)([]);return(0,a.useEffect)(()=>{(async()=>{r(await i(void 0,4))})()},[]),(0,n.jsxs)(l.x,{orientation:"vertical",className:"w-full md:max-w-72 content-start",children:[(0,n.jsx)("h3",{className:"text-xl font-bold mt-0 mb-4",children:"My top posts"}),e.map(e=>(0,n.jsx)("div",{children:(0,n.jsx)(s.default,{href:"/posts/".concat(e.slug),className:"no-underline",children:(0,n.jsx)("p",{className:"text-[0.8rem] leading-4 my-1 no-underline",children:e.title})})},e.slug)),(0,n.jsx)(s.default,{href:"/blog",className:"no-underline",children:(0,n.jsx)("p",{className:"text-tiny text-center italic text-gray-400 mt-2 no-underline",children:"View all my posts"})})]})}},76014:(e,r,t)=>{"use strict";t.r(r),t.d(r,{LogoReel:()=>i,default:()=>l});var n=t(77485),s=t(41431),o=t(41859);let i=e=>{let{logos:r}=e,t=(0,s.useRef)(null),[i,l]=(0,s.useState)(0);return(0,s.useEffect)(()=>{t.current&&l(t.current.scrollWidth);let e=()=>{t.current&&l(t.current.scrollWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[r]),(0,n.jsxs)("div",{className:"w-full overflow-hidden bg-white mt-4 relative",children:[(0,n.jsx)("div",{className:"flex animate-scroll",ref:t,style:{"--scroll-width":"".concat(i,"px")},children:[...r,...r,...r,...r].map((e,r)=>(0,n.jsx)("div",{className:"flex-shrink-0 mx-4",children:(0,n.jsx)(o.default,{src:e.src,alt:e.alt,width:100,height:50,className:"h-12 w-auto object-contain"})},"".concat(e.alt,"-").concat(r)))}),(0,n.jsx)("div",{className:"absolute top-0 bottom-0 left-0 w-24 bg-gradient-to-r from-white to-transparent pointer-events-none"}),(0,n.jsx)("div",{className:"absolute top-0 bottom-0 right-0 w-24 bg-gradient-to-l from-white to-transparent pointer-events-none"})]})},l=i},51522:(e,r,t)=>{"use strict";t.d(r,{x:()=>i});var n=t(77485);let s={normal:"border-slate-400 shadow-md",strong:"border-black shadow-lg"},o={horizontal:"flex-row",vertical:"flex-col"},i=e=>{let{orientation:r,children:t,className:i,id:l,style:a="normal"}=e;return(0,n.jsx)("div",{id:l,className:"max-w-3xl flex-1 mx-auto flex gap-2 items-center justify-center p-4 border rounded-lg ".concat(i," ").concat(s[a]," ").concat(o[r]),children:t})}},78465:(e,r,t)=>{"use strict";t.d(r,{default:()=>l});var n=t(77485),s=t(41431),o=t(19160),i=t(68009);let l=()=>{let[e,r]=(0,s.useState)(""),t=(0,i.useRouter)(),l=async r=>{r.preventDefault();try{(await fetch("https://app.convertkit.com/forms/1862996/subscriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email_address:e})})).ok?t.push("https://luca-dellanna.com/welcome"):alert("Subscription failed. Please try again.")}catch(e){console.error("Error:",e),alert("An error occurred. Please try again later.")}};return(0,n.jsx)("form",{onSubmit:l,className:"mx-auto md:max-w-none flex px-2 my-2 md:my-4 items-center justify-center",children:(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsxs)("div",{id:"ck-form",className:"flex sm:flex-row gap-2 items-center",children:[(0,n.jsx)("input",{type:"email",value:e,onChange:e=>r(e.target.value),placeholder:"Your email",required:!0,className:"w-full h-8 max-w-xs flex-shrink text-sm px-2 py-1"}),(0,n.jsx)(o.A,{type:"submit",color:"primary",className:"min-w-max h-8 primary flex-1 px-4 py-0 text-sm rounded-md ",children:"Join 25,000+ readers"})]})})})}}},e=>{var r=r=>e(e.s=r);e.O(0,[2409,8379,784,1087,322,6367,9703,4650,9775,2803,7691,1744],()=>r(49006)),_N_E=e.O()}]);