!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9bfc8514-0cde-4f22-9c8e-66fd4ac34814",e._sentryDebugIdIdentifier="sentry-dbid-9bfc8514-0cde-4f22-9c8e-66fd4ac34814")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185,6083],{98532:(e,t,s)=>{Promise.resolve().then(s.bind(s,25041)),Promise.resolve().then(s.bind(s,39389)),Promise.resolve().then(s.bind(s,61899)),Promise.resolve().then(s.bind(s,96245)),Promise.resolve().then(s.bind(s,96153)),Promise.resolve().then(s.bind(s,70123)),Promise.resolve().then(s.bind(s,3690)),Promise.resolve().then(s.bind(s,97433)),Promise.resolve().then(s.bind(s,54979)),Promise.resolve().then(s.bind(s,37885)),Promise.resolve().then(s.bind(s,26439)),Promise.resolve().then(s.bind(s,87756)),Promise.resolve().then(s.bind(s,14516)),Promise.resolve().then(s.bind(s,48564)),Promise.resolve().then(s.bind(s,41033)),Promise.resolve().then(s.bind(s,73221)),Promise.resolve().then(s.bind(s,67099)),Promise.resolve().then(s.bind(s,20858)),Promise.resolve().then(s.bind(s,44748)),Promise.resolve().then(s.bind(s,11485)),Promise.resolve().then(s.bind(s,41156)),Promise.resolve().then(s.bind(s,49871)),Promise.resolve().then(s.bind(s,37491)),Promise.resolve().then(s.bind(s,2201)),Promise.resolve().then(s.bind(s,54494)),Promise.resolve().then(s.bind(s,34208)),Promise.resolve().then(s.bind(s,45255)),Promise.resolve().then(s.bind(s,42547)),Promise.resolve().then(s.bind(s,59202)),Promise.resolve().then(s.bind(s,43118)),Promise.resolve().then(s.bind(s,34464)),Promise.resolve().then(s.bind(s,55623)),Promise.resolve().then(s.bind(s,79731)),Promise.resolve().then(s.bind(s,83553)),Promise.resolve().then(s.bind(s,45536)),Promise.resolve().then(s.bind(s,2623)),Promise.resolve().then(s.bind(s,20453)),Promise.resolve().then(s.bind(s,63579)),Promise.resolve().then(s.bind(s,72006)),Promise.resolve().then(s.t.bind(s,13320,23)),Promise.resolve().then(s.t.bind(s,45670,23)),Promise.resolve().then(s.t.bind(s,74516,23)),Promise.resolve().then(s.t.bind(s,33924,23)),Promise.resolve().then(s.t.bind(s,3379,23)),Promise.resolve().then(s.t.bind(s,96384,23)),Promise.resolve().then(s.bind(s,56083)),Promise.resolve().then(s.bind(s,27329)),Promise.resolve().then(s.bind(s,12132)),Promise.resolve().then(s.bind(s,67589)),Promise.resolve().then(s.t.bind(s,51926,23)),Promise.resolve().then(s.t.bind(s,39526,23)),Promise.resolve().then(s.t.bind(s,46089,23))},76014:(e,t,s)=>{"use strict";s.r(t),s.d(t,{LogoReel:()=>l,default:()=>o});var n=s(77485),r=s(41431),i=s(41859);let l=e=>{let{logos:t}=e,s=(0,r.useRef)(null),[l,o]=(0,r.useState)(0);return(0,r.useEffect)(()=>{s.current&&o(s.current.scrollWidth);let e=()=>{s.current&&o(s.current.scrollWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,n.jsxs)("div",{className:"w-full overflow-hidden bg-white mt-4 relative",children:[(0,n.jsx)("div",{className:"flex animate-scroll",ref:s,style:{"--scroll-width":"".concat(l,"px")},children:[...t,...t,...t,...t].map((e,t)=>(0,n.jsx)("div",{className:"flex-shrink-0 mx-4",children:(0,n.jsx)(i.default,{src:e.src,alt:e.alt,width:100,height:50,className:"h-12 w-auto object-contain"})},"".concat(e.alt,"-").concat(t)))}),(0,n.jsx)("div",{className:"absolute top-0 bottom-0 left-0 w-24 bg-gradient-to-r from-white to-transparent pointer-events-none"}),(0,n.jsx)("div",{className:"absolute top-0 bottom-0 right-0 w-24 bg-gradient-to-l from-white to-transparent pointer-events-none"})]})},o=l},56083:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>h});var n=s(77485),r=s(41431),i=s(19160),l=s(76014);let o=[{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:"/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"}];var a=s(49671),d=s(13708),c=s(68009),m=s(41859);let h=e=>{let{size:t="lg"}=e,[s,h]=(0,r.useState)(""),u=(0,c.useRouter)(),v=async e=>{e.preventDefault();try{(await fetch("https://app.convertkit.com/forms/1862996/subscriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email_address:s})})).ok?u.push("https://luca-dellanna.com/welcome"):alert("Subscription failed. Please try again.")}catch(e){console.error("Error:",e),alert("An error occurred. Please try again later.")}};return(0,n.jsxs)("section",{className:"max-w-2xl lg:max-w-3xl mx-auto p-8 my-12 border border-black rounded-lg shadow-lg",children:[(0,n.jsx)("form",{onSubmit:v,className:"mx-auto flex mb-8 items-center justify-center",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)("div",{id:"headline-and-form",children:["lg"===t?(0,n.jsx)("h2",{className:"mb-2",children:"Luca's newsletter"}):(0,n.jsx)("h3",{className:"mt-0 sm:mt-2 md:mt-4 mb-2",children:"Luca's newsletter"}),(0,n.jsx)("p",{className:"text-tiny text-center italic",children:"You can expect 1-2 emails a month. Unsubscribe at any time."}),(0,n.jsxs)("div",{id:"ck-form",className:"flex flex-col sm:flex-row gap-4 mt-6",children:[(0,n.jsx)("input",{type:"email",value:s,onChange:e=>h(e.target.value),placeholder:"Enter your email",required:!0,className:"flex-grow !px-2"}),(0,n.jsx)(i.A,{type:"submit",className:"primary px-6 py-2",children:"Join 25,000+ readers"})]})]}),(0,n.jsx)(m.default,{src:"/luca-portrait.jpg",alt:"Luca Dellanna",height:150,width:100,className:"ml-8 border border-black rounded-lg hidden md:block"})]})}),(0,n.jsx)(a.ReviewsCarousel,{width:"lg",height:"sm",reviews:d.A.filter(e=>e.object.includes("Luca")),showRatings:!1,title:"They say about Luca"}),"lg"===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:" mt-8 rounded-lg p-2 small-text",children:[(0,n.jsx)("p",{className:"font-semibold",children:"In the welcome email, you will find:"}),(0,n.jsxs)("ul",{className:"no-disc",children:[(0,n.jsx)("li",{children:"✔ A guide on how to bring clarity to your teams"}),(0,n.jsx)("li",{children:'✔ A 33% discount code for my book "Best Practices For Operational Excellence"'}),(0,n.jsx)("li",{children:"✔ An archive of my top Twitter threads, including the ones market with a ⭐️ that are my favorite"}),(0,n.jsx)("li",{children:'✔ A digital copy of my book "The Employee Engagement Handbook," with plenty of concrete advice to increase talent retention and commitment'})]})]}),(0,n.jsxs)("div",{id:"logo reel",children:[(0,n.jsx)("p",{className:"text-center text-[10px] leading-3 my-4",children:"Part of my portfolio / trusted by leaders at"}),(0,n.jsx)(l.LogoReel,{logos:o})]})]})]})}},27329:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var n=s(77485),r=s(41431),i=s(68009);let l=e=>{let{children:t}=e,[s,l]=(0,r.useState)(!1),[o,a]=(0,r.useState)(!1),[d,c]=(0,r.useState)(!1),m=(0,i.useRouter)();(0,r.useEffect)(()=>{c(!0)},[]),(0,r.useEffect)(()=>{if(!d||localStorage.getItem("exitPopupShown"))return;let e=setTimeout(()=>{a(!0)},15e3),t=!1,s=0,n=e=>{e.clientY<=0&&!t&&o&&h()},r=()=>{!t&&o&&(h(),m.push(window.location.pathname))},i=()=>{let e=window.scrollY;e>s&&e>300&&!t&&o&&h(),s=e<=0?0:e},c=e=>{e.touches[0].clientY<10&&!t&&o&&h()},h=()=>{t=!0,l(!0),localStorage.setItem("exitPopupShown","true")};return document.addEventListener("mouseleave",n),window.addEventListener("popstate",r),window.addEventListener("scroll",i),document.addEventListener("touchmove",c),()=>{clearTimeout(e),document.removeEventListener("mouseleave",n),window.removeEventListener("popstate",r),window.removeEventListener("scroll",i),document.removeEventListener("touchmove",c)}},[m,o,d]);let h=()=>{l(!1)};return(0,n.jsx)(n.Fragment,{children:s&&(0,n.jsx)("div",{id:"exit-popup",className:"fixed inset-0 bg-black bg-opacity-60 flex items-center justify-center z-50",onClick:e=>{e.target===e.currentTarget&&h()},children:(0,n.jsxs)("div",{className:"relative bg-white p-4 sm:p-6 lg:p-8 rounded-lg max-h-[90vh] max-w-2xl w-full",children:[(0,n.jsx)("button",{onClick:h,className:"no-button-style fixed top-2 right-2 text-white bg-transparent items-center justify-right shadow-none",children:(0,n.jsx)("span",{className:"",children:"Close"})}),t]})})})}},12132:(e,t,s)=>{"use strict";s.d(t,{default:()=>a});var n=s(77485),r=s(41431),i=s(91706),l=s(28070);let o=new i.Gr({apiHost:"https://cdn.growthbook.io",clientKey:"sdk-Atx3g5VQeoYXjqsR",decryptionKey:l.env.NEXT_PUBLIC_GROWTHBOOK_DECRYPTION_KEY,trackingCallback:(e,t)=>{console.log("Viewed Experiment",{experimentId:e.key,variationId:t.key})}}),a=e=>{let{children:t}=e;return(0,r.useEffect)(()=>{o.init().then(()=>{o.setURL(window.location.href),o.setAttributes({id:1048576*Math.random(),loggedIn:!1,employee:!1,browser:navigator.userAgent})})},[]),(0,n.jsx)(i.Ny,{growthbook:o,children:t})}},67589:(e,t,s)=>{"use strict";s.d(t,{default:()=>b});var n=s(77485),r=s(41431),i=s(34309),l=s(36944),o=s(26929),a=s(41859),d=s(68009);let c=()=>{let e=(0,d.usePathname)(),t=null==e?void 0:e.split("/").filter(e=>""!==e);return(0,n.jsx)(n.Fragment,{children:t&&t.length>=2&&(0,n.jsx)("nav",{className:"flex ".concat("hidden md:block"),"aria-label":"Breadcrumb",children:(0,n.jsxs)("ul",{className:"inline-flex items-center space-x-1 md:space-x-3",children:[!1,t.map((e,s)=>{let r="/".concat(t.slice(0,s+1).join("/")),i=s===t.length-1;return(0,n.jsx)("li",{className:"list-none my-1",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("svg",{className:"w-2 h-2 text-gray-400 mx-1","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",children:(0,n.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 9 4-4-4-4"})}),i?(0,n.jsx)("span",{className:"ml-1 text-tiny font-medium text-gray-500",children:e}):(0,n.jsx)(o.default,{href:r,className:"ml-1 text-tiny font-medium text-gray-700 hover:text-blue-600",children:e})]})},e)})]})})})},m=()=>(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)(o.default,{href:"/",className:"flex items-center font-bold text-xl",children:[(0,n.jsx)(a.default,{src:"/luca.png",alt:"Luca Dellanna",width:32,height:32,className:"rounded-full mr-2"}),(0,n.jsx)("span",{children:"Luca Dellanna"})]}),(0,n.jsx)(c,{})]}),h=[{href:"/books",name:"Books",links:[{href:"/books",name:"My bestselling books",isBold:!0},{href:"/teachers",name:"For teachers"}]},{href:"/consulting",name:"Services",links:[{href:"/consulting/business-leaders",name:"For business leaders"},{href:"/consulting/fund-managers",name:"For fund managers"},{href:"/consulting/individuals",name:"For individuals"},{href:"/ai",name:"Nail your AI initiative"},{href:"/courses",name:"Courses"},{href:"/coaching",name:"Coaching"},{href:"https://calendly.com/lucadellanna/one-on-one",name:"Book a one-on-one consultation",isBold:!0}]},{href:"/blog",name:"Blog",links:[{href:"/blog",name:"All posts",isBold:!0},{href:"/podcasts",name:"Podcasts"},{href:"https://www.youtube.com/c/LucaDellannaChannel",name:"YouTube"}]},{href:"/newsletter",name:"Newsletter"},{href:"/contact",name:"Contact",links:[{href:"/about",name:"About Luca"},{href:"/media",name:"Media"},{href:"/contact",name:"Contact",isBold:!0}]}],u=()=>(0,n.jsx)("div",{className:"hidden md:flex space-x-4",children:h.map(e=>(0,n.jsxs)("div",{className:"group relative",children:[(0,n.jsx)(o.default,{href:e.href,className:"group-hover:text-gray-700 transition-colors duration-300 ".concat(e.isBold?"font-bold":""),children:e.name}),e.links&&(0,n.jsx)("div",{className:"absolute left-0 mt-2 w-48 bg-white border border-black rounded-md shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300",children:e.links.map(e=>(0,n.jsx)(o.default,{href:e.href,className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 ".concat(e.isBold?"font-bold":""),children:e.name},e.name))})]},e.name))});var v=s(17971),x=s(15188);let f=e=>{let{onLinkClick:t,isOpen:s}=e,[i,l]=(0,r.useState)(!1),[a,d]=(0,r.useState)(!1),c=(0,r.useRef)(null),m=(0,r.useCallback)(()=>{if(c.current){console.log("Checking height...");let e=c.current.scrollHeight;console.log("Menu height:",e);let t=window.innerHeight;console.log("Viewport height:",t);let s=e>t-64;console.log("Should show expand button:",s),l(s)}else console.log("menuRef.current is null")},[]),u=(0,r.useCallback)(()=>{if(c.current){let{scrollTop:e,scrollHeight:t,clientHeight:s}=c.current;d(1>Math.abs(t-s-e))}},[]);return(0,r.useEffect)(()=>{if(s){console.log("Menu opened, scheduling height check");let e=setTimeout(()=>{console.log("Running scheduled height check"),m(),u()},100);return()=>clearTimeout(e)}},[s,m,u]),(0,r.useEffect)(()=>(console.log("Adding resize event listener"),window.addEventListener("resize",m),()=>{console.log("Removing resize event listener"),window.removeEventListener("resize",m)}),[m]),(0,r.useEffect)(()=>{let e=c.current;if(e)return e.addEventListener("scroll",u),()=>e.removeEventListener("scroll",u)},[u]),(0,n.jsxs)("div",{className:"relative md:hidden",children:[(0,n.jsx)("div",{className:"absolute bottom-2 right-2 text-gray-400 ".concat(i&&!a?"":"hidden"),children:(0,n.jsx)(v.Z,{})}),(0,n.jsx)("div",{className:"absolute top-2 right-2 text-gray-400 ".concat(i&&a?"":"hidden"),children:(0,n.jsx)(x.Z,{})}),(0,n.jsx)("div",{ref:c,className:"px-2 pt-2 pb-3 space-y-1 sm:px-3 shadow-lg max-h-[calc(100vh-64px)] overflow-y-auto",children:h.map(e=>(0,n.jsxs)("div",{children:[(0,n.jsx)(o.default,{href:e.href,className:"block px-3 py-2 rounded-md font-extrabold",onClick:t,children:e.name}),e.links&&(0,n.jsx)("div",{className:"pl-4",children:e.links.map(e=>(0,n.jsx)(o.default,{href:e.href,className:"block px-3 py-2 rounded-md text-sm ".concat(e.isBold?"font-semibold":""),onClick:t,children:e.name},e.name))})]},e.name))})]})},b=()=>{let[e,t]=(0,r.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("nav",{className:"fixed top-0 left-0 right-0 bg-white z-50",children:[(0,n.jsx)("div",{className:"w-full max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,n.jsx)(m,{}),(0,n.jsx)(u,{}),(0,n.jsx)("div",{className:"md:hidden",children:(0,n.jsx)("button",{onClick:()=>{t(!e)},className:"no-button-style focus:outline-none focus:ring-0 w-6 h-6 rounded-full bg-white shadow-none",children:e?(0,n.jsx)(i.Z,{size:24}):(0,n.jsx)(l.Z,{size:24})})})]})}),e&&(0,n.jsx)(f,{onLinkClick:()=>{t(!1)},isOpen:e})]}),(0,n.jsx)("div",{className:"h-16"})]})}},51926:()=>{},39526:()=>{},46089:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[675,6544,688,4335,2409,8379,784,1087,322,6367,9703,4650,1272,456,9775,2803,7691,1744],()=>t(98532)),_N_E=e.O()}]);