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]="961ff08b-1a4e-4100-9ab8-d069367656f1",e._sentryDebugIdIdentifier="sentry-dbid-961ff08b-1a4e-4100-9ab8-d069367656f1")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1393],{15376:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ClientLogoReel:()=>u,ClientsGrid:()=>c,LogoReel:()=>d});var s=r(65183),l=r(24375),a=r(32812),i=r(69266),n=r(77242);let o=(0,l.memo)(function(e){let{logo:t}=e;return(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(a.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",style:{width:"auto"},onError:e=>{e.target.style.display="none"}})})}),c=(0,l.memo)(function(e){var t;let{height:r="lg",logos:l=i.c4}=e;if(!(Array.isArray(l)&&l.length>0))return null;let{sm:a,lg:c}=(t=l.length)<=4?{sm:t,lg:t}:t>=10?{sm:2,lg:5}:t>=6?{sm:2,lg:4}:{sm:t,lg:t},d=(0,n.A)("mx-auto w-full bg-white py-2 rounded-lg","lg"===r&&"px-4"),u=(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:d,children:[(0,s.jsx)("p",{className:u,children:"Part of Luca's portfolio / trusted by leaders at…"}),(0,s.jsx)("div",{className:"grid gap-3 md:gap-4 lg:gap-6 justify-items-center justify-center ".concat(2===a?"grid-cols-2":3===a?"grid-cols-3":4===a?"grid-cols-4":5===a?"grid-cols-5":"grid-cols-1"," ").concat(2===c?"lg:grid-cols-2":3===c?"lg:grid-cols-3":4===c?"lg:grid-cols-4":5===c?"lg:grid-cols-5":"lg:grid-cols-1"),children:l.map((e,t)=>(0,s.jsx)(o,{logo:e},"logo-".concat(e.alt,"-").concat(t)))}),"lg"===r&&(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:"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."})]})}),d=c,u=c},24978:(e,t,r)=>{"use strict";r.d(t,{K:()=>l});var s=r(24507);let l=(0,s.createServerReference)("70ed40074f3c7b47478fa17d40f2d1e364ce3ce23a",s.callServer,void 0,s.findSourceMapURL,"getPosts")},36047:(e,t,r)=>{"use strict";r.d(t,{ConvertkitForm:()=>m});var s=r(65183),l=r(24375),a=r(50849);function i(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 n=r(56275),o=r(28681),c=r(71390),d=r(43998);let u=d.Ik({email:d.Yj().min(1,"Please enter a valid email address").regex(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Please enter a valid email address")}),m=(0,l.memo)(function(e){let{buttonText:t="Join 25,000+ readers",className:d=""}=e,{email:m,isSubmitting:g,error:f,isPending:p,handleSubmit:h,updateEmail:x}=function(){let[e,t]=(0,l.useState)({email:"",isSubmitting:!1,error:null}),[s,a]=(0,l.useTransition)(),d=(0,o.useRouter)(),{sendEvent:m}=(0,n.s)(),g=(0,l.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 l=await fetch(t.convertkit.formUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s,mode:"cors",credentials:"omit"});if(l.ok||302===l.status)return c.qk.emailSignup("ConvertKit Newsletter",!0,e),m({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),m({name:"subscribed_to_newsletter"}),{success:!0};return{success:!1,error:"An error occurred. Please try again later."}}},[m]),f=(0,l.useCallback)(async s=>{s.preventDefault();let l=u.safeParse({email:e.email});if(!l.success)return void t(e=>{var t;return{...e,error:(null==(t=l.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})),a(async()=>{let s=await g(e.email);if(s.success)try{let{config:e}=await Promise.resolve().then(r.bind(r,44301));i(d,e.site.welcomePage||"/welcome")}catch(e){i(d,"/welcome")}else t(e=>({...e,isSubmitting:!1,error:s.error||"An error occurred. Please try again later."}))}))},[e.email,e.isSubmitting,g,d]),p=(0,l.useCallback)(e=>{t(t=>({...t,email:e,error:null}))},[]);return{...e,isPending:s,handleSubmit:f,updateEmail:p}}(),b=(0,l.useId)(),v="".concat(b,"-newsletter-email"),w="".concat(b,"-newsletter-error"),y="".concat(b,"-newsletter-submitting"),j="".concat(b,"-newsletter-tooltip"),N=g||p;return(0,s.jsxs)("form",{onSubmit:h,className:"w-full ".concat(d),"aria-label":"Newsletter subscription form",noValidate:!0,children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 w-full items-center",children:[(0,s.jsx)("label",{htmlFor:v,className:"sr-only",children:"Email address"}),(0,s.jsx)("input",{id:v,type:"email",value:m,onChange:e=>x(e.target.value),placeholder:"Your email",required:!0,className:"w-full h-11 text-sm px-4 py-2 rounded-md border border-gray-300 focus:outline-none focus:ring-2 focus:ring-focus focus:border-focus transition-colors duration-200 bg-white","aria-label":"Email address","aria-describedby":f?w:void 0,"aria-invalid":!!f,disabled:N,autoComplete:"email"}),(0,s.jsxs)("div",{className:"relative group w-full",children:[(0,s.jsx)(a.$,{type:"submit",variant:"primary",size:"md",disabled:N,loading:N,className:"w-full h-11 px-6 py-0 text-sm font-semibold disabled:opacity-100 disabled:cursor-not-allowed min-w-[140px]","aria-describedby":N?y:N?j:void 0,children:N?"Joining...":t}),N&&!N&&(0,s.jsxs)("div",{id:j,className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-2 bg-gray-900 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-gray-900"})]})]})]}),f&&(0,s.jsx)("div",{id:w,className:"mt-2 text-sm text-red-600 text-center",role:"alert",children:f}),N&&(0,s.jsx)("div",{id:y,className:"sr-only",children:"Submitting newsletter subscription..."})]})})},55737:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HomeNewsletterSignup:()=>c});var s=r(65183),l=r(24375),a=r(36047),i=r(39812),n=r(49275);let o={title:"Subscribe to my newsletter",description:"Expect 1-2 emails per month. No spam. Subscribe anytime."},c=(0,l.memo)(function(){let e=(0,l.useMemo)(()=>n.Y.find(e=>e.object.includes("Luca"))||null,[]);return(0,s.jsx)("div",{className:"w-full p-3 widget-border h-full",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-center h-full",children:[(0,s.jsxs)("div",{className:"w-full text-center",children:[(0,s.jsx)("h3",{className:"mb-3 text-lg font-semibold",children:o.title}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(a.ConvertkitForm,{}),(0,s.jsx)("p",{className:"mt-2 text-xs text-center text-balance text-gray-500 leading-snug",children:o.description})]})]}),e&&(0,s.jsx)("div",{className:"w-full flex justify-center",children:(0,s.jsx)(i.ReviewCard,{review:e,showRating:!1,showBorder:!1,variant:"carousel"})})]})})})},69266:(e,t,r)=>{"use strict";r.d(t,{KT:()=>a,c4:()=>l});var s=r(89493);let l=[{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"}],a=[{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)(l),(0,s.$J)(a)},70713:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var s=r(65183),l=r(24375),a=r(82212),i=r.n(a);let n={viewAll:"View all my posts"},o=(0,l.memo)(function(){return(0,s.jsx)(i(),{href:"/blog",className:"no-underline hover:opacity-80 transition-opacity",children:(0,s.jsx)("p",{className:"text-xs text-center italic text-muted mt-2",children:n.viewAll})})});function c(e){let{post:t}=e;return(0,s.jsx)(i(),{href:"/posts/".concat(t.slug),children:(0,s.jsx)("p",{className:"text-[0.8rem] leading-4 my-1",children:t.title})})}function d(e){let{posts:t}=e;return t&&0!==t.length?(0,s.jsxs)("nav",{"aria-label":"Blog posts list",children:[t.map(e=>(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)(c,{post:e})},e.slug)),(0,s.jsx)(o,{})]}):(0,s.jsx)("p",{className:"text-gray-500","aria-label":"No posts available",children:"No posts available."})}var u=r(24978);let m={title:"My top posts",loading:"Loading..."},g=(0,l.memo)(function(){let[e,t]=(0,l.useState)([]),[r,a]=(0,l.useState)(!0),[i,n]=(0,l.useState)(null);return((0,l.useEffect)(()=>{!async function(){try{let e=await (0,u.K)(void 0,4);t(e),n(null)}catch(e){console.error("Error fetching posts:",e),n(e instanceof Error?e:Error("Failed to fetch posts"))}finally{a(!1)}}()},[]),i)?(0,s.jsxs)("div",{className:"flex-1 mx-auto flex flex-col gap-3 items-center justify-center p-3 widget-border w-full content-start h-full",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-center mb-2",children:m.title}),(0,s.jsx)("p",{className:"text-sm text-muted",children:"Unable to load posts at this time."})]}):(0,s.jsxs)("div",{className:"flex-1 mx-auto flex flex-col gap-3 items-center justify-center p-3 widget-border w-full content-start h-full",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-center mb-2",children:m.title}),r?(0,s.jsx)("p",{children:m.loading}):(0,s.jsx)(d,{posts:e})]})})},81446:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,82212,23)),Promise.resolve().then(r.t.bind(r,91045,23)),Promise.resolve().then(r.bind(r,13080)),Promise.resolve().then(r.bind(r,16517)),Promise.resolve().then(r.bind(r,70713)),Promise.resolve().then(r.bind(r,55737)),Promise.resolve().then(r.bind(r,15376))}},e=>{e.O(0,[2382,1045,3998,8305,2141,9493,4661,9275,435,3675,7358],()=>e(e.s=81446)),_N_E=e.O()}]);