!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]="6ae223d4-8f28-4100-9b9e-4dcbafc1abde",e._sentryDebugIdIdentifier="sentry-dbid-6ae223d4-8f28-4100-9b9e-4dcbafc1abde")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[947,534],{43397:function(e,r,s){s.d(r,{default:function(){return t.a}});var a=s(24759),t=s.n(a)},99107:function(e,r,s){Object.defineProperty(r,"$",{enumerable:!0,get:function(){return t}});let a=s(96950);function t(e){let{createServerReference:r}=s(67031);return r(e,a.callServer)}},24759:function(e,r,s){Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var s in r)Object.defineProperty(e,s,{enumerable:!0,get:r[s]})}(r,{default:function(){return i},getImageProps:function(){return o}});let a=s(88653),t=s(83646),n=s(96850),l=a._(s(82235));function o(e){let{props:r}=(0,t.getImgProps)(e,{defaultLoader:l.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,s]of Object.entries(r))void 0===s&&delete r[e];return{props:r}}let i=n.Image},77677:function(e,r,s){var a=s(63509),t=s(86570),n=s(79774),l=s(99644),o=s(14129),i=s(79962);r.default=e=>{let{post:r,index:s}=e;return(0,a.jsx)("div",{className:"mx-auto w-full md:max-w-[48%] 2xl:max-w-[31%]",children:(0,a.jsxs)(t.w,{as:n.O,href:"/posts/".concat(r.slug),classNames:{base:"no-button-style z-0 p-2 w-full min-w-64 cursor-pointer"},children:[(0,a.jsx)(l.u,{className:"py-1 md:py-2 lg:py-3",children:(0,a.jsxs)("div",{className:"w-full flex justify-between items-start",children:[(0,a.jsx)("span",{className:"text-left text-balance font-semibold",children:r.title}),(0,a.jsxs)("div",{className:"flex justify-end mt-1 ml-2",children:[r.stars>=2&&(0,a.jsx)("span",{className:"text-tiny rounded-md px-1 py-0.5 text-nowrap text-rose-600 border border-rose-600",children:"Most popular"}),(r.stars>=1&&r.stars<2||0===s&&r.stars<1&&r.stars>0)&&(0,a.jsx)("span",{className:"text-tiny rounded-md px-1 py-0.5 text-orange-500 border border-orange-500",children:"Popular"}),0===r.stars&&0===s&&(0,a.jsx)("span",{className:"text-tiny rounded-md px-1 py-0.5 text-nowrap text-orange-500 border border-orange-500",children:"Most recent"})]})]})}),(0,a.jsx)(o.G,{className:"py-2",children:(0,a.jsx)("span",{className:"text-sm text-gray-500",children:r.description})}),(0,a.jsxs)(i.i,{className:"flex justify-between items-end py-1 md:py-2 lg:py-3",children:[(0,a.jsx)("span",{className:"text-tiny text-gray-400 min-w-20",children:r.date}),(0,a.jsx)("div",{className:"flex flex-wrap space-x-1 justify-end",children:r.tags.map(e=>(0,a.jsxs)("span",{className:"text-tiny text-gray-400",children:["#",e]},e))})]})]})})}},33704:function(e,r,s){s.r(r),s.d(r,{LogoReel:function(){return l}});var a=s(63509),t=s(52322),n=s(43397);let l=e=>{let{logos:r}=e,s=(0,t.useRef)(null),[l,o]=(0,t.useState)(0);return(0,t.useEffect)(()=>{s.current&&o(s.current.scrollWidth);let e=()=>{s.current&&o(s.current.scrollWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[r]),(0,a.jsxs)("div",{className:"w-full overflow-hidden bg-white mt-4 relative",children:[(0,a.jsx)("div",{className:"flex animate-scroll",ref:s,style:{"--scroll-width":"".concat(l,"px")},children:[...r,...r,...r,...r].map((e,r)=>(0,a.jsx)("div",{className:"flex-shrink-0 mx-4",children:(0,a.jsx)(n.default,{src:e.src,alt:e.alt,width:100,height:50,className:"h-12 w-auto object-contain"})},"".concat(e.alt,"-").concat(r)))}),(0,a.jsx)("div",{className:"absolute top-0 bottom-0 left-0 w-24 bg-gradient-to-r from-white to-transparent pointer-events-none"}),(0,a.jsx)("div",{className:"absolute top-0 bottom-0 right-0 w-24 bg-gradient-to-l from-white to-transparent pointer-events-none"})]})};r.default=l},37534:function(e,r,s){s.r(r),s.d(r,{default:function(){return o}});var a=s(63509),t=s(35834),n=s(52322);s(96950);var l=(0,s(99107).$)("a3e3d9cd773966c1ab1eecc0514e16552d1d5328");function o(e){let{title:r,description:s}=e,[o,i]=(0,n.useState)({name:"",email:"",message:""}),[c,d]=(0,n.useState)(!1),[u,m]=(0,n.useState)("idle"),f=e=>{let{name:r,value:s}=e.target;i(e=>({...e,[r]:s}))},x=async e=>{e.preventDefault(),d(!0),m("idle");try{let e=await l(o);if("success"===e)m("success"),i({name:"",email:"",message:""});else throw Error("Unexpected response")}catch(e){console.error("Submission error:",e),m("error"),e instanceof Error&&(console.error("Error message:",e.message),console.error("Error stack:",e.stack))}finally{d(!1)}};return(0,a.jsx)(a.Fragment,{children:"success"===u?(0,a.jsxs)("div",{className:"px-4 py-3 rounded-lg bg-green-100 border border-green-400",role:"alert",children:[(0,a.jsx)("strong",{className:"font-bold",children:"Thank you!"})," ",(0,a.jsx)("span",{className:"block sm:inline",children:"Your message has been sent successfully. I'll get back to you soon."})]}):(0,a.jsxs)("form",{onSubmit:x,className:"max-w-lg mx-auto my-8 p-8 border border-black rounded-lg shadow-lg",children:[r&&(0,a.jsx)("h2",{className:"text-2xl font-bold mb-4",children:r}),s&&(0,a.jsx)("p",{className:"text-gray-600 mb-4",children:s}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("label",{htmlFor:"name",className:"block font-semibold mb-2",children:["Name"," ",(0,a.jsx)("span",{className:"font-normal italic",children:"(and organization, optionally)"})]}),(0,a.jsx)("input",{type:"text",id:"name",name:"name",value:o.name,onChange:f,required:!0,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--stripe-purple)]"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{htmlFor:"email",className:"block text-[var(--stripe-dark-blue)] font-semibold mb-2",children:"Email"}),(0,a.jsx)("input",{type:"email",id:"email",name:"email",value:o.email,onChange:f,required:!0,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--stripe-purple)]"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{htmlFor:"message",className:"block text-[var(--stripe-dark-blue)] font-semibold mb-2",children:"How can I help you?"}),(0,a.jsx)("textarea",{id:"message",name:"message",value:o.message,onChange:f,required:!0,rows:4,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--stripe-purple)]"})]}),(0,a.jsx)(t.A,{type:"submit",color:"primary",className:"w-full font-semibold py-2 px-4",disabled:c,children:c?"Submitting...":"Submit"}),"error"===u&&(0,a.jsxs)("p",{className:"mt-4 text-red-600",children:["There was an error submitting the form. Please try emailing"," ",(0,a.jsx)("a",{children:"Luca@Luca-Dellanna.com"})," directly."]})]})})}},85630:function(e,r,s){s.d(r,{ContactModalButton:function(){return f}});var a=s(63509);s(52322);var t=s(87590),n=s(35834),l=s(37534),o=s(22038),i=s(82070),c=s(30274),d=s(26967),u=s(36488);let m=e=>{let{isOpen:r,onOpenChange:s}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(o.R,{isOpen:r,onOpenChange:s,size:"sm",hideCloseButton:!0,children:(0,a.jsx)(i.A,{className:"pb-0",children:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.k,{className:"flex flex-col gap-1",children:"Contact me"}),(0,a.jsxs)(d.I,{children:[(0,a.jsx)("p",{children:"Fill in the form below or email me at Luca at Luca-Dellanna.com"}),(0,a.jsx)("p",{children:"I read all emails personally and usually reply within 24h."}),(0,a.jsx)(l.default,{})]}),(0,a.jsx)(u.R,{children:(0,a.jsx)(n.A,{color:"primary",variant:"light",onPress:e,className:"shadow-none text-white",children:"Close"})})]})})})})},f=()=>{let{isOpen:e,onOpen:r,onOpenChange:s}=(0,t.q)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{color:"primary",onPress:r,children:"Contact Luca"}),(0,a.jsx)(m,{isOpen:e,onOpen:r,onOpenChange:s})]})}},99644:function(e,r,s){s.d(r,{u:function(){return c}});var a=s(72189),t=s(79472),n=s(69860),l=s(49700),o=s(63509),i=(0,t.Gp)((e,r)=>{var s;let{as:t,className:i,children:c,...d}=e,u=(0,n.gy)(r),{slots:m,classNames:f}=(0,a.R)(),x=(0,l.W)(null==f?void 0:f.header,i);return(0,o.jsx)(t||"div",{ref:u,className:null==(s=m.header)?void 0:s.call(m,{class:x}),...d,children:c})});i.displayName="NextUI.CardHeader";var c=i},79962:function(e,r,s){s.d(r,{i:function(){return c}});var a=s(72189),t=s(79472),n=s(69860),l=s(49700),o=s(63509),i=(0,t.Gp)((e,r)=>{var s;let{as:t,className:i,children:c,...d}=e,u=(0,n.gy)(r),{slots:m,classNames:f}=(0,a.R)(),x=(0,l.W)(null==f?void 0:f.footer,i);return(0,o.jsx)(t||"div",{ref:u,className:null==(s=m.footer)?void 0:s.call(m,{class:x}),...d,children:c})});i.displayName="NextUI.CardFooter";var c=i}}]);