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]="642c329f-a3fc-4c20-b346-026120424c1a",e._sentryDebugIdIdentifier="sentry-dbid-642c329f-a3fc-4c20-b346-026120424c1a")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3031,7177],{173:(e,t,n)=>{"use strict";function r(e,t){let n=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(!n)return console.warn("Attempted to navigate to invalid URL:",t),!1;try{return e.push(n),!0}catch(e){return console.error("Navigation failed:",e),!1}}n.d(t,{LI:()=>r})},3333:(e,t,n)=>{"use strict";n.d(t,{ConvertkitForm:()=>f});var r=n(48958),a=n(91639),s=n(52642),l=n(83982),i=n(173),o=n(14398),c=n(47126),d=n(45368),u=n(56014),m=n(51851);let h=u.Ik({email:u.Yj().email("Please enter a valid email address")});function f(e){var t;let{buttonText:n="Join 25,000+ readers"}=e,u=(0,d.useRouter)(),{sendEvent:f}=(0,o.s)(),{handleSubmit:g,formState:{errors:p,isSubmitting:x},register:v,setError:w}=(0,c.mN)({resolver:(0,m.u)(h),defaultValues:{email:""}}),y=(0,l.useCallback)(async e=>{try{if((await fetch("https://app.convertkit.com/forms/1862996/subscriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email_address:e.email})})).ok)f({name:"subscribed_to_newsletter"}),(0,i.LI)(u,"https://luca-dellanna.com/welcome");else throw Error("Subscription failed")}catch(e){console.error("Error:",e),w("email",{type:"manual",message:e instanceof Error?e.message:"An error occurred. Please try again later."})}},[u,w,f]);return(0,r.jsxs)("form",{onSubmit:g(y),className:"flex flex-col items-center sm:flex-row gap-4 mt-6",children:[(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)(a.r,{...v("email"),type:"email",placeholder:"Enter your email",isRequired:!0,className:"grow text-sm rounded-lg",isDisabled:x,errorMessage:null==(t=p.email)?void 0:t.message,isInvalid:!!p.email,onFocus:e=>e.stopPropagation(),onBlur:e=>e.stopPropagation()})}),(0,r.jsx)(s.T,{type:"submit",className:"primary px-6! py-2 w-fit text-sm rounded-lg",isLoading:x,isDisabled:x,children:(0,r.jsx)("span",{className:"mx-6 whitespace-nowrap",children:n})})]})}},8070:(e,t,n)=>{"use strict";n.d(t,{GoogleAnalyticsWrapper:()=>l});var r=n(48958),a=n(75785);let s={gaId:n(71252).env.NEXT_PUBLIC_GA_ID||""};function l(e){let{gaId:t}=e,n=t||s.gaId;return n?(0,r.jsx)(a.GoogleAnalytics,{gaId:n}):null}},14398:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});let r={writeKey:n(71252).env.NEXT_PUBLIC_SEGMENT_WRITE_KEY||""};var a=n(75785),s=n(83982);let l={gaId:n(71252).env.NEXT_PUBLIC_GA_ID||""};function i(){let e=(0,s.useCallback)(e=>{let{name:t,params:n}=e;try{if(l.gaId){let e={event:t};if(n)for(let t in n)e[t]=n[t];(0,a.sendGAEvent)(e)}}catch(e){console.error("Failed to send Google Analytics event:",e)}(e=>{let{event:t,properties:n}=e;if(r.writeKey&&window.analytics)try{window.analytics.track(t,n)}catch(e){console.error("Failed to track Segment event:",e)}})({event:t,properties:n})},[]);return{sendEvent:e,identifyUser:(0,s.useCallback)(e=>{let{userId:t,traits:n}=e;(e=>{let{userId:t,traits:n}=e;if(r.writeKey&&window.analytics)try{window.analytics.identify(t,n)}catch(e){console.error("Failed to identify Segment user:",e)}})({userId:t,traits:n})},[]),trackPage:(0,s.useCallback)(()=>{if(r.writeKey&&window.analytics)try{window.analytics.page()}catch(e){console.error("Failed to track Segment page:",e)}},[])}}},14916:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(83982);function a(e){let{maxWidth:t,minScale:n=.1,debounceMs:a=100}=e,[s,l]=(0,r.useState)(1),i=(0,r.useRef)(void 0),o=(0,r.useCallback)(()=>{l(Math.min(.95,Math.max(n,window.innerWidth/t)))},[t,n]);return(0,r.useEffect)(()=>{let e=()=>i.current&&clearTimeout(i.current),t=()=>{e(),i.current=setTimeout(o,a)};return o(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[o,a]),s}},18314:(e,t,n)=>{"use strict";n.d(t,{ContactCallout:()=>u});var r=n(48958),a=n(83982),s=n(72807),l=n.n(s),i=n(62467),o=n(78262);let c=(0,a.memo)(e=>{let{children:t,className:n,border:a=!1}=e;return(0,r.jsxs)("div",{className:(0,o.QP)("block md:flex md:flex-row md:justify-around items-center space-x-8",a&&"border border-gray-400 p-4 rounded-lg shadow-md",n),children:[(0,r.jsx)("div",{className:"max-w-3xl flex-2 mx-0 text-center md:text-justify prose",children:t}),(0,r.jsx)(i.default,{src:"/luca-no-bg.png",alt:"Luca Dellanna",width:200,height:300,className:"hidden md:block flex-1 shrink-0 w-auto h-full max-h-[300px]"})]})});c.displayName="BoxWithLuca";let d=(0,a.memo)(e=>{let{className:t=""}=e;return(0,r.jsxs)("div",{className:"mx-auto flex items-center justify-center gap-4 md:gap-8 mt-6 px-4 ".concat(t),role:"group","aria-label":"Contact options",children:[(0,r.jsx)(l(),{href:"/contact",className:"inline-flex no-underline items-center justify-center min-w-[110px] px-2 py-2 text-sm font-medium text-white bg-focus] rounded-md hover:bg-focus]/90 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-focus] transition-colors","aria-label":"Send email to Luca",children:"Email Luca"}),(0,r.jsx)("span",{className:"italic mb-0 text-sm text-gray-600","aria-hidden":"true",children:"or"}),(0,r.jsx)(l(),{href:"https://calendly.com/lucadellanna/15min",className:"text-sm hover:text-gray-600 transition-colors text-nowrap",target:"_blank",rel:"noopener noreferrer","aria-label":"Schedule a 15-minute call with Luca",children:"Schedule a call"})]})});d.displayName="ContactActions";let u=(0,a.memo)(e=>{let{className:t=""}=e;return(0,r.jsx)("section",{className:"flex flex-col items-center ".concat(t),"aria-labelledby":"contact-heading",children:(0,r.jsxs)(c,{border:!0,className:"items-center",children:[(0,r.jsx)("h2",{id:"contact-heading",className:"text-2xl my-0! font-bold text-gray-900",children:"Contact Luca"}),(0,r.jsx)("p",{className:"text-lg text-gray-700 max-w-prose",children:"Talk with Luca to see if he can help you"}),(0,r.jsx)(d,{})]})})});u.displayName="ContactCallout"},23698:(e,t,n)=>{"use strict";n.d(t,{ReviewsCarousel:()=>c});var r=n(48958),a=n(83982),s=n(85671);let l={SCROLL_AMOUNT:300},i=(0,a.memo)(function(e){let{review:t,showRating:n,isLast:a}=e;return(0,r.jsx)("div",{className:"w-48 md:w-64 shrink-0 ".concat(a?"":"mr-4 md:mr-8"),children:(0,r.jsx)(s.ReviewCard,{review:t,showRating:n})})}),o=(0,a.memo)(function(e){let{direction:t,show:n,onClick:a}=e;return(0,r.jsx)("button",{onClick:a,className:"absolute ".concat(t,"-0 top-0 bottom-0 w-16 bg-transparent\n no-button-style shadow-none focus:ring-0 focus:outline-hidden active:bg-transparent \n border-none focus:border-none outline-hidden\n ").concat(n?"bg-gradient-".concat("left"===t?"to-r":"to-l"," from-white to-transparent"):"pointer-events-none"),"aria-label":"Scroll ".concat(t)})}),c=(0,a.memo)(function(e){let{reviews:t,showRatings:n,title:s="Some reviews",width:c,height:d}=e,u=(0,a.useRef)(null),[m,h]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!0),p=(0,a.useCallback)(()=>{let e=u.current;if(!e)return;let{scrollLeft:t,scrollWidth:n,clientWidth:r}=e;h(t>0),g(t{let t=u.current;if(!t)return;let n="left"===e?-l.SCROLL_AMOUNT:l.SCROLL_AMOUNT;t.scrollBy({left:n,behavior:"smooth"})},[]),{isDragging:v,handleDragStart:w,handleDragEnd:y,handleDragMove:b}=(e=>{let[t,n]=(0,a.useState)(!1),r=(0,a.useRef)({x:0,scrollLeft:0}),s=(0,a.useCallback)(t=>{e.current&&(n(!0),r.current={x:"touches"in t?t.touches[0].clientX:t.clientX,scrollLeft:e.current.scrollLeft})},[e]),l=(0,a.useCallback)(()=>{n(!1)},[]),i=(0,a.useCallback)(n=>{if(!t||!e.current)return;n.preventDefault();let a="touches"in n?n.touches[0].clientX:n.clientX,s=r.current.x-a;e.current.scrollLeft=r.current.scrollLeft+s},[t,e]);return{isDragging:t,handleDragStart:s,handleDragEnd:l,handleDragMove:i}})(u),j=(0,a.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),b(e))},[b]),k=(0,a.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),w(e))},[w]),N=(0,a.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),y())},[y]),L=t.length<2,E=t.length<3&&"lg"===c;return(0,r.jsxs)("section",{className:"".concat("sm"===d?"mt-0 mb-0 p-0":""," section-separator"),children:[(0,r.jsx)("h3",{className:"text-2xl font-bold mb-4",children:s}),(0,r.jsxs)("div",{className:"w-full relative",children:[(0,r.jsx)("div",{className:"mx-auto mb-4 relative overflow-x-auto scrollbar-hide select-none\n max-w-[280px] sm:max-w-[380px] md:max-w-[420px] ".concat("lg"===c?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(L?"flex justify-center":""),ref:u,onScroll:p,onMouseDown:k,onMouseUp:N,onMouseLeave:N,onMouseMove:j,onTouchStart:k,onTouchEnd:N,onTouchMove:j,children:(0,r.jsx)("div",{className:"flex ".concat(E?"md:justify-center":""),children:t.map((e,a)=>(0,r.jsx)(i,{review:e,showRating:n,isLast:a===t.length-1},"review-".concat(a)))})}),(0,r.jsx)(o,{direction:"left",show:m,onClick:()=>x("left")}),(0,r.jsx)(o,{direction:"right",show:f,onClick:()=>x("right")})]})]})})},33818:(e,t,n)=>{"use strict";n.d(t,{RandomSelector:()=>s});var r=n(48958),a=n(83982);function s(e){let{children:t}=e,n=(0,a.useMemo)(()=>{let e=a.Children.toArray(t),n=Math.floor(Math.random()*e.length);return e[n]},[t]);return(0,r.jsx)(r.Fragment,{children:n})}},38065:(e,t,n)=>{"use strict";n.d(t,{SegmentAnalytics:()=>l});var r=n(48958),a=n(8277);let s={writeKey:n(71252).env.NEXT_PUBLIC_SEGMENT_WRITE_KEY||""};function l(e){let{writeKey:t}=e,n=t||s.writeKey;return n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("link",{rel:"preconnect",href:"https://cdn.segment.com"}),(0,r.jsx)(a.default,{id:"segment-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n!function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel=\'canonical\']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n{"use strict";n.d(t,{V:()=>i});var r=n(57370),a=n(83982);let s=e=>{if(!e)return!1;let t="string"==typeof e?e:e instanceof Error?e.message:String(e);return t.includes("Object Not Found Matching Id")||t.includes("unhandledrejection")||t.includes("/_vercel/speed-insights/vitals")||e instanceof CustomEvent&&"unhandledrejection"===e.type&&!e.reason},l=e=>e instanceof Error?{message:e.message,type:e.name}:e instanceof CustomEvent?{message:e.reason instanceof Error?e.reason.message:String(e.reason)||"Custom Event Error",type:"CustomEvent:".concat(e.type)}:"string"==typeof e?{message:e,type:"StringError"}:{message:String(e),type:"UnknownError"};function i(e){(0,a.useEffect)(()=>{let e=history.pushState,t=history.replaceState;return history.pushState=function(t,n,r){if(r&&"string"==typeof r)try{if(r.startsWith("/"))return e.call(this,t,n,r);return new URL(r),e.call(this,t,n,r)}catch(e){console.warn("Invalid URL detected in pushState: ".concat(r),e);return}return e.call(this,t,n,r)},history.replaceState=function(e,n,r){if(r&&"string"==typeof r)try{if(r.startsWith("/"))return t.call(this,e,n,r);return new URL(r),t.call(this,e,n,r)}catch(e){console.warn("Invalid URL detected in replaceState: ".concat(r),e);return}return t.call(this,e,n,r)},()=>{history.pushState=e,history.replaceState=t}},[]),(0,a.useEffect)(()=>{let e=e=>{var t,n,r,a,s,l;if((null==(n=e.error)||null==(t=n.message)?void 0:t.includes("replaceState"))||(null==(a=e.error)||null==(r=a.message)?void 0:r.includes("pushState"))||(null==(l=e.error)||null==(s=l.message)?void 0:s.includes("SecurityError")))return console.warn("URL-related error caught:",e.error),e.preventDefault(),!1};return window.addEventListener("error",e),()=>window.removeEventListener("error",e)},[]),(0,a.useEffect)(()=>{let e=e=>{var t,n,r,a,s,l;if((null==(n=e.reason)||null==(t=n.message)?void 0:t.includes("replaceState"))||(null==(a=e.reason)||null==(r=a.message)?void 0:r.includes("pushState"))||(null==(l=e.reason)||null==(s=l.message)?void 0:s.includes("SecurityError")))return console.warn("URL-related promise rejection caught:",e.reason),e.preventDefault(),!1};return window.addEventListener("unhandledrejection",e),()=>window.removeEventListener("unhandledrejection",e)},[]),(0,a.useEffect)(()=>{let t=t=>{if(s(t.error))return void console.debug("Suppressed non-critical error:",t.error);let n=l(t.error);r.Cp(t.error,{extra:{componentName:e,timestamp:new Date().toISOString(),errorDetails:n},tags:{location:e,errorType:n.type}})},n=t=>{let n="reason"in t?t.reason:t;if(s(n))return void console.debug("Suppressed non-critical promise rejection:",n);let a=l(n);r.Cp(n,{extra:{componentName:e,promiseError:!0,timestamp:new Date().toISOString(),errorDetails:a},tags:{location:e,errorType:a.type}})};return window.addEventListener("error",t),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",n)}},[e])}},41190:(e,t,n)=>{"use strict";n.d(t,{VercelAnalytics:()=>l});var r=n(48958),a=n(24932),s=n(95518);function l(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.j,{}),(0,r.jsx)(s.b,{})]})}},43217:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(48958),a=n(83982),s=n(72807),l=n.n(s);let i={website:[{name:"Books",href:"/books",links:[{name:"Excerpts",href:"/excerpts"}]},{name:"Blog",href:"/blog"},{name:"Newsletter",href:"/newsletter"},{name:"Contact",href:"/contact"},{name:"Privacy Policy",href:"/privacy-policy"},{name:"Terms and Conditions",href:"/terms-and-conditions"},{name:"Disclaimer",href:"/disclaimer"}],services:[{name:"Luca's consulting",href:"/consulting",links:[{name:"– for business leaders",href:"/consulting/business-leaders"},{name:"– for fund managers",href:"/consulting/fund-managers"},{name:"– for individuals",href:"/consulting/individuals"}]},{name:"Luca's coaching",href:"/coaching"}],social:[{name:"Twitter",href:"https://twitter.com/DellAnnaLuca"},{name:"LinkedIn",href:"https://www.linkedin.com/in/dellannaluca"},{name:"YouTube",href:"https://www.youtube.com/c/LucaDellannaChannel"},{name:"Instagram",href:"https://www.instagram.com/lucadellanna/"}]},o=(0,a.memo)(function(e){let{header:t,links:n}=e;return(0,r.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,r.jsx)("h3",{className:"text-base font-bold text-white",children:t}),n.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)(l(),{href:e.href,className:"mx-2 text-sm no-underline text-gray-400 hover:text-white transition-colors",children:e.name}),e.links&&(0,r.jsx)("div",{className:"flex flex-col mt-2 space-y-2",children:e.links.map(e=>(0,r.jsx)(l(),{href:e.href,className:"mx-2 text-xs no-underline text-gray-500 hover:text-white transition-colors",children:e.name},e.href))})]},e.href))]})}),c=(0,a.memo)(function(){let e=new Date().getFullYear();return(0,r.jsxs)("footer",{className:"bg-gray-800 text-white py-12 mt-12",children:[(0,r.jsxs)("div",{className:"container mx-auto flex flex-col md:flex-row space-y-8 md:space-y-0 justify-around text-center",children:[(0,r.jsx)(o,{header:"Links",links:i.website}),(0,r.jsx)(o,{header:"Luca's services",links:i.services}),(0,r.jsx)(o,{header:"Luca's socials",links:i.social})]}),(0,r.jsxs)("div",{className:"text-gray-400 text-xs text-center mt-8",children:["\xa9 ",e," Luca Dell'Anna. All rights reserved."]})]})})},44057:(e,t,n)=>{"use strict";n.d(t,{Providers:()=>l});var r=n(48958),a=n(17884),s=n(40374);function l(e){let{children:t}=e;return(0,s.V)("GlobalProviders"),(0,r.jsx)(a.M,{children:t})}},44094:(e,t,n)=>{"use strict";n.d(t,{LogoReel:()=>d});var r=n(48958),a=n(83982),s=n(46173),l=n(62467),i=n(14916);let o={width:100,height:50},c=(0,a.memo)(function(e){let{logo:t,index:n}=e;return(0,r.jsx)("div",{className:"shrink-0 mx-4",children:(0,r.jsx)(l.default,{src:t.src,alt:t.alt,width:o.width,height:o.height,className:"h-12 w-auto object-contain",onError:e=>{e.target.style.display="none"}})})}),d=(0,a.memo)(function(e){let{logos:t}=e,n=(0,a.useRef)(null),l=Array.isArray(t)&&t.length>0,d=l?Array.from({length:4},()=>t).flat():[],u=l?o.width*t.length*4:0,m=(0,i.A)({maxWidth:u}),h=(0,a.useCallback)(()=>{let e=n.current;if(!e)return;let t=e.scrollWidth;e.style.setProperty("--scroll-width","".concat(t,"px"))},[]);return((0,a.useEffect)(()=>{var e;if(!l)return;h();let t=()=>{requestAnimationFrame(h)};window.addEventListener("resize",t);let r=null==(e=n.current)?void 0:e.getElementsByTagName("img");return r&&Promise.all(Array.from(r).map(e=>e.complete||new Promise(t=>{e.onload=t,e.onerror=t}))).then(h),()=>window.removeEventListener("resize",t)},[h,l]),l)?(0,r.jsxs)("div",{className:"w-[95vw] max-w-full overflow-hidden bg-white mt-4 relative",children:[(0,r.jsx)("div",{className:"flex animate-scroll max-w-full",ref:n,style:{transform:"scale(".concat(m,")"),transformOrigin:"left center"},role:"marquee","aria-label":"Logo reel",children:d.map((e,t)=>(0,r.jsx)(c,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),(0,r.jsx)(s.A,{width:"w-24"})]}):null})},46173:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(48958),a=n(83982);let s=e=>{let{side:t,className:n,width:a}=e;return(0,r.jsx)("div",{className:"".concat(n," ").concat(a," ").concat(t,"-0 bg-gradient-to-").concat("left"===t?"r":"l"," from-white to-transparent"),"aria-hidden":"true"})},l=(0,a.memo)(function(e){let{width:t}=e,n="absolute top-0 bottom-0 pointer-events-none";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{side:"left",className:n,width:t}),(0,r.jsx)(s,{side:"right",className:n,width:t})]})})},55133:(e,t,n)=>{"use strict";n.d(t,{AnalyticsProvider:()=>i});var r=n(48958),a=n(38065),s=n(41190),l=n(8070);function i(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.SegmentAnalytics,{}),(0,r.jsx)(s.VercelAnalytics,{}),(0,r.jsx)(l.GoogleAnalyticsWrapper,{})]})}},58053:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(57370),a=n(83982);let s=function(){let e=(0,a.useRef)(new Set),t=(0,a.useCallback)(async t=>{if(!e.current.has(t.src)&&0===t.naturalWidth&&0===t.naturalHeight)try{let n=await fetch(t.src,{method:"HEAD"});if(404!==n.status)return;let a={src:t.src,message:"Image returned 404",timestamp:new Date().toISOString(),elementId:t.id||void 0,altText:t.alt||void 0,loadingStrategy:t.loading||void 0,viewport:{width:window.innerWidth,height:window.innerHeight}};e.current.add(t.src),r.wd("Image 404: ".concat(t.src),{level:"error",extra:{...a},tags:{imageHost:new URL(t.src).hostname,imageSize:"".concat(t.width,"x").concat(t.height),errorType:"404"}})}catch(e){console.debug("Could not verify image status:",t.src)}},[]);return(0,a.useEffect)(()=>{let n=e=>{let n=e.target;n instanceof HTMLImageElement&&t(n)},r=e.current;return document.addEventListener("error",n,{capture:!0,passive:!0}),()=>{document.removeEventListener("error",n,!0),r.clear()}},[t]),null}},69274:(e,t,n)=>{"use strict";n.d(t,{default:()=>S});var r=n(48958),a=n(97788),s=n(12755),l=n(83982),i=n(72807),o=n.n(i);let c=[{href:"/books",name:"Books",links:[{href:"/books",name:"My bestselling books",isBold:!0},{href:"/audiobooks",name:"Audiobooks"},{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}]}],d=(0,l.memo)(e=>{let{item:t,isLast:n}=e;return(0,r.jsx)(o(),{href:t.href,className:"".concat(n?"bg-primary text-white hover:text-white px-4 py-2 rounded-md font-bold":"group-hover:text-focus"," transition-colors duration-300 ").concat(t.isBold?"font-bold":""),children:t.name})}),u=(0,l.memo)(e=>{let{links:t}=e;return(0,r.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:t.map(e=>(0,r.jsx)(o(),{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))})}),m=(0,l.memo)(()=>(0,r.jsx)("nav",{className:"hidden md:flex space-x-4","aria-label":"Desktop navigation",children:c.map((e,t)=>(0,r.jsxs)("div",{className:"group relative",children:[(0,r.jsx)(d,{item:e,isLast:t===c.length-1}),e.links&&(0,r.jsx)(u,{links:e.links})]},e.name))}));d.displayName="NavLink",u.displayName="DropdownMenu",m.displayName="DesktopMenu";var h=n(43142),f=n(72491);let g=(0,l.memo)(e=>{let{showExpandButton:t,isAtBottom:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute bottom-2 right-2 text-gray-400 ".concat(t&&!n?"":"hidden"),children:(0,r.jsx)(h.A,{})}),(0,r.jsx)("div",{className:"absolute top-2 right-2 text-gray-400 ".concat(t&&n?"":"hidden"),children:(0,r.jsx)(f.A,{})})]})}),p=(0,l.memo)(e=>{let{item:t,onLinkClick:n}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)(o(),{href:t.href,className:"block px-3 py-2 rounded-md font-extrabold ".concat(t===c[c.length-1]?"bg-primary text-white hover:bg-primary-dark":""),onClick:n,children:t.name}),t.links&&(0,r.jsx)("div",{className:"pl-4",children:t.links.map(e=>(0,r.jsx)(o(),{href:e.href,className:"block px-3 py-2 rounded-md text-sm ".concat(e.isBold?"font-semibold":""),onClick:n,children:e.name},e.name))})]})}),x=(0,l.memo)(e=>{let{onLinkClick:t,isOpen:n}=e,[a,s]=(0,l.useState)(!1),[i,o]=(0,l.useState)(!1),d=(0,l.useRef)(null),u=(0,l.useCallback)(()=>{if(!d.current)return;let e=d.current.scrollHeight;s(e>window.innerHeight-64)},[]),m=(0,l.useCallback)(()=>{if(!d.current)return;let{scrollTop:e,scrollHeight:t,clientHeight:n}=d.current;o(1>Math.abs(t-n-e))},[]);return(0,l.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{u(),m()},100);return()=>clearTimeout(e)},[n,u,m]),(0,l.useEffect)(()=>(window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)),[u]),(0,l.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener("scroll",m),()=>e.removeEventListener("scroll",m)},[m]),(0,r.jsxs)("div",{className:"relative md:hidden",children:[(0,r.jsx)(g,{showExpandButton:a,isAtBottom:i}),(0,r.jsx)("div",{ref:d,className:"px-2 pt-2 pb-3 space-y-1 sm:px-3 shadow-lg max-h-[calc(100vh-64px)] overflow-y-auto",children:c.map(e=>(0,r.jsx)(p,{item:e,onLinkClick:t},e.name))})]})});g.displayName="ScrollIndicator",p.displayName="MenuItem",x.displayName="MobileMenu";var v=n(45368);let w=e=>{let{href:t,label:n,isLast:a}=e;return(0,r.jsx)("li",{className:"list-none my-1",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.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,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 9 4-4-4-4"})}),a?(0,r.jsx)("span",{className:"ml-1 text-xs font-medium text-gray-500",children:n}):(0,r.jsx)(o(),{href:t||"#",className:"ml-1 text-xs font-medium text-gray-700 hover:text-focus",children:n})]})})},y=()=>{let e=(0,v.usePathname)(),t=null==e?void 0:e.split("/").filter(Boolean);return!t||t.length<2?null:(0,r.jsx)("nav",{className:"flex ".concat("hidden md:block"),"aria-label":"Breadcrumb",children:(0,r.jsxs)("ul",{className:"inline-flex items-center space-x-1 md:space-x-3",children:[!1,t.map((e,n)=>{let a="/".concat(t.slice(0,n+1).join("/")),s=n===t.length-1;return(0,r.jsx)(w,{href:a,label:e,isLast:s},e)})]})})};var b=n(62467);let j="Luca Dellanna",k=(0,l.memo)(()=>(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)(o(),{href:"/",className:"flex items-center font-bold text-xl","aria-label":"".concat(j," home page"),children:[(0,r.jsx)(b.default,{src:"/luca.png",alt:j,width:32,height:32,className:"rounded-full mr-2",priority:!0}),(0,r.jsx)("span",{children:j})]}),(0,r.jsx)(y,{})]}));k.displayName="NavBarLogo";let N="h-16",L=(0,l.memo)(e=>{let{isOpen:t,onClick:n}=e;return(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)("button",{onClick:n,className:"no-button-style focus:outline-hidden focus:ring-0 w-6 h-6 rounded-full bg-white shadow-none","aria-label":t?"Close menu":"Open menu","aria-expanded":t,children:t?(0,r.jsx)(a.A,{size:24}):(0,r.jsx)(s.A,{size:24})})})}),E=(0,l.memo)(()=>{let[e,t]=(0,l.useState)(!1),n=(0,l.useCallback)(()=>{t(e=>!e)},[]),a=(0,l.useCallback)(()=>{t(!1)},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("nav",{className:"fixed top-0 left-0 right-0 bg-white z-50",role:"navigation",children:[(0,r.jsx)("div",{className:"w-full max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"flex justify-between items-center ".concat(N),children:[(0,r.jsx)(k,{}),(0,r.jsx)(m,{}),(0,r.jsx)(L,{isOpen:e,onClick:n})]})}),e&&(0,r.jsx)(x,{onLinkClick:a,isOpen:e})]}),(0,r.jsx)("div",{className:N,"aria-hidden":"true"})]})});L.displayName="MobileMenuButton",E.displayName="Navbar";let S=E},69339:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,44320,23)),Promise.resolve().then(n.t.bind(n,42302,23)),Promise.resolve().then(n.t.bind(n,17966,23)),Promise.resolve().then(n.t.bind(n,10699,23)),Promise.resolve().then(n.t.bind(n,29967,23)),Promise.resolve().then(n.t.bind(n,79498,23)),Promise.resolve().then(n.bind(n,55133)),Promise.resolve().then(n.bind(n,8070)),Promise.resolve().then(n.bind(n,38065)),Promise.resolve().then(n.bind(n,41190)),Promise.resolve().then(n.bind(n,18314)),Promise.resolve().then(n.bind(n,3333)),Promise.resolve().then(n.bind(n,81746)),Promise.resolve().then(n.bind(n,43217)),Promise.resolve().then(n.bind(n,58053)),Promise.resolve().then(n.bind(n,69274)),Promise.resolve().then(n.bind(n,73031)),Promise.resolve().then(n.bind(n,33818)),Promise.resolve().then(n.t.bind(n,75489,23)),Promise.resolve().then(n.t.bind(n,89029,23)),Promise.resolve().then(n.t.bind(n,78628,23)),Promise.resolve().then(n.bind(n,44057))},71298:(e,t,n)=>{"use strict";n.d(t,{K:()=>a,c:()=>r});let r=[{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"}],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"}]},73031:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(48958),a=n(3333),s=n(62467),l=n(44094);n(83982);var i=n(23698),o=n(71298),c=n(78251);let d=()=>(0,r.jsxs)("div",{className:"mt-8 rounded-lg p-2 small-text",children:[(0,r.jsx)("p",{className:"font-semibold",children:"In the welcome email, you will find:"}),(0,r.jsxs)("ul",{className:"no-disc",children:[(0,r.jsx)("li",{children:"✔ A guide on how to bring clarity to your teams"}),(0,r.jsx)("li",{children:'✔ A 33% discount code for my book "Best Practices For Operational Excellence"'}),(0,r.jsx)("li",{children:"✔ An archive of my top Twitter threads, including the ones market with a ⭐️ that are my favorite"}),(0,r.jsx)("li",{children:'✔ A digital copy of my book "The Employee Engagement Handbook", with plenty of concrete advice to increase talent retention and commitment'})]})]}),u=()=>(0,r.jsxs)("div",{id:"logo-reel",children:[(0,r.jsx)("p",{className:"text-center text-[10px] leading-3 my-4",children:"Part of my portfolio / trusted by leaders at"}),(0,r.jsx)(l.LogoReel,{logos:o.c})]}),m=e=>{let{size:t="lg",border:n=!0}=e,l=c.Y.filter(e=>e.object.includes("Luca"));return(0,r.jsxs)("section",{className:"section-separator max-w-2xl lg:max-w-3xl p-4 md:p-8 my-12 ".concat(n?"border border-black rounded-lg shadow-lg":""),children:[(0,r.jsx)("div",{className:"mx-auto flex mb-8 items-center justify-center",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)("div",{id:"headline-and-form",children:["lg"===t?(0,r.jsx)("h2",{className:"mb-2",children:"Luca's newsletter"}):(0,r.jsx)("h3",{className:"mt-0 sm:mt-2 md:mt-4 mb-2",children:"Luca's newsletter"}),(0,r.jsx)("p",{className:"text-xs text-center italic",children:"You can expect 1-2 emails a month. Unsubscribe at any time."}),(0,r.jsx)("div",{id:"ck-form",children:(0,r.jsx)(a.ConvertkitForm,{buttonText:"Join 25,000+ readers"})})]}),(0,r.jsx)(s.default,{src:"/luca-portrait.jpg",alt:"Luca Dellanna",height:150,width:100,className:"ml-8 border border-black rounded-lg hidden md:block"})]})}),(0,r.jsx)(i.ReviewsCarousel,{width:"lg",height:"sm",reviews:l,showRatings:!1,title:"They say about Luca"}),"lg"===t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{}),(0,r.jsx)(u,{})]})]})}},75489:()=>{},78628:()=>{},81746:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(48958),a=n(83982),s=n(45368);let l="exitPopupShown",i=e=>{let{children:t,delayMs:n=15e3,onClose:i}=e,[o,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!1),m=(0,s.useRouter)(),h=(0,s.usePathname)(),f=(0,a.useCallback)(()=>{c(!1),null==i||i()},[i]),g=(0,a.useCallback)(e=>{e.target===e.currentTarget&&f()},[f]),p=(0,a.useCallback)(()=>{c(!0);try{localStorage.setItem(l,"true")}catch(e){console.warn("Unable to access localStorage:",e)}},[]);return((0,a.useEffect)(()=>{try{if(localStorage.getItem(l))return}catch(e){console.warn("Unable to access localStorage:",e)}let e=!1,t=0,r=setTimeout(()=>u(!0),n),a=t=>{t.clientY<=0&&!e&&d&&(e=!0,p())},s=()=>{!e&&d&&(e=!0,p(),h&&m.push(h))},i=()=>{let n=window.scrollY;n>t&&n>300&&!e&&d&&(e=!0,p()),t=n<=0?0:n},o=t=>{t.touches[0].clientY<10&&!e&&d&&(e=!0,p())};return document.addEventListener("mouseleave",a),window.addEventListener("popstate",s),document.addEventListener("scroll",i),document.addEventListener("touchmove",o),()=>{clearTimeout(r),document.removeEventListener("mouseleave",a),window.removeEventListener("popstate",s),document.removeEventListener("scroll",i),document.removeEventListener("touchmove",o)}},[d,n,h,m,p]),o)?(0,r.jsx)("div",{id:"exit-popup",className:"fixed inset-0 bg-black bg-opacity-60 flex items-center justify-center z-50",onClick:g,role:"dialog","aria-modal":"true","aria-label":"Exit popup",children:(0,r.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,r.jsx)("button",{onClick:f,className:"absolute top-2 right-2 text-gray-500 hover:text-gray-700 transition-colors","aria-label":"Close popup",children:(0,r.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),t]})}):null}},89029:()=>{}},e=>{e.O(0,[1654,5491,8262,3758,4320,2642,3721,1639,5948,3873,4415,485,7942,6293,7358],()=>e(e.s=69339)),_N_E=e.O()}]);