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]="3cddcf00-a028-4b63-bd20-927668d1b229",e._sentryDebugIdIdentifier="sentry-dbid-3cddcf00-a028-4b63-bd20-927668d1b229")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3746,7177],{17774:(e,t,n)=>{Promise.resolve().then(n.bind(n,70147)),Promise.resolve().then(n.bind(n,64164)),Promise.resolve().then(n.t.bind(n,85042,23)),Promise.resolve().then(n.t.bind(n,21562,23)),Promise.resolve().then(n.t.bind(n,36471,23)),Promise.resolve().then(n.t.bind(n,45667,23)),Promise.resolve().then(n.t.bind(n,9502,23)),Promise.resolve().then(n.bind(n,60322)),Promise.resolve().then(n.bind(n,3746)),Promise.resolve().then(n.bind(n,37595)),Promise.resolve().then(n.bind(n,48446)),Promise.resolve().then(n.bind(n,6040)),Promise.resolve().then(n.bind(n,71213)),Promise.resolve().then(n.bind(n,3725)),Promise.resolve().then(n.t.bind(n,64937,23)),Promise.resolve().then(n.t.bind(n,70861,23)),Promise.resolve().then(n.t.bind(n,10220,23)),Promise.resolve().then(n.bind(n,94778))},86524:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(3896),s=n(52308);let r=e=>{let{side:t,className:n,width:s}=e;return(0,a.jsx)("div",{className:"".concat(n," ").concat(s," ").concat(t,"-0 bg-gradient-to-").concat("left"===t?"r":"l"," from-white to-transparent"),"aria-hidden":"true"})},l=(0,s.memo)(function(e){let{width:t}=e,n="absolute top-0 bottom-0 pointer-events-none";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r,{side:"left",className:n,width:t}),(0,a.jsx)(r,{side:"right",className:n,width:t})]})})},87041:(e,t,n)=>{"use strict";n.d(t,{LogoReel:()=>d});var a=n(3896),s=n(52308),r=n(86524),l=n(32944),i=n(70607);let o={width:100,height:50},c=(0,s.memo)(function(e){let{logo:t,index:n}=e;return(0,a.jsx)("div",{className:"flex-shrink-0 mx-4",children:(0,a.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,s.memo)(function(e){let{logos:t}=e,n=(0,s.useRef)(null);if(!Array.isArray(t)||0===t.length)return null;let l=Array.from({length:4},()=>t).flat(),d=o.width*t.length*4,m=(0,i.A)({maxWidth:d}),u=(0,s.useCallback)(()=>{let e=n.current;if(!e)return;let t=e.scrollWidth;e.style.setProperty("--scroll-width","".concat(t,"px"))},[]);return(0,s.useEffect)(()=>{var e;u();let t=()=>{requestAnimationFrame(u)};window.addEventListener("resize",t);let a=null===(e=n.current)||void 0===e?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(u),()=>window.removeEventListener("resize",t)},[u]),(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:n,style:{transform:"scale(".concat(m,")"),transformOrigin:"left center"},role:"marquee","aria-label":"Logo reel",children:l.map((e,t)=>(0,a.jsx)(c,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),(0,a.jsx)(r.A,{width:"w-24"})]})})},87054:(e,t,n)=>{"use strict";n.d(t,{ReviewsCarousel:()=>d});var a=n(3896),s=n(52308),r=n(99500);let l=e=>{let[t,n]=(0,s.useState)(!1),a=(0,s.useRef)({x:0,scrollLeft:0}),r=(0,s.useCallback)(t=>{if(!e.current)return;n(!0);let s="touches"in t?t.touches[0].clientX:t.clientX;a.current={x:s,scrollLeft:e.current.scrollLeft}},[e]),l=(0,s.useCallback)(()=>{n(!1)},[]),i=(0,s.useCallback)(n=>{if(!t||!e.current)return;n.preventDefault();let s="touches"in n?n.touches[0].clientX:n.clientX,r=a.current.x-s;e.current.scrollLeft=a.current.scrollLeft+r},[t,e]);return{isDragging:t,handleDragStart:r,handleDragEnd:l,handleDragMove:i}},i={SCROLL_AMOUNT:300},o=(0,s.memo)(function(e){let{review:t,showRating:n,isLast:s}=e;return(0,a.jsx)("div",{className:"w-48 md:w-64 flex-shrink-0 ".concat(s?"":"mr-4 md:mr-8"),children:(0,a.jsx)(r.ReviewCard,{review:t,showRating:n})})}),c=(0,s.memo)(function(e){let{direction:t,show:n,onClick:s}=e;return(0,a.jsx)("button",{onClick:s,className:"absolute ".concat(t,"-0 top-0 bottom-0 w-16 bg-transparent\n no-button-style shadow-none focus:ring-0 focus:outline-none active:bg-transparent \n border-none focus:border-none outline-none\n ").concat(n?"bg-gradient-".concat("left"===t?"to-r":"to-l"," from-white to-transparent"):"pointer-events-none"),"aria-label":"Scroll ".concat(t)})}),d=(0,s.memo)(function(e){let{reviews:t,showRatings:n,title:r="Some reviews",width:d,height:m}=e,u=(0,s.useRef)(null),[h,x]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!0),p=(0,s.useCallback)(()=>{let e=u.current;if(!e)return;let{scrollLeft:t,scrollWidth:n,clientWidth:a}=e;x(t>0),g(t{let t=u.current;if(!t)return;let n="left"===e?-i.SCROLL_AMOUNT:i.SCROLL_AMOUNT;t.scrollBy({left:n,behavior:"smooth"})},[]),{isDragging:v,handleDragStart:w,handleDragEnd:y,handleDragMove:j}=l(u),N=(0,s.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),j(e))},[j]),k=(0,s.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),w(e))},[w]),L=(0,s.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),y())},[y]),C=t.length<2,E=t.length<3&&"lg"===d;return(0,a.jsxs)("section",{className:"".concat("sm"===m?"mt-0 mb-0 p-0":""," section-separator"),children:[(0,a.jsx)("h3",{className:"text-2xl font-bold mb-4",children:r}),(0,a.jsxs)("div",{className:"w-full relative",children:[(0,a.jsx)("div",{className:"mx-auto mb-4 relative overflow-x-auto scrollbar-hide select-none\n max-w-[300px] sm:max-w-[380px] md:max-w-[420px] ".concat("lg"===d?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(C?"flex justify-center":""),ref:u,onScroll:p,onMouseDown:k,onMouseUp:L,onMouseLeave:L,onMouseMove:N,onTouchStart:k,onTouchEnd:L,onTouchMove:N,children:(0,a.jsx)("div",{className:"flex ".concat(E?"md:justify-center":""),children:t.map((e,s)=>(0,a.jsx)(o,{review:e,showRating:n,isLast:s===t.length-1},"review-".concat(s)))})}),(0,a.jsx)(c,{direction:"left",show:h,onClick:()=>b("left")}),(0,a.jsx)(c,{direction:"right",show:f,onClick:()=>b("right")})]})]})})},60322:(e,t,n)=>{"use strict";n.d(t,{ContactCallout:()=>m});var a=n(3896),s=n(52308),r=n(70744),l=n.n(r),i=n(32944),o=n(71796);let c=(0,s.memo)(e=>{let{children:t,className:n,border:s=!1}=e;return(0,a.jsxs)("div",{className:(0,o.QP)("block md:flex md:flex-row md:justify-around items-center space-x-8",s&&"border border-gray-400 p-4 rounded-lg shadow-md",n),children:[(0,a.jsx)("div",{className:"max-w-3xl flex-2 mx-0 text-center md:text-justify prose",children:t}),(0,a.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,s.memo)(e=>{let{className:t=""}=e;return(0,a.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,a.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-blue-600 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors","aria-label":"Send email to Luca",children:"Email Luca"}),(0,a.jsx)("span",{className:"italic mb-0 text-sm text-gray-600","aria-hidden":"true",children:"or"}),(0,a.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 m=(0,s.memo)(e=>{let{className:t=""}=e;return(0,a.jsx)("section",{className:"flex flex-col items-center ".concat(t),"aria-labelledby":"contact-heading",children:(0,a.jsxs)(c,{border:!0,className:"items-center",children:[(0,a.jsx)("h2",{id:"contact-heading",className:"text-2xl !my-0 font-bold text-gray-900",children:"Contact Luca"}),(0,a.jsx)("p",{className:"text-lg text-gray-700 max-w-prose",children:"Talk with Luca to see if he can help you"}),(0,a.jsx)(d,{})]})})});m.displayName="ContactCallout"},3746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var a=n(3896),s=n(80890),r=n(60157),l=n(52308),i=n(32944),o=n(87041),c=n(87054),d=n(70957),m=n(58744),u=n(88166),h=n(57613),x=n(75403),f=n(29515);let g=x.z.object({email:x.z.string().email("Please enter a valid email address")}),p=()=>(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'})]})]}),b=()=>(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)(o.LogoReel,{logos:d.c})]}),v=e=>{var t;let{size:n="lg"}=e,o=(0,h.useRouter)(),{handleSubmit:d,formState:{errors:x,isSubmitting:v},register:w,setError:y}=(0,u.mN)({resolver:(0,f.u)(g),defaultValues:{email:""}}),j=(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)o.push("https://luca-dellanna.com/welcome");else throw Error("Subscription failed")}catch(e){console.error("Error:",e),y("email",{type:"manual",message:e instanceof Error?e.message:"An error occurred. Please try again later."})}},[o,y]),N=m.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 border border-black rounded-lg shadow-lg",children:[(0,a.jsx)("form",{onSubmit:d(j),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"===n?(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-tiny text-center italic",children:"You can expect 1-2 emails a month. Unsubscribe at any time."}),(0,a.jsxs)("div",{id:"ck-form",className:"flex flex-col items-center sm:flex-row gap-4 mt-6",children:[(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(s.r,{...w("email"),type:"email",placeholder:"Enter your email",isRequired:!0,className:"flex-grow",isDisabled:v,errorMessage:null===(t=x.email)||void 0===t?void 0:t.message,isInvalid:!!x.email,onFocus:e=>e.stopPropagation(),onBlur:e=>e.stopPropagation()})}),(0,a.jsx)(r.T,{type:"submit",className:"primary !px-6 py-2 w-[fit-content]",isLoading:v,isDisabled:v,children:(0,a.jsx)("span",{className:"mx-6 whitespace-nowrap",children:"Join 25,000+ readers"})})]})]}),(0,a.jsx)(i.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)(c.ReviewsCarousel,{width:"lg",height:"sm",reviews:N,showRatings:!1,title:"They say about Luca"}),"lg"===n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p,{}),(0,a.jsx)(b,{})]})]})}},37595:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var a=n(3896),s=n(52308),r=n(57613);let l="exitPopupShown",i=e=>{let{children:t,delayMs:n=15e3,onClose:i}=e,[o,c]=(0,s.useState)(!1),[d,m]=(0,s.useState)(!1),u=(0,r.useRouter)(),h=(0,s.useCallback)(()=>{c(!1),null==i||i()},[i]),x=(0,s.useCallback)(e=>{e.target===e.currentTarget&&h()},[h]),f=(0,s.useCallback)(()=>{c(!0);try{localStorage.setItem(l,"true")}catch(e){console.warn("Unable to access localStorage:",e)}},[]);return((0,s.useEffect)(()=>{try{if(localStorage.getItem(l))return}catch(e){console.warn("Unable to access localStorage:",e)}let e=!1,t=0,a=setTimeout(()=>m(!0),n),s=t=>{t.clientY<=0&&!e&&d&&(e=!0,f())},r=()=>{!e&&d&&(e=!0,f(),u.push(window.location.pathname))},i=()=>{let n=window.scrollY;n>t&&n>300&&!e&&d&&(e=!0,f()),t=n<=0?0:n},o=t=>{t.touches[0].clientY<10&&!e&&d&&(e=!0,f())};return document.addEventListener("mouseleave",s),window.addEventListener("popstate",r),document.addEventListener("scroll",i),document.addEventListener("touchmove",o),()=>{clearTimeout(a),document.removeEventListener("mouseleave",s),window.removeEventListener("popstate",r),document.removeEventListener("scroll",i),document.removeEventListener("touchmove",o)}},[d,n,u,f]),o)?(0,a.jsx)("div",{id:"exit-popup",className:"fixed inset-0 bg-black bg-opacity-60 flex items-center justify-center z-50",onClick:x,role:"dialog","aria-modal":"true","aria-label":"Exit popup",children:(0,a.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,a.jsx)("button",{onClick:h,className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700 transition-colors","aria-label":"Close popup",children:(0,a.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),t]})}):null}},48446:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var a=n(3896),s=n(52308),r=n(70744),l=n.n(r);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,s.memo)(function(e){let{header:t,links:n}=e;return(0,a.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,a.jsx)("h3",{className:"text-base font-bold text-white",children:t}),n.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)(l(),{href:e.href,className:"mx-2 text-small no-underline text-gray-400 hover:text-white transition-colors",children:e.name}),e.links&&(0,a.jsx)("div",{className:"flex flex-col mt-2 space-y-2",children:e.links.map(e=>(0,a.jsx)(l(),{href:e.href,className:"mx-2 text-tiny no-underline text-gray-500 hover:text-white transition-colors",children:e.name},e.href))})]},e.href))]})}),c=(0,s.memo)(function(){let e=new Date().getFullYear();return(0,a.jsxs)("footer",{className:"bg-gray-800 text-white py-12 mt-12",children:[(0,a.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,a.jsx)(o,{header:"Links",links:i.website}),(0,a.jsx)(o,{header:"Luca's services",links:i.services}),(0,a.jsx)(o,{header:"Luca's socials",links:i.social})]}),(0,a.jsxs)("div",{className:"text-gray-400 text-tiny text-center mt-8",children:["\xa9 ",e," Luca Dell'Anna. All rights reserved."]})]})})},6040:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});var a=n(42363),s=n(52308);let r=function(){let e=(0,s.useRef)(new Set),t=(0,s.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 s={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),a.wd("Image 404: ".concat(t.src),{level:"error",extra:{...s},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,s.useEffect)(()=>{let n=e=>{let n=e.target;n instanceof HTMLImageElement&&t(n)};return document.addEventListener("error",n,{capture:!0,passive:!0}),()=>{document.removeEventListener("error",n,!0),e.current.clear()}},[t]),null}},71213:(e,t,n)=>{"use strict";n.d(t,{default:()=>E});var a=n(3896),s=n(96089),r=n(15944),l=n(52308),i=n(70744),o=n.n(i);let c=[{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}]}],d=(0,l.memo)(e=>{let{item:t,isLast:n}=e;return(0,a.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-gray-700"," transition-colors duration-300 ").concat(t.isBold?"font-bold":""),children:t.name})}),m=(0,l.memo)(e=>{let{links:t}=e;return(0,a.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,a.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))})}),u=(0,l.memo)(()=>(0,a.jsx)("nav",{className:"hidden md:flex space-x-4","aria-label":"Desktop navigation",children:c.map((e,t)=>(0,a.jsxs)("div",{className:"group relative",children:[(0,a.jsx)(d,{item:e,isLast:t===c.length-1}),e.links&&(0,a.jsx)(m,{links:e.links})]},e.name))}));d.displayName="NavLink",m.displayName="DropdownMenu",u.displayName="DesktopMenu";var h=n(56621),x=n(55600);let f=(0,l.memo)(e=>{let{showExpandButton:t,isAtBottom:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute bottom-2 right-2 text-gray-400 ".concat(t&&!n?"":"hidden"),children:(0,a.jsx)(h.A,{})}),(0,a.jsx)("div",{className:"absolute top-2 right-2 text-gray-400 ".concat(t&&n?"":"hidden"),children:(0,a.jsx)(x.A,{})})]})}),g=(0,l.memo)(e=>{let{item:t,onLinkClick:n}=e;return(0,a.jsxs)("div",{children:[(0,a.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,a.jsx)("div",{className:"pl-4",children:t.links.map(e=>(0,a.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))})]})}),p=(0,l.memo)(e=>{let{onLinkClick:t,isOpen:n}=e,[s,r]=(0,l.useState)(!1),[i,o]=(0,l.useState)(!1),d=(0,l.useRef)(null),m=(0,l.useCallback)(()=>{if(d.current)r(d.current.scrollHeight>window.innerHeight-64)},[]),u=(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(()=>{m(),u()},100);return()=>clearTimeout(e)},[n,m,u]),(0,l.useEffect)(()=>(window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)),[m]),(0,l.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener("scroll",u),()=>e.removeEventListener("scroll",u)},[u]),(0,a.jsxs)("div",{className:"relative md:hidden",children:[(0,a.jsx)(f,{showExpandButton:s,isAtBottom:i}),(0,a.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,a.jsx)(g,{item:e,onLinkClick:t},e.name))})]})});f.displayName="ScrollIndicator",g.displayName="MenuItem",p.displayName="MobileMenu";var b=n(57613);let v=e=>{let{href:t,label:n,isLast:s}=e;return(0,a.jsx)("li",{className:"list-none my-1",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.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,a.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 9 4-4-4-4"})}),s?(0,a.jsx)("span",{className:"ml-1 text-tiny font-medium text-gray-500",children:n}):(0,a.jsx)(o(),{href:t||"#",className:"ml-1 text-tiny font-medium text-gray-700 hover:text-blue-600",children:n})]})})},w=()=>{let e=(0,b.usePathname)(),t=null==e?void 0:e.split("/").filter(Boolean);return!t||t.length<2?null:(0,a.jsx)("nav",{className:"flex ".concat("hidden md:block"),"aria-label":"Breadcrumb",children:(0,a.jsxs)("ul",{className:"inline-flex items-center space-x-1 md:space-x-3",children:[!1,t.map((e,n)=>{let s="/".concat(t.slice(0,n+1).join("/")),r=n===t.length-1;return(0,a.jsx)(v,{href:s,label:e,isLast:r},e)})]})})};var y=n(32944);let j="Luca Dellanna",N=(0,l.memo)(()=>(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)(o(),{href:"/",className:"flex items-center font-bold text-xl","aria-label":"".concat(j," home page"),children:[(0,a.jsx)(y.default,{src:"/luca.png",alt:j,width:32,height:32,className:"rounded-full mr-2",priority:!0}),(0,a.jsx)("span",{children:j})]}),(0,a.jsx)(w,{})]}));N.displayName="NavBarLogo";let k="h-16",L=(0,l.memo)(e=>{let{isOpen:t,onClick:n}=e;return(0,a.jsx)("div",{className:"md:hidden",children:(0,a.jsx)("button",{onClick:n,className:"no-button-style focus:outline-none 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,a.jsx)(s.A,{size:24}):(0,a.jsx)(r.A,{size:24})})})}),C=(0,l.memo)(()=>{let[e,t]=(0,l.useState)(!1),n=(0,l.useCallback)(()=>{t(e=>!e)},[]),s=(0,l.useCallback)(()=>{t(!1)},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("nav",{className:"fixed top-0 left-0 right-0 bg-white z-50",role:"navigation",children:[(0,a.jsx)("div",{className:"w-full max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"flex justify-between items-center ".concat(k),children:[(0,a.jsx)(N,{}),(0,a.jsx)(u,{}),(0,a.jsx)(L,{isOpen:e,onClick:n})]})}),e&&(0,a.jsx)(p,{onLinkClick:s,isOpen:e})]}),(0,a.jsx)("div",{className:k,"aria-hidden":"true"})]})});L.displayName="MobileMenuButton",C.displayName="Navbar";let E=C},3725:(e,t,n)=>{"use strict";n.d(t,{RandomSelector:()=>r});var a=n(3896),s=n(52308);function r(e){let{children:t}=e,n=(0,s.useMemo)(()=>{let e=s.Children.toArray(t),n=Math.floor(Math.random()*e.length);return e[n]},[t]);return(0,a.jsx)(a.Fragment,{children:n})}},70957:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,c:()=>a});let a=[{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"}],s=[{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"}]},70607:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(52308);function s(e){let{maxWidth:t,minScale:n=.1,debounceMs:s=100}=e,[r,l]=(0,a.useState)(1),i=(0,a.useRef)(void 0),o=(0,a.useCallback)(()=>{l(Math.min(.95,Math.max(n,window.innerWidth/t)))},[t,n]);return(0,a.useEffect)(()=>{let e=()=>i.current&&clearTimeout(i.current),t=()=>{e(),i.current=setTimeout(o,s)};return o(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[o,s]),r}},94778:(e,t,n)=>{"use strict";n.d(t,{Providers:()=>r});var a=n(3896),s=n(41372);function r(e){let{children:t}=e;return(0,a.jsx)(s.M,{children:t})}},64937:()=>{},70861:()=>{},10220:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[8155,4186,5570,6831,1796,4555,7873,157,7931,890,9509,6193,2509,3519,8016,7410,7358],()=>t(17774)),_N_E=e.O()}]);