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]="b1a79729-df35-47cc-bf5f-003b68078ac5",e._sentryDebugIdIdentifier="sentry-dbid-b1a79729-df35-47cc-bf5f-003b68078ac5")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7150],{15376:(e,t,r)=>{r.r(t),r.d(t,{ClientsGrid:()=>l});var s=r(65183),a=r(24375),i=r(68149),n=r(69266);let l=(0,a.memo)(function(e){let{height:t="lg",logos:r=n.c4}=e;return(0,s.jsx)(i.Y,{height:t,logos:r,title:"Part of Luca's portfolio / trusted by leaders at…",subtitle:"lg"===t?"Luca is fluent in EN, IT, FR, ES, and has experience in the following industries: automotive, chemical, pharmaceutical, logistics, agricultural, fast-moving consumer goods, food, finance, fintech, tech, software, electronics, retail, hospitality, and consulting.":void 0})})},36047:(e,t,r)=>{r.d(t,{ConvertkitForm:()=>f});var s=r(65183),a=r(24375),i=r(50849);function n(e,t){let r=function(e,t){try{if(e.startsWith("http://")||e.startsWith("https://"))return new URL(e),e;if(e.startsWith("/"))return new URL(e,window.location.origin).href;if(e.startsWith("//"))return new URL(e,window.location.protocol).href;if(!e.startsWith("/")&&!e.startsWith("http"))return new URL("/".concat(e),window.location.origin).href;return null}catch(t){return console.warn("Invalid URL detected:",e,t),null}}(t);if(!r)return console.warn("Attempted to navigate to invalid URL:",t),!1;try{return e.push(r),!0}catch(e){return console.error("Navigation failed:",e),!1}}var l=r(56275),o=r(28681),c=r(71390),d=r(43998),u=r(84491),m=r(17809);let g=d.Ik({email:d.Yj().min(1,"Please enter a valid email address").regex(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Please enter a valid email address")}),f=(0,a.memo)(function(e){let{buttonText:t="Join 25,000+ readers",className:d=""}=e,{email:f,isSubmitting:p,error:h,isPending:b,isSuccess:y,keyPressed:w,handleSubmit:x,updateEmail:v,handleKeyPress:j}=function(){let[e,t]=(0,a.useState)({email:"",isSubmitting:!1,error:null,isSuccess:!1,keyPressed:!1}),[s,i]=(0,a.useTransition)(),d=(0,o.useRouter)(),{sendEvent:u}=(0,l.s)(),m=(0,a.useCallback)(async e=>{try{c.qk.formSubmit("ConvertKit Newsletter",!0,{email:e});let{config:t}=await Promise.resolve().then(r.bind(r,44301));if(!t.convertkit.formUrl)throw Error("ConvertKit form URL not configured");let s=new URLSearchParams;s.append("email_address",e);let a=await fetch(t.convertkit.formUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s,mode:"cors",credentials:"omit"});if(a.ok||302===a.status)return c.qk.emailSignup("ConvertKit Newsletter",!0,e),u({name:"subscribed_to_newsletter"}),{success:!0};return{success:!1,error:"Subscription failed. Please try again."}}catch(t){if(c.qk.emailSignup("ConvertKit Newsletter",!1,e),t instanceof TypeError&&t.message.includes("Failed to fetch"))return c.qk.emailSignup("ConvertKit Newsletter",!0,e),u({name:"subscribed_to_newsletter"}),{success:!0};return{success:!1,error:"An error occurred. Please try again later."}}},[u]),f=(0,a.useCallback)(async s=>{s.preventDefault();let a=g.safeParse({email:e.email});if(!a.success)return void t(e=>{var t;return{...e,error:(null==(t=a.error.issues[0])?void 0:t.message)||"Please enter a valid email address"}});!e.isSubmitting&&e.email.trim()&&(t(e=>({...e,isSubmitting:!0,error:null})),i(async()=>{let s=await m(e.email);s.success?(t(e=>({...e,isSubmitting:!1,isSuccess:!0})),setTimeout(async()=>{try{let{config:e}=await Promise.resolve().then(r.bind(r,44301));n(d,e.site.welcomePage||"/welcome")}catch(e){n(d,"/welcome")}},1500)):t(e=>({...e,isSubmitting:!1,error:s.error||"An error occurred. Please try again later."}))}))},[e.email,e.isSubmitting,m,d]),p=(0,a.useCallback)(e=>{t(t=>({...t,email:e,error:null}))},[]),h=(0,a.useCallback)(()=>{t(e=>({...e,keyPressed:!0})),setTimeout(()=>{t(e=>({...e,keyPressed:!1}))},150)},[]);return{...e,isPending:s,handleSubmit:f,updateEmail:p,handleKeyPress:h}}(),N=(0,a.useId)(),k="".concat(N,"-newsletter-email"),S="".concat(N,"-newsletter-error"),P="".concat(N,"-newsletter-submitting"),C="".concat(N,"-newsletter-tooltip"),A=p||b,E=(0,a.useMemo)(()=>!!f&&!(f.length<3)&&g.safeParse({email:f}).success,[f]);return(0,s.jsxs)("form",{onSubmit:x,className:"w-full ".concat(d),"aria-label":"Newsletter subscription form",noValidate:!0,children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-3 w-full items-center justify-center",children:[(0,s.jsx)("label",{htmlFor:k,className:"sr-only",children:"Email address"}),(0,s.jsxs)("div",{className:"flex-1 min-w-48 max-w-80 relative",children:[(0,s.jsx)("input",{id:k,type:"email",value:f,onChange:e=>v(e.target.value),onKeyDown:e=>"Enter"===e.key&&j(),placeholder:"Your email",required:!0,className:"w-full h-11 text-sm px-4 pr-10 py-2 rounded-md border border-border focus:outline-none focus:ring-2 focus:ring-focus focus:border-focus transition-all duration-200 bg-white ".concat(w?"scale-[0.98]":""," ").concat(E?"border-success-border bg-success-light":""),"aria-label":"Email address","aria-describedby":h?S:void 0,"aria-invalid":!!h,disabled:A||y,autoComplete:"email"}),E&&!A&&!y&&(0,s.jsx)("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2",children:(0,s.jsx)(u.A,{className:"w-4 h-4 text-success animate-in fade-in-0 zoom-in-95 duration-200","aria-hidden":"true"})})]}),(0,s.jsxs)("div",{className:"relative group flex-1 min-w-48 max-w-80",children:[(0,s.jsx)(i.$,{type:"submit",variant:"primary",size:"md",disabled:A||y,className:"w-full h-11 px-6 py-0 text-sm font-semibold disabled:opacity-100 disabled:cursor-not-allowed min-w-[140px] transition-all duration-200 ".concat(w&&!A&&!y?"scale-105 shadow-lg":""," ").concat(y?"bg-success border-success":""," hover:scale-105 hover:shadow-lg active:scale-95"),"aria-describedby":A?P:A?C:void 0,children:y?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(u.A,{className:"w-4 h-4 animate-in zoom-in-95 duration-300"}),(0,s.jsx)("span",{children:"Success!"})]}):A?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(m.A,{className:"w-4 h-4 animate-spin"}),(0,s.jsx)("span",{children:"Joining..."})]}):t}),A&&!A&&(0,s.jsxs)("div",{id:C,className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-2 bg-foreground text-white text-xs rounded-md opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none z-10 sm:block hidden",role:"tooltip","aria-hidden":"true",children:["Enter an email first",(0,s.jsx)("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-t-4 border-transparent border-t-foreground"})]})]})]}),h&&(0,s.jsx)("div",{id:S,className:"mt-2 text-sm text-error text-center",role:"alert",children:h}),A&&(0,s.jsx)("div",{id:P,className:"sr-only",children:"Submitting newsletter subscription..."})]})})},68149:(e,t,r)=>{r.d(t,{Y:()=>o});var s=r(65183),a=r(24375),i=r(32812),n=r(77242);let l=(0,a.memo)(function(e){let{logo:t,index:r}=e,[l,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=setTimeout(()=>{o(!0)},50*r);return()=>clearTimeout(e)},[r]),(0,s.jsx)("div",{className:(0,n.A)("shrink-0 transition-all duration-300 ease-out","hover:scale-[1.05] hover:shadow-lg hover:shadow-gray-500/20",l?"opacity-100 translate-y-0":"opacity-0 translate-y-4"),style:{transitionDelay:"".concat(50*r,"ms")},children:(0,s.jsx)(i.default,{src:t.src,alt:t.alt,width:80,height:40,sizes:"(max-width: 768px) 80px, 80px",quality:85,className:"h-8 md:h-10 w-auto object-contain transition-all duration-200",style:{width:"auto"},onError:e=>{e.target.style.display="none"}})})}),o=(0,a.memo)(function(e){var t;let{height:r="lg",logos:a,title:i="Part of Luca's portfolio / trusted by leaders at…",subtitle:o}=e;if(!(Array.isArray(a)&&a.length>0))return null;let{sm:c,lg:d}=(t=a.length)<=4?{sm:t,lg:t}:t>=10?{sm:2,lg:5}:t>=6?{sm:2,lg:4}:{sm:t,lg:t},u=(0,n.A)("mx-auto w-full bg-white py-2 rounded-lg","lg"===r&&"px-4"),m=(0,n.A)("mx-auto text-xs md:text-sm text-center mb-4 text-gray-600","lg"===r&&"font-semibold");return(0,s.jsxs)("div",{className:u,children:[(0,s.jsx)("p",{className:m,children:i}),(0,s.jsx)("div",{className:(0,n.A)("grid gap-3 md:gap-4 lg:gap-6 justify-items-center justify-center",2===c?"grid-cols-2":3===c?"grid-cols-3":4===c?"grid-cols-4":5===c?"grid-cols-5":"grid-cols-1",2===d?"lg:grid-cols-2":3===d?"lg:grid-cols-3":4===d?"lg:grid-cols-4":5===d?"lg:grid-cols-5":"lg:grid-cols-1"),children:a.map((e,t)=>(0,s.jsx)(l,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),"lg"===r&&o&&(0,s.jsx)("p",{className:"text-[10px] leading-3 text-center text-balance mt-4 mb-0 max-w-[95vw] mx-auto text-gray-500",children:o})]})})},69266:(e,t,r)=>{r.d(t,{KT:()=>i,c4:()=>a});var s=r(89493);let a=[{src:"/societe-generale.png",alt:"Soci\xe9t\xe9 G\xe9nerale"},{src:"/shopify.png",alt:"Shopify"},{src:"/dupont.png",alt:"DuPont"},{src:"/mckinsey.png",alt:"McKinsey and Company"},{src:"/markel.png",alt:"Markel Group"},{src:"/standard-chartered.png",alt:"Standard Chartered"},{src:"/marriott.png",alt:"Marriott"},{src:"/genova-university.png",alt:"Genova University"},{src:"/mises-institute.png",alt:"Mises Institute"},{src:"/upstart-wealth-management.png",alt:"Upstart Wealth Management"}],i=[{src:"/amazon.png",alt:"Amazon"},{src:"/barnes-noble.png",alt:"Barnes&Noble"},{src:"/apple-books.png",alt:"Apple Books"},{src:"/google-play.png",alt:"Google Play Books"}];(0,s.$J)(a),(0,s.$J)(i)}}]);