try{let 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]="0f68f733-fa46-48e7-a74d-5316a03c6995",e._sentryDebugIdIdentifier="sentry-dbid-0f68f733-fa46-48e7-a74d-5316a03c6995")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3031],{173:(e,t,r)=>{r.d(t,{LI:()=>a});function a(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}}},3333:(e,t,r)=>{r.d(t,{ConvertkitForm:()=>f});var a=r(48958),s=r(83982),n=r(53022),i=r(173),l=r(78262),o=r(14398),c=r(47126),d=r(45368),m=r(12966),u=r(51851);let h=m.Ik({email:m.Yj().email("Please enter a valid email address")});function f(e){let{buttonText:t="Join 25,000+ readers"}=e,m=(0,d.useRouter)(),{sendEvent:f}=(0,o.s)(),{handleSubmit:p,formState:{errors:g,isSubmitting:w},register:x,setError:b}=(0,c.mN)({resolver:(0,u.u)(h),mode:"onSubmit",reValidateMode:"onChange",defaultValues:{email:""}}),y=(0,s.useCallback)(async e=>{try{let{config:t}=await r.e(4717).then(r.bind(r,74717));if(!t.convertkit.formUrl)throw Error("ConvertKit form URL not configured");let a=new URLSearchParams;a.append("email_address",e.email);let s=await fetch(t.convertkit.formUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a,mode:"cors",credentials:"omit"});if(s.ok||302===s.status)f({name:"subscribed_to_newsletter"}),(0,i.LI)(m,t.site.welcomePage||"/welcome");else{let e=await s.text().catch(()=>"Unknown error");throw Error("Subscription failed: ".concat(s.status," - ").concat(e))}}catch(e){if(console.error("Error:",e),e instanceof TypeError&&e.message.includes("Failed to fetch")){console.log("Network error - subscription may have succeeded, proceeding optimistically"),f({name:"subscribed_to_newsletter"});try{let{config:e}=await r.e(4717).then(r.bind(r,74717));(0,i.LI)(m,e.site.welcomePage||"/welcome")}catch(e){(0,i.LI)(m,"/welcome")}return}b("email",{type:"manual",message:e instanceof Error?e.message:"An error occurred. Please try again later."});return}},[m,b,f]);return(0,a.jsxs)("form",{onSubmit:p(y),className:"flex flex-col items-center sm:flex-row gap-4 mt-6",role:"form","aria-label":"Newsletter subscription form",children:[(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("label",{htmlFor:"convertkit-email",className:"sr-only",children:"Email address"}),(0,a.jsx)("input",{id:"convertkit-email",...x("email"),type:"email",placeholder:"Enter your email",className:(0,l.QP)("grow text-sm rounded-lg px-4 py-2 border focus:outline-none focus:ring-2 focus:ring-focus focus:border-focus",g.email?"border-red-500":"border-gray-300",w&&"opacity-50 cursor-not-allowed"),disabled:w,onFocus:e=>e.stopPropagation(),onBlur:e=>e.stopPropagation(),"aria-describedby":g.email?"email-error":void 0,"aria-invalid":!!g.email}),g.email&&(0,a.jsx)("p",{id:"email-error",className:"text-red-500 text-xs mt-1",role:"alert",children:g.email.message})]}),(0,a.jsx)(n.T,{type:"submit",className:"btn-primary px-6! py-2 w-fit text-sm rounded-lg",isLoading:w,isDisabled:w,"aria-describedby":w?"submitting-status":void 0,children:(0,a.jsx)("span",{className:"mx-6 whitespace-nowrap",children:t})}),w&&(0,a.jsx)("div",{id:"submitting-status",className:"sr-only","aria-live":"polite",children:"Submitting subscription..."})]})}},14916:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(83982);function s(e){let{maxWidth:t,minScale:r=.1,debounceMs:s=100}=e,[n,i]=(0,a.useState)(1),l=(0,a.useRef)(void 0),o=(0,a.useCallback)(()=>{i(Math.min(.95,Math.max(r,window.innerWidth/t)))},[t,r]);return(0,a.useEffect)(()=>{let e=()=>l.current&&clearTimeout(l.current),t=()=>{e(),l.current=setTimeout(o,s)};return o(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[o,s]),n}},71298:(e,t,r)=>{r.d(t,{KT:()=>n,c4:()=>s});var a=r(71489);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:"/shopify.png",alt:"Shopify"},{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"}],n=[{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)(n)},73031:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var a=r(48958),s=r(3333),n=r(62467),i=r(88480);r(83982);var l=r(35982),o=r(71298),c=r(78251);let d=()=>(0,a.jsxs)("div",{className:"mt-8 rounded-lg p-2 small-text",children:[(0,a.jsx)("p",{className:"font-semibold",children:"In the welcome email, you will find:"}),(0,a.jsxs)("ul",{className:"no-disc",children:[(0,a.jsx)("li",{children:"✔ A guide on how to bring clarity to your teams"}),(0,a.jsx)("li",{children:'✔ A 33% discount code for my book "Best Practices For Operational Excellence"'}),(0,a.jsx)("li",{children:"✔ An archive of my top Twitter threads, including the ones market with a ⭐️ that are my favorite"}),(0,a.jsx)("li",{children:'✔ A digital copy of my book "The Employee Engagement Handbook", with plenty of concrete advice to increase talent retention and commitment'})]})]}),m=()=>(0,a.jsxs)("div",{id:"logo-reel",children:[(0,a.jsx)("p",{className:"text-center text-[10px] leading-3 my-4",children:"Part of my portfolio / trusted by leaders at"}),(0,a.jsx)(i.LogoReel,{logos:o.c4})]}),u=e=>{let{size:t="lg",border:r=!0}=e,i=c.Y.filter(e=>e.object.includes("Luca"));return(0,a.jsxs)("section",{className:"section-separator max-w-2xl lg:max-w-3xl p-4 md:p-8 my-12 ".concat(r?"border border-black rounded-lg shadow-lg":""),children:[(0,a.jsx)("div",{className:"mx-auto flex mb-8 items-center justify-center",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)("div",{id:"headline-and-form",children:["lg"===t?(0,a.jsx)("h2",{className:"mb-2",children:"Luca's newsletter"}):(0,a.jsx)("h3",{className:"mt-0 sm:mt-2 md:mt-4 mb-2",children:"Luca's newsletter"}),(0,a.jsx)("p",{className:"text-xs text-center italic",children:"You can expect 1-2 emails a month. Unsubscribe at any time."}),(0,a.jsx)("div",{id:"ck-form",children:(0,a.jsx)(s.ConvertkitForm,{buttonText:"Join 25,000+ readers"})})]}),(0,a.jsx)(n.default,{src:"/luca-portrait.jpg",alt:"Luca Dellanna",height:150,width:100,className:"ml-8 border border-black rounded-lg hidden md:block"})]})}),(0,a.jsx)(l.ReviewsCarousel,{width:"lg",height:"sm",reviews:i,showRatings:!1,title:"They say about Luca"}),"lg"===t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d,{}),(0,a.jsx)(m,{})]})]})}},88480:(e,t,r)=>{r.d(t,{LogoReel:()=>m});var a=r(48958),s=r(83982);let n=e=>{let{side:t,className:r,width:s}=e;return(0,a.jsx)("div",{className:"".concat(r," ").concat(s," ").concat(t,"-0 bg-gradient-to-").concat("left"===t?"r":"l"," from-white to-transparent"),"aria-hidden":"true"})},i=(0,s.memo)(function(e){let{width:t}=e,r="absolute top-0 bottom-0 pointer-events-none";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n,{side:"left",className:r,width:t}),(0,a.jsx)(n,{side:"right",className:r,width:t})]})});var l=r(62467),o=r(14916);let c={width:100,height:50},d=(0,s.memo)(function(e){let{logo:t,index:r}=e;return(0,a.jsx)("div",{className:"shrink-0 mx-4",children:(0,a.jsx)(l.default,{src:t.src,alt:t.alt,width:c.width,height:c.height,sizes:"(max-width: 768px) 100px, 100px",quality:85,className:"h-12 w-auto object-contain",onError:e=>{e.target.style.display="none"}})})}),m=(0,s.memo)(function(e){let{logos:t}=e,r=(0,s.useRef)(null),n=Array.isArray(t)&&t.length>0,l=n?Array.from({length:4},()=>t).flat():[],m=n?c.width*t.length*4:0,u=(0,o.A)({maxWidth:m}),h=(0,s.useCallback)(()=>{let e=r.current;if(!e)return;let t=e.scrollWidth;e.style.setProperty("--scroll-width","".concat(t,"px"))},[]);return((0,s.useEffect)(()=>{var e;if(!n)return;h();let t=()=>{requestAnimationFrame(h)};window.addEventListener("resize",t);let a=null==(e=r.current)?void 0:e.getElementsByTagName("img");return a&&Promise.all(Array.from(a).map(e=>e.complete||new Promise(t=>{e.onload=t,e.onerror=t}))).then(h),()=>window.removeEventListener("resize",t)},[h,n]),n)?(0,a.jsxs)("div",{className:"w-[95vw] max-w-full overflow-hidden bg-white mt-4 relative",children:[(0,a.jsx)("div",{className:"flex animate-scroll max-w-full",ref:r,style:{transform:"scale(".concat(u,")"),transformOrigin:"left center"},role:"region","aria-label":"Scrolling logo display","aria-live":"off",children:l.map((e,t)=>(0,a.jsx)(d,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),(0,a.jsx)(i,{width:"w-24"})]}):null})}}]);