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]="e5bf2426-798f-4ae4-b0fb-225cb97fa19b",e._sentryDebugIdIdentifier="sentry-dbid-e5bf2426-798f-4ae4-b0fb-225cb97fa19b")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1375],{23009:(e,t,r)=>{r.d(t,{Y:()=>o});var s=r(99702),a=r(26294),i=r(2987),l=r(40014);let n=(0,a.memo)(function(e){let{logo:t,index:r}=e,[n,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,l.A)("shrink-0 transition-all duration-300 ease-out","hover:scale-[1.05] hover:shadow-lg hover:shadow-gray-500/20",n?"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, 120px",quality:85,className:"object-contain transition-all duration-200 h-8 md:h-10",style:{width:"auto",height:"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,l.A)("mx-auto w-full bg-white py-2 rounded-lg","lg"===r&&"px-4"),m=(0,l.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,l.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)(n,{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})]})})},34084:(e,t,r)=>{r.r(t),r.d(t,{ClientsGrid:()=>n});var s=r(99702),a=r(26294),i=r(23009),l=r(74902);let n=(0,a.memo)(function(e){let{height:t="lg",logos:r=l.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})})},51126:(e,t,r)=>{r.d(t,{ConvertkitForm:()=>p});var s=r(99702),a=r(44528),i=r(89910),l=r(26294),n=r(17581),o=r(62552);function c(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 d=r(22360),u=r(4672),m=r(84506),g=r(62809);let f=g.Ikc({email:g.YjP().min(1,"Please enter a valid email address").regex(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Please enter a valid email address")});async function h(e,t){let s=t.get("email"),a=f.safeParse({email:s});if(!a.success){var i;return{...e,error:(null==(i=a.error.issues[0])?void 0:i.message)||"Please enter a valid email address"}}let l=()=>(m.qk.emailSignup("ConvertKit Newsletter",!0,s),{...e,email:s,error:null,isSuccess:!0});try{m.qk.formSubmit("ConvertKit Newsletter",!0,{email:s});let{config:t}=await Promise.resolve().then(r.bind(r,62489));if(!t.convertkit.formUrl)throw Error("ConvertKit form URL not configured");let a=new URLSearchParams;a.append("email_address",s);let i=await fetch(t.convertkit.formUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a,mode:"cors",credentials:"omit"});if(i.ok||302===i.status)return l();{let t="";try{t=await i.text()}catch(e){}if((0,o.H$)(t))return l();return{...e,email:s,error:"Subscription failed. Please try again."}}}catch(r){m.qk.emailSignup("ConvertKit Newsletter",!1,s);let t=r instanceof Error?r.message:String(r);if((0,o.H$)(t)||r instanceof TypeError&&r.message.includes("Failed to fetch"))return l();return{...e,email:s,error:"An error occurred. Please try again later."}}}let p=(0,l.memo)(function(e){let{buttonText:t="Join 25,000+ readers",className:o=""}=e,m=(0,u.useRouter)(),{sendEvent:g}=(0,d.s)(),[p,b,x]=(0,l.useActionState)(h,{email:"",error:null,isSuccess:!1,keyPressed:!1});l.useEffect(()=>{if(p.isSuccess){g({name:"subscribed_to_newsletter"});let e=setTimeout(async()=>{try{let{config:e}=await Promise.resolve().then(r.bind(r,62489));c(m,e.site.welcomePage||"/welcome")}catch(e){c(m,"/welcome")}},1500);return()=>clearTimeout(e)}},[p.isSuccess,g,m]);let[w,y]=l.useState(p.email),[v,j]=l.useState(!1),[N,S]=l.useState(null),k=l.useCallback(e=>{y(e),N&&S(null)},[N]),P=l.useCallback(()=>{j(!0),setTimeout(()=>j(!1),150)},[]);l.useEffect(()=>{p.error&&S(p.error)},[p.error]);let E=N||p.error,C=(0,l.useId)(),A="".concat(C,"-newsletter-email"),T="".concat(C,"-newsletter-error"),U="".concat(C,"-newsletter-submitting"),L="".concat(C,"-newsletter-tooltip"),_=(0,l.useMemo)(()=>!!w&&!(w.length<3)&&f.safeParse({email:w}).success,[w]);return(0,s.jsxs)("form",{action:b,className:"w-full ".concat(o),"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:A,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:A,name:"email",type:"email",value:w,onChange:e=>k(e.target.value),onKeyDown:e=>"Enter"===e.key&&P(),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(v?"scale-[0.98]":""," ").concat(_?"border-success-border bg-success-light":""),"aria-label":"Email address","aria-describedby":E?T:void 0,"aria-invalid":!!E,disabled:x||p.isSuccess,autoComplete:"email"}),_&&!x&&!p.isSuccess&&(0,s.jsx)("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2",children:(0,s.jsx)(a.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)(n.$,{type:"submit",variant:"primary",size:"md",disabled:x||p.isSuccess,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(v&&!x&&!p.isSuccess?"scale-105 shadow-lg":""," ").concat(p.isSuccess?"bg-success border-success":""," hover:scale-105 hover:shadow-lg active:scale-95"),"aria-describedby":x?U:x?L:void 0,children:p.isSuccess?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(a.A,{className:"w-4 h-4 animate-in zoom-in-95 duration-300"}),(0,s.jsx)("span",{children:"Success!"})]}):x?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)(i.A,{className:"w-4 h-4 animate-spin"}),(0,s.jsx)("span",{children:"Joining..."})]}):t}),x&&!x&&(0,s.jsxs)("div",{id:L,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"})]})]})]}),E&&(0,s.jsx)("div",{id:T,className:"mt-2 text-sm text-error text-center",role:"alert",children:E}),x&&(0,s.jsx)("div",{id:U,className:"sr-only",children:"Submitting newsletter subscription..."})]})})},74902:(e,t,r)=>{r.d(t,{KT:()=>i,c4:()=>a});var s=r(54442);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)}}]);