!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="656495c6-35b8-4c98-afc6-f22b4ed81e11",e._sentryDebugIdIdentifier="sentry-dbid-656495c6-35b8-4c98-afc6-f22b4ed81e11")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{18375:function(e,n,t){Promise.resolve().then(t.bind(t,34689)),Promise.resolve().then(t.bind(t,69106)),Promise.resolve().then(t.bind(t,74890)),Promise.resolve().then(t.bind(t,32845)),Promise.resolve().then(t.bind(t,25198)),Promise.resolve().then(t.bind(t,62388)),Promise.resolve().then(t.bind(t,92509)),Promise.resolve().then(t.bind(t,43366)),Promise.resolve().then(t.bind(t,49872)),Promise.resolve().then(t.bind(t,82216)),Promise.resolve().then(t.bind(t,17450)),Promise.resolve().then(t.bind(t,834)),Promise.resolve().then(t.bind(t,36306)),Promise.resolve().then(t.bind(t,62275)),Promise.resolve().then(t.bind(t,44811)),Promise.resolve().then(t.bind(t,53812)),Promise.resolve().then(t.bind(t,50815)),Promise.resolve().then(t.bind(t,39569)),Promise.resolve().then(t.bind(t,26832)),Promise.resolve().then(t.bind(t,24466)),Promise.resolve().then(t.bind(t,48812)),Promise.resolve().then(t.bind(t,16170)),Promise.resolve().then(t.bind(t,72754)),Promise.resolve().then(t.bind(t,56141)),Promise.resolve().then(t.bind(t,39001)),Promise.resolve().then(t.bind(t,56384)),Promise.resolve().then(t.bind(t,40626)),Promise.resolve().then(t.bind(t,99461)),Promise.resolve().then(t.bind(t,74204)),Promise.resolve().then(t.bind(t,73385)),Promise.resolve().then(t.bind(t,86941)),Promise.resolve().then(t.bind(t,13839)),Promise.resolve().then(t.bind(t,83237)),Promise.resolve().then(t.bind(t,50501)),Promise.resolve().then(t.bind(t,7916)),Promise.resolve().then(t.bind(t,21443)),Promise.resolve().then(t.bind(t,69767)),Promise.resolve().then(t.bind(t,67182)),Promise.resolve().then(t.bind(t,85572)),Promise.resolve().then(t.t.bind(t,90037,23)),Promise.resolve().then(t.t.bind(t,65498,23)),Promise.resolve().then(t.t.bind(t,23683,23)),Promise.resolve().then(t.t.bind(t,2830,23)),Promise.resolve().then(t.t.bind(t,57963,23)),Promise.resolve().then(t.t.bind(t,26296,23)),Promise.resolve().then(t.bind(t,53711)),Promise.resolve().then(t.bind(t,51490)),Promise.resolve().then(t.bind(t,66347)),Promise.resolve().then(t.bind(t,37367)),Promise.resolve().then(t.t.bind(t,26951,23)),Promise.resolve().then(t.t.bind(t,37493,23)),Promise.resolve().then(t.t.bind(t,71852,23))},20094:function(e,n,t){"use strict";t.d(n,{ReviewsCarousel:function(){return h}});var s=t(44150),o=t(85419),r=t(45694),l=t(99436),i=t(46384),a=t(26658);let c=e=>{let{rating:n}=e;return(0,s.jsx)("div",{className:"flex mx-auto mb-2",children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,s.jsx)(a.Z,{className:"w-5 h-5 ".concat(t{let{review:n,showRating:t,showBorder:o=!0}=e;return(0,s.jsx)(r.w,{className:"w-64 h-full ".concat(o?"border border-slate-500 shadow-md":"shadow-none"),children:(0,s.jsxs)(l.G,{children:[t&&n.rating&&(0,s.jsx)(c,{rating:n.rating}),(0,s.jsxs)("p",{className:"mb-4 text-center text-tiny",children:['"',n.content,'"']}),(0,s.jsxs)("div",{className:"flex mx-auto items-center align-bottom",children:[n.author.image&&(0,s.jsx)(i.h,{size:"sm",src:n.author.image,className:"border border-slate-400"}),(0,s.jsxs)("div",{className:"ml-2",children:[(0,s.jsx)("p",{className:"my-0 text-tiny",children:n.author.name}),n.author.description&&(0,s.jsx)("p",{className:"my-0 text-[10px] leading-3 text-slate-400",children:n.author.description})]})]})]})})},h=e=>{let{reviews:n,showRatings:t,title:r="Some reviews",width:l,height:i}=e,a=(0,o.useRef)(null),[c,h]=(0,o.useState)(!1),[m,u]=(0,o.useState)(!0),[b,f]=(0,o.useState)(!1),[v,x]=(0,o.useState)(0),[g,p]=(0,o.useState)(0),w=(0,o.useCallback)(()=>{if(a.current){let{scrollLeft:e,scrollWidth:n,clientWidth:t}=a.current;h(e>0),u(e{a.current&&a.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})},[]),P=(0,o.useCallback)(e=>{a.current&&(f(!0),x(e.pageX-a.current.offsetLeft),p(a.current.scrollLeft))},[]),N=(0,o.useCallback)(()=>{f(!1)},[]),y=(0,o.useCallback)(e=>{if(!b||!a.current)return;e.preventDefault();let n=(e.pageX-a.current.offsetLeft-v)*2;a.current.scrollLeft=g-n},[b,v,g]);return(0,s.jsxs)("section",{className:"sm"===i?"mt-0 mb-0 p-0":"",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold mb-4",children:r}),(0,s.jsxs)("div",{className:"w-full relative",children:[(0,s.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"===l?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(n.length<2?"flex justify-center":""),ref:a,onScroll:w,onMouseDown:P,onMouseUp:N,onMouseLeave:N,onMouseMove:y,children:(0,s.jsx)("div",{className:"flex ".concat(n.length<3&&"lg"===l?"md:justify-center":""),children:n.map((e,o)=>(0,s.jsx)("div",{className:"w-64 flex-shrink-0 ".concat(n.length<2?"":"mr-8"),children:(0,s.jsx)(d,{review:e,showRating:t})},o))})}),(0,s.jsx)("button",{onClick:()=>j("left"),className:"absolute left-0 top-0 bottom-0 w-16 bg-transparent\n no-button-style shadow-none focus:ring-0 focus:outline-none active:bg-transparent border-none focus:border-none outline-none\n ".concat(c?"bg-gradient-to-r from-white to-transparent":"pointer-events-none"),"aria-label":"Scroll left"}),(0,s.jsx)("button",{onClick:()=>j("right"),className:"absolute right-0 top-0 bottom-0 w-16 bg-transparent\n no-button-style shadow-none focus:ring-0 focus:outline-none active:bg-transparent border-none focus:border-none outline-none\n ".concat(m?"bg-gradient-to-l from-white to-transparent":"pointer-events-none"),"aria-label":"Scroll right"})]})]})}},51490:function(e,n,t){"use strict";var s=t(44150),o=t(85419),r=t(37917);n.default=e=>{let{children:n}=e,[t,l]=(0,o.useState)(!1),[i,a]=(0,o.useState)(!1),[c,d]=(0,o.useState)(!1),h=(0,r.useRouter)();(0,o.useEffect)(()=>{d(!0)},[]),(0,o.useEffect)(()=>{if(!c||localStorage.getItem("exitPopupShown"))return;let e=setTimeout(()=>{a(!0)},15e3),n=!1,t=0,s=e=>{e.clientY<=0&&!n&&i&&m()},o=()=>{!n&&i&&(m(),h.push(window.location.pathname))},r=()=>{let e=window.scrollY;e>t&&e>300&&!n&&i&&m(),t=e<=0?0:e},d=e=>{e.touches[0].clientY<10&&!n&&i&&m()},m=()=>{n=!0,l(!0),localStorage.setItem("exitPopupShown","true")};return document.addEventListener("mouseleave",s),window.addEventListener("popstate",o),window.addEventListener("scroll",r),document.addEventListener("touchmove",d),()=>{clearTimeout(e),document.removeEventListener("mouseleave",s),window.removeEventListener("popstate",o),window.removeEventListener("scroll",r),document.removeEventListener("touchmove",d)}},[h,i,c]);let m=()=>{l(!1)};return(0,s.jsx)(s.Fragment,{children:t&&(0,s.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&&m()},children:(0,s.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,s.jsx)("button",{onClick:m,className:"no-button-style fixed top-2 right-2 text-white bg-transparent items-center justify-right shadow-none",children:(0,s.jsx)("span",{className:"",children:"Close"})}),n]})})})}},66347:function(e,n,t){"use strict";var s=t(44150),o=t(85419),r=t(14800),l=t(28070);let i=new r.Gr({apiHost:"https://cdn.growthbook.io",clientKey:"sdk-Atx3g5VQeoYXjqsR",decryptionKey:l.env.NEXT_PUBLIC_GROWTHBOOK_DECRYPTION_KEY,trackingCallback:(e,n)=>{console.log("Viewed Experiment",{experimentId:e.key,variationId:n.key})}});n.default=e=>{let{children:n}=e;return(0,o.useEffect)(()=>{i.init().then(()=>{i.setURL(window.location.href),i.setAttributes({id:1048576*Math.random(),loggedIn:!1,employee:!1,browser:navigator.userAgent})})},[]),(0,s.jsx)(r.Ny,{growthbook:i,children:n})}},37367:function(e,n,t){"use strict";t.d(n,{default:function(){return x}});var s=t(44150),o=t(85419),r=t(22842),l=t(68370),i=t(97270),a=t(75367),c=t(37917),d=()=>{let e=(0,c.usePathname)(),n=null==e?void 0:e.split("/").filter(e=>""!==e);return(0,s.jsx)(s.Fragment,{children:n&&n.length>=2&&(0,s.jsx)("nav",{className:"flex ".concat("hidden md:block"),"aria-label":"Breadcrumb",children:(0,s.jsxs)("ul",{className:"inline-flex items-center space-x-1 md:space-x-3",children:[!1,n.map((e,t)=>{let o="/".concat(n.slice(0,t+1).join("/")),r=t===n.length-1;return(0,s.jsx)("li",{className:"list-none my-1",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.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,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 9 4-4-4-4"})}),r?(0,s.jsx)("span",{className:"ml-1 text-tiny font-medium text-gray-500",children:e}):(0,s.jsx)(i.default,{href:o,className:"ml-1 text-tiny font-medium text-gray-700 hover:text-blue-600",children:e})]})},e)})]})})})};let h=()=>(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsxs)(i.default,{href:"/",className:"flex items-center font-bold text-xl",children:[(0,s.jsx)(a.default,{src:"/luca.png",alt:"Luca Dellanna",width:32,height:32,className:"rounded-full mr-2"}),(0,s.jsx)("span",{children:"Luca Dellanna"})]}),(0,s.jsx)(d,{})]}),m=[{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,s.jsx)("div",{className:"hidden md:flex space-x-4",children:m.map(e=>(0,s.jsxs)("div",{className:"group relative",children:[(0,s.jsx)(i.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,s.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,s.jsx)(i.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 b=t(12631),f=t(59751);let v=e=>{let{onLinkClick:n,isOpen:t}=e,[r,l]=(0,o.useState)(!1),[a,c]=(0,o.useState)(!1),d=(0,o.useRef)(null),h=(0,o.useCallback)(()=>{if(d.current){console.log("Checking height...");let e=d.current.scrollHeight;console.log("Menu height:",e);let n=window.innerHeight;console.log("Viewport height:",n);let t=e>n-64;console.log("Should show expand button:",t),l(t)}else console.log("menuRef.current is null")},[]),u=(0,o.useCallback)(()=>{if(d.current){let{scrollTop:e,scrollHeight:n,clientHeight:t}=d.current;c(1>Math.abs(n-t-e))}},[]);return(0,o.useEffect)(()=>{if(t){console.log("Menu opened, scheduling height check");let e=setTimeout(()=>{console.log("Running scheduled height check"),h(),u()},100);return()=>clearTimeout(e)}},[t,h,u]),(0,o.useEffect)(()=>(console.log("Adding resize event listener"),window.addEventListener("resize",h),()=>{console.log("Removing resize event listener"),window.removeEventListener("resize",h)}),[h]),(0,o.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener("scroll",u),()=>e.removeEventListener("scroll",u)},[u]),(0,s.jsxs)("div",{className:"relative md:hidden",children:[(0,s.jsx)("div",{className:"absolute bottom-2 right-2 text-gray-400 ".concat(r&&!a?"":"hidden"),children:(0,s.jsx)(b.Z,{})}),(0,s.jsx)("div",{className:"absolute top-2 right-2 text-gray-400 ".concat(r&&a?"":"hidden"),children:(0,s.jsx)(f.Z,{})}),(0,s.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:m.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)(i.default,{href:e.href,className:"block px-3 py-2 rounded-md ".concat(e.isBold?"font-bold":""),onClick:n,children:e.name}),e.links&&(0,s.jsx)("div",{className:"pl-4",children:e.links.map(e=>(0,s.jsx)(i.default,{href:e.href,className:"block px-3 py-2 rounded-md text-sm ".concat(e.isBold?"font-bold":""),onClick:n,children:e.name},e.name))})]},e.name))})]})};var x=()=>{let[e,n]=(0,o.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"fixed top-0 left-0 right-0 bg-white z-50",children:[(0,s.jsx)("div",{className:"w-full max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,s.jsx)(h,{}),(0,s.jsx)(u,{}),(0,s.jsx)("div",{className:"md:hidden",children:(0,s.jsx)("button",{onClick:()=>{n(!e)},className:"no-button-style focus:outline-none focus:ring-0 w-6 h-6 rounded-full bg-white shadow-none",children:e?(0,s.jsx)(r.Z,{size:24}):(0,s.jsx)(l.Z,{size:24})})})]})}),e&&(0,s.jsx)(v,{onLinkClick:()=>{n(!1)},isOpen:e})]}),(0,s.jsx)("div",{className:"h-16"})]})}},26951:function(){},37493:function(){},71852:function(){}},function(e){e.O(0,[357,8007,4939,3986,3410,2158,2066,6264,6212,1729,9398,6185,2369,3711,435,247,6921,1744],function(){return e(e.s=18375)}),_N_E=e.O()}]);