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]="77daad54-b57b-401f-94c5-47d5eaa23afc",e._sentryDebugIdIdentifier="sentry-dbid-77daad54-b57b-401f-94c5-47d5eaa23afc")}()}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 a=r(65183),s=r(24375),i=r(68149),n=r(69266);let l=(0,s.memo)(function(e){let{height:t="lg",logos:r=n.c4}=e;return(0,a.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:()=>h});var a=r(65183),s=r(84491),i=r(17809),n=r(24375),l=r(50849),o=r(75324);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(56275),u=r(28681),m=r(71390),g=r(43998);let f=g.Ik({email:g.Yj().min(1,"Please enter a valid email address").regex(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Please enter a valid email address")}),h=(0,n.memo)(function(e){let{buttonText:t="Join 25,000+ readers",className:g=""}=e,{email:h,isSubmitting:p,error:b,isPending:y,isSuccess:w,keyPressed:x,handleSubmit:v,updateEmail:j,handleKeyPress:N}=function(){let[e,t]=(0,n.useState)({email:"",isSubmitting:!1,error:null,isSuccess:!1,keyPressed:!1}),[a,s]=(0,n.useTransition)(),i=(0,u.useRouter)(),{sendEvent:l}=(0,d.s)(),g=(0,n.useCallback)(async e=>{let t=()=>(m.qk.emailSignup("ConvertKit Newsletter",!0,e),l({name:"subscribed_to_newsletter"}),{success:!0});try{m.qk.formSubmit("ConvertKit Newsletter",!0,{email:e});let{config:a}=await Promise.resolve().then(r.bind(r,44301));if(!a.convertkit.formUrl)throw Error("ConvertKit form URL not configured");let s=new URLSearchParams;s.append("email_address",e);let i=await fetch(a.convertkit.formUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s,mode:"cors",credentials:"omit"});if(i.ok||302===i.status)return t();{let e="";try{e=await i.text()}catch(e){}if((0,o.H$)(e))return t();return{success:!1,error:"Subscription failed. Please try again."}}}catch(a){m.qk.emailSignup("ConvertKit Newsletter",!1,e);let r=a instanceof Error?a.message:String(a);if((0,o.H$)(r)||a instanceof TypeError&&a.message.includes("Failed to fetch"))return t();return{success:!1,error:"An error occurred. Please try again later."}}},[l]),h=(0,n.useCallback)(async a=>{a.preventDefault();let n=f.safeParse({email:e.email});if(!n.success)return void t(e=>{var t;return{...e,error:(null==(t=n.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})),s(async()=>{let a=await g(e.email);a.success?(t(e=>({...e,isSubmitting:!1,isSuccess:!0})),setTimeout(async()=>{try{let{config:e}=await Promise.resolve().then(r.bind(r,44301));c(i,e.site.welcomePage||"/welcome")}catch(e){c(i,"/welcome")}},1500)):t(e=>({...e,isSubmitting:!1,error:a.error||"An error occurred. Please try again later."}))}))},[e.email,e.isSubmitting,g,i]),p=(0,n.useCallback)(e=>{t(t=>({...t,email:e,error:null}))},[]),b=(0,n.useCallback)(()=>{t(e=>({...e,keyPressed:!0})),setTimeout(()=>{t(e=>({...e,keyPressed:!1}))},150)},[]);return{...e,isPending:a,handleSubmit:h,updateEmail:p,handleKeyPress:b}}(),k=(0,n.useId)(),S="".concat(k,"-newsletter-email"),P="".concat(k,"-newsletter-error"),C="".concat(k,"-newsletter-submitting"),A="".concat(k,"-newsletter-tooltip"),E=p||y,T=(0,n.useMemo)(()=>!!h&&!(h.length<3)&&f.safeParse({email:h}).success,[h]);return(0,a.jsxs)("form",{onSubmit:v,className:"w-full ".concat(g),"aria-label":"Newsletter subscription form",noValidate:!0,children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-3 w-full items-center justify-center",children:[(0,a.jsx)("label",{htmlFor:S,className:"sr-only",children:"Email address"}),(0,a.jsxs)("div",{className:"flex-1 min-w-48 max-w-80 relative",children:[(0,a.jsx)("input",{id:S,type:"email",value:h,onChange:e=>j(e.target.value),onKeyDown:e=>"Enter"===e.key&&N(),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(x?"scale-[0.98]":""," ").concat(T?"border-success-border bg-success-light":""),"aria-label":"Email address","aria-describedby":b?P:void 0,"aria-invalid":!!b,disabled:E||w,autoComplete:"email"}),T&&!E&&!w&&(0,a.jsx)("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2",children:(0,a.jsx)(s.A,{className:"w-4 h-4 text-success animate-in fade-in-0 zoom-in-95 duration-200","aria-hidden":"true"})})]}),(0,a.jsxs)("div",{className:"relative group flex-1 min-w-48 max-w-80",children:[(0,a.jsx)(l.$,{type:"submit",variant:"primary",size:"md",disabled:E||w,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(x&&!E&&!w?"scale-105 shadow-lg":""," ").concat(w?"bg-success border-success":""," hover:scale-105 hover:shadow-lg active:scale-95"),"aria-describedby":E?C:E?A:void 0,children:w?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)(s.A,{className:"w-4 h-4 animate-in zoom-in-95 duration-300"}),(0,a.jsx)("span",{children:"Success!"})]}):E?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)(i.A,{className:"w-4 h-4 animate-spin"}),(0,a.jsx)("span",{children:"Joining..."})]}):t}),E&&!E&&(0,a.jsxs)("div",{id:A,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,a.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"})]})]})]}),b&&(0,a.jsx)("div",{id:P,className:"mt-2 text-sm text-error text-center",role:"alert",children:b}),E&&(0,a.jsx)("div",{id:C,className:"sr-only",children:"Submitting newsletter subscription..."})]})})},68149:(e,t,r)=>{r.d(t,{Y:()=>o});var a=r(65183),s=r(24375),i=r(32812),n=r(77242);let l=(0,s.memo)(function(e){let{logo:t,index:r}=e,[l,o]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=setTimeout(()=>{o(!0)},50*r);return()=>clearTimeout(e)},[r]),(0,a.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,a.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,s.memo)(function(e){var t;let{height:r="lg",logos:s,title:i="Part of Luca's portfolio / trusted by leaders at…",subtitle:o}=e;if(!(Array.isArray(s)&&s.length>0))return null;let{sm:c,lg:d}=(t=s.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,a.jsxs)("div",{className:u,children:[(0,a.jsx)("p",{className:m,children:i}),(0,a.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:s.map((e,t)=>(0,a.jsx)(l,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),"lg"===r&&o&&(0,a.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:()=>s});var a=r(89493);let s=[{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,a.$J)(s),(0,a.$J)(i)}}]);