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]="3b1e818a-22c1-4de0-ab08-fc6f462c3655",e._sentryDebugIdIdentifier="sentry-dbid-3b1e818a-22c1-4de0-ab08-fc6f462c3655")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3031,7581],{173:(e,t,s)=>{"use strict";function r(e,t){let s=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(!s)return console.warn("Attempted to navigate to invalid URL:",t),!1;try{return e.push(s),!0}catch(e){return console.error("Navigation failed:",e),!1}}s.d(t,{LI:()=>r})},3333:(e,t,s)=>{"use strict";s.d(t,{ConvertkitForm:()=>u});var r=s(48958),a=s(83982),l=s(53022),n=s(173),o=s(14398),i=s(47126),c=s(45368),d=s(56014),m=s(51851),x=s(78262);let h=d.Ik({email:d.Yj().email("Please enter a valid email address")});function u(e){let{buttonText:t="Join 25,000+ readers"}=e,s=(0,c.useRouter)(),{sendEvent:d}=(0,o.s)(),{handleSubmit:u,formState:{errors:p,isSubmitting:f},register:g,setError:b,clearErrors:y}=(0,i.mN)({resolver:(0,m.u)(h),mode:"onSubmit",defaultValues:{email:""}}),j=(0,a.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)d({name:"subscribed_to_newsletter"}),(0,n.LI)(s,"https://luca-dellanna.com/welcome");else throw Error("Subscription failed")}catch(e){console.error("Error:",e),b("email",{type:"manual",message:e instanceof Error?e.message:"An error occurred. Please try again later."});return}},[s,b,d]);return(0,r.jsxs)("form",{onSubmit:u(j),className:"flex flex-col items-center sm:flex-row gap-4 mt-6",role:"form",children:[(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("input",{...g("email",{onChange:e=>{p.email&&y("email")}}),type:"email",placeholder:"Enter your email",className:(0,x.QP)("grow text-sm rounded-lg px-4 py-2 border",p.email?"border-red-500":"border-gray-300",f&&"opacity-50 cursor-not-allowed"),disabled:f,onFocus:e=>e.stopPropagation(),onBlur:e=>e.stopPropagation()}),p.email&&(0,r.jsx)("p",{className:"text-red-500 text-xs mt-1",children:p.email.message})]}),(0,r.jsx)(l.T,{type:"submit",className:"btn-primary px-6! py-2 w-fit text-sm rounded-lg",isLoading:f,isDisabled:f,children:(0,r.jsx)("span",{className:"mx-6 whitespace-nowrap",children:t})})]})}},5304:(e,t,s)=>{"use strict";s.d(t,{default:()=>h});var r=s(48958),a=s(15751),l=s(53172),n=s(77668),o=s(24986),i=s(93553),c=s(83982);let d="text-xs text-nowrap rounded-md px-1 py-0.5",m=(0,c.memo)(e=>{let{stars:t,index:s}=e,a=((e,t)=>e>=2?{text:"Most popular",className:"".concat(d," text-rose-600 border border-rose-600")}:e>=1||0===t&&e>0?{text:"Popular",className:"".concat(d," text-orange-500 border border-orange-500")}:0===e&&0===t?{text:"Most recent",className:"".concat(d," text-orange-500 border border-orange-500")}:null)(t,s);return a?(0,r.jsx)("span",{className:a.className,children:a.text}):null});function x(e){let{tags:t}=e;return(0,r.jsx)("div",{className:"flex flex-wrap space-x-1 justify-end",children:t.map(e=>(0,r.jsxs)("span",{className:"text-xs text-muted",children:["#",e]},e))})}function h(e){let{post:t,index:s}=e,{title:c,slug:d,stars:h,description:u,date:p,tags:f}=t;return(0,r.jsx)("div",{className:"mx-auto w-full md:max-w-[48%] 2xl:max-w-[31%]",children:(0,r.jsxs)(a.Z,{as:l.h,href:"/posts/".concat(d),classNames:{base:"no-button-style z-0 p-2 w-full min-w-64 cursor-pointer border border-gray-200 rounded-lg shadow-lg"},children:[(0,r.jsx)(n.d,{className:"py-1 md:py-2 lg:py-3",children:(0,r.jsxs)("div",{className:"w-full flex justify-between items-start",children:[(0,r.jsx)("span",{className:"text-left text-balance font-semibold",children:c}),(0,r.jsx)("div",{className:"flex justify-end mt-1 ml-2",children:(0,r.jsx)(m,{stars:h,index:s})})]})}),(0,r.jsx)(o.U,{className:"py-2",children:(0,r.jsx)("span",{className:"text-sm text-gray-500",children:u})}),(0,r.jsxs)(i.Z,{className:"flex justify-between items-center py-1 md:py-2 lg:py-3",children:[(0,r.jsx)("span",{className:"text-xs text-muted min-w-20",children:p}),(0,r.jsx)(x,{tags:f})]})]})})}m.displayName="BlogpostCardTitle"},14916:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(83982);function a(e){let{maxWidth:t,minScale:s=.1,debounceMs:a=100}=e,[l,n]=(0,r.useState)(1),o=(0,r.useRef)(void 0),i=(0,r.useCallback)(()=>{n(Math.min(.95,Math.max(s,window.innerWidth/t)))},[t,s]);return(0,r.useEffect)(()=>{let e=()=>o.current&&clearTimeout(o.current),t=()=>{e(),o.current=setTimeout(i,a)};return i(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[i,a]),l}},17162:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var r=s(48958),a=s(53022),l=s(72807),n=s.n(l);let o=(0,s(83982).memo)(function(e){let{excerptUrl:t}=e;return t?(0,r.jsxs)("section",{id:"excerpt",className:"section-separator flex flex-col gap-4 p-4 sm:p-6 lg:p-8 border border-black rounded-lg shadow-md",children:[(0,r.jsx)("h3",{className:"m-0",children:"Read an excerpt"}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("p",{className:"text-gray-700",children:"Here is an excerpt from the book. If you like it, you can buy the book from Amazon or my store."}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(n(),{href:t,target:"_blank",rel:"noopener noreferrer",className:"inline-block",children:(0,r.jsx)(a.T,{color:"primary",className:"min-w-[160px] rounded-lg text-white",children:"Read the excerpt"})})})]})]}):null})},26684:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,44320,23)),Promise.resolve().then(s.bind(s,68001)),Promise.resolve().then(s.bind(s,75964)),Promise.resolve().then(s.bind(s,37914)),Promise.resolve().then(s.bind(s,97415)),Promise.resolve().then(s.bind(s,95132)),Promise.resolve().then(s.bind(s,17162)),Promise.resolve().then(s.bind(s,39217)),Promise.resolve().then(s.bind(s,45984)),Promise.resolve().then(s.bind(s,48812)),Promise.resolve().then(s.bind(s,88480)),Promise.resolve().then(s.bind(s,73031)),Promise.resolve().then(s.bind(s,42997)),Promise.resolve().then(s.bind(s,35982))},39217:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var r=s(48958),a=s(83982),l=s(72663),n=s(48083);let o=(0,a.memo)(function(e){let{tag:t}=e,[s,o]=(0,a.useState)([]),[i,c]=(0,a.useState)(!0),[d,m]=(0,a.useState)(null),x=(0,a.useCallback)(async()=>{try{c(!0),m(null);let e=await (0,n.K)([t],4);o(e)}catch(e){console.error("Failed to fetch related posts:",e),m("Failed to load related posts. Please try again later.")}finally{c(!1)}},[t]);return((0,a.useEffect)(()=>{t&&x()},[x,t]),i)?(0,r.jsx)("div",{role:"status",className:"animate-pulse",children:"Loading related posts..."}):d?(0,r.jsx)("div",{className:"text-red-600",children:d}):0===s.length?null:(0,r.jsxs)("section",{className:"section-separator flex flex-col gap-4","aria-labelledby":"related-posts-heading",children:[(0,r.jsx)("h3",{id:"related-posts-heading",children:"Top related posts"}),(0,r.jsx)(l.z,{posts:s})]})})},48083:(e,t,s)=>{"use strict";s.d(t,{K:()=>a});var r=s(4906);let a=(0,r.createServerReference)("70ed40074f3c7b47478fa17d40f2d1e364ce3ce23a",r.callServer,void 0,r.findSourceMapURL,"getPosts")},48812:(e,t,s)=>{"use strict";s.d(t,{default:()=>n});var r=s(48958),a=s(83982),l=s(53022);let n=(0,a.memo)(function(e){let{error:t,resetErrorBoundary:s,message:a="We're sorry, a problem occurred. Please try again later."}=e;return(0,r.jsxs)("div",{role:"alert",className:"p-4 border border-red-500 rounded-lg bg-red-50 max-w-xl mx-auto my-8",children:[(0,r.jsx)("h2",{className:"text-lg font-semibold text-red-800 mb-2",children:"Oops! Something went wrong"}),(0,r.jsx)("p",{className:"text-red-700 mb-4",children:a}),!1,(0,r.jsx)(l.T,{onPress:s,color:"danger",className:"w-full sm:w-auto",children:"Try again"})]})})},71298:(e,t,s)=>{"use strict";s.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"}]},72663:(e,t,s)=>{"use strict";s.d(t,{z:()=>c});var r=s(48958),a=s(90048),l=s(3048),n=s(5304),o=s(72807),i=s.n(o);let c=e=>{let{posts:t,style:s="cards",forceSubscribeInvite:o=!1}=e,c=o||t.length<3;return(0,r.jsxs)("div",{className:"flex flex-col gap-4 justify-center",children:[(0,r.jsx)("div",{className:"container mx-4 ".concat("cards"===s?"my-4":"my-0"," mx-auto flex flex-wrap gap-4 justify-center"),children:"cards"===s?t.map((e,t)=>(0,r.jsx)(n.default,{post:e,index:t},e.slug)):(0,r.jsx)("div",{className:"flex flex-col gap-2",children:t.map(e=>(0,r.jsxs)("div",{className:"flex flex-row items-center my-0",children:[e.stars>1&&(0,r.jsx)(a.A,{className:"w-4 h-4 mr-2 text-yellow-500 fill-yellow-500"}),(0,r.jsxs)(i(),{href:"/posts/".concat(e.slug),className:"flex flex-row items-center text-gray-600 hover:scale-100 no-underline",children:[e.title,(0,r.jsx)(l.A,{className:"w-4 h-4 ml-2 text-gray-600"})]})]},e.slug))})}),(0,r.jsxs)("footer",{className:"flex flex-col gap-2",children:[c&&(0,r.jsxs)("p",{className:"text-xs text-muted text-center text-balance my-0!",children:["I will add more posts soon (subscribe to"," ",(0,r.jsx)(i(),{href:"/newsletter",children:"my newsletter"})," to be notified)."]}),(0,r.jsxs)("p",{className:"text-xs text-muted text-center text-balance my-0!",children:["Click ",(0,r.jsx)(i(),{href:"/blog",children:"here"})," to view all of my posts."]})]})]})}},73031:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});var r=s(48958),a=s(3333),l=s(62467),n=s(88480);s(83982);var o=s(35982),i=s(71298),c=s(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'})]})]}),m=()=>(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)(n.LogoReel,{logos:i.c})]}),x=e=>{let{size:t="lg",border:s=!0}=e,n=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(s?"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)(l.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)(o.ReviewsCarousel,{width:"lg",height:"sm",reviews:n,showRatings:!1,title:"They say about Luca"}),"lg"===t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{}),(0,r.jsx)(m,{})]})]})}},88480:(e,t,s)=>{"use strict";s.d(t,{LogoReel:()=>m});var r=s(48958),a=s(83982);let l=e=>{let{side:t,className:s,width:a}=e;return(0,r.jsx)("div",{className:"".concat(s," ").concat(a," ").concat(t,"-0 bg-gradient-to-").concat("left"===t?"r":"l"," from-white to-transparent"),"aria-hidden":"true"})},n=(0,a.memo)(function(e){let{width:t}=e,s="absolute top-0 bottom-0 pointer-events-none";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l,{side:"left",className:s,width:t}),(0,r.jsx)(l,{side:"right",className:s,width:t})]})});var o=s(62467),i=s(14916);let c={width:100,height:50},d=(0,a.memo)(function(e){let{logo:t,index:s}=e;return(0,r.jsx)("div",{className:"shrink-0 mx-4",children:(0,r.jsx)(o.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,a.memo)(function(e){let{logos:t}=e,s=(0,a.useRef)(null),l=Array.isArray(t)&&t.length>0,o=l?Array.from({length:4},()=>t).flat():[],m=l?c.width*t.length*4:0,x=(0,i.A)({maxWidth:m}),h=(0,a.useCallback)(()=>{let e=s.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=s.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:s,style:{transform:"scale(".concat(x,")"),transformOrigin:"left center"},role:"marquee","aria-label":"Logo reel",children:o.map((e,t)=>(0,r.jsx)(d,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),(0,r.jsx)(n,{width:"w-24"})]}):null})},95132:(e,t,s)=>{"use strict";s.d(t,{default:()=>u});var r=s(48958),a=s(53022),l=s(83982),n=s(45984),o=s(72807),i=s.n(o),c=s(62467),d=s(14916);let m=e=>{let{src:t,alt:s,className:a="",zIndex:l=1}=e;return(0,r.jsx)(c.default,{src:t,alt:s,width:300,height:450,sizes:"(max-width: 768px) 300px, 300px",quality:85,className:"border border-slate-400 rounded-xs ".concat(a),style:{width:"auto",height:"auto",maxWidth:"300px",zIndex:l}})},x=(0,l.memo)(function(e){let{book:t,isPriority:s}=e;return(0,r.jsx)(i(),{href:"#".concat(t.slug),onClick:e=>{e.preventDefault();try{let e=document.getElementById(t.slug);if(e)e.scrollIntoView({behavior:"smooth"});else{let e=document.getElementById("about");e&&e.scrollIntoView({behavior:"smooth"})}}catch(e){console.warn("Failed to scroll:",e)}},children:(0,r.jsx)(c.default,{src:t.coverSrc,alt:t.title,width:400,height:600,sizes:"(max-width: 768px) 400px, 400px",quality:85,className:"relative border border-black rounded-xs shadow-md transition-transform hover:scale-105 z-50",loading:s?"eager":"lazy"})})}),h=(0,l.memo)(function(e){let{book:t}=e,[s,o]=(0,l.useState)(!1),i=.75*(0,d.A)({maxWidth:800});(0,l.useEffect)(()=>{o(!0)},[]);let c=t.page1src&&t.page2src;return(0,r.jsxs)("section",{className:"section-separator text-center text-balance mt-2",children:[(0,r.jsxs)("div",{className:"mx-auto px-4 mb-4",children:[(0,r.jsx)("h1",{className:"mt-0 mb-4",children:t.title}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 justify-center items-center",children:[(0,r.jsx)("p",{className:"text-sm",children:t.shortDescription}),t.edition&&(0,r.jsxs)("p",{className:"text-xs italic",children:["(",t.edition,")"]})]})]}),(0,r.jsx)("div",{className:"w-full overflow-visible",children:(0,r.jsx)("div",{className:"max-w-[".concat(800,"px] mx-auto"),style:{zoom:i,transformOrigin:"top left"},children:(0,r.jsxs)("div",{className:"flex justify-center items-center relative",children:[c&&s&&(0,r.jsx)(m,{src:t.page1src,alt:"".concat(t.title," page 1"),className:"-mr-4",zIndex:1}),(0,r.jsx)(x,{book:t,isPriority:!0}),c&&s&&(0,r.jsx)(m,{src:t.page2src,alt:"".concat(t.title," page 2"),className:"-ml-4",zIndex:2})]})})}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-8 mt-6 px-4",children:[(0,r.jsx)(n.BuyBookButton,{book:t}),(0,r.jsx)("p",{className:"italic mb-0 text-sm",children:"or"}),(0,r.jsx)(a.T,{variant:"light",onPress:()=>{var e;null==(e=document.getElementById("about"))||e.scrollIntoView({behavior:"smooth"})},className:"underline underline-offset-8 shadow-none",children:"Learn more →"})]})]})});h.displayName="BookHero";let u=h},97415:(e,t,s)=>{"use strict";s.d(t,{AboutTheBook:()=>m});var r=s(48958),a=s(17871),l=s(53022),n=s(88480),o=s(83982),i=s(71298);let c=(0,o.memo)(function(e){let{onClick:t}=e;return(0,r.jsxs)(l.T,{variant:"light",onPress:t,className:"h-auto py-0! section-separator mx-auto my-6 p-2 rounded-lg max-w-3xl overflow-hidden bg-white! relative w-full shadow-none","aria-labelledby":"stores-heading",children:[(0,r.jsx)("h2",{id:"stores-heading",className:"text-sm text-center font-semibold mb-4",children:"Available at these stores:"}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(n.LogoReel,{logos:i.K})})]})});var d=s(86290);let m=(0,o.memo)(function(e){let{book:t,className:s=""}=e,{isOpen:l,onOpen:n,onOpenChange:o}=(0,d.j)();return(0,r.jsxs)("section",{id:"about",className:"section-separator \n flex flex-col gap-6 ".concat(s),"aria-labelledby":"about-heading",children:[(0,r.jsx)("h3",{id:"about-heading",className:"text-2xl font-bold",children:"About the book"}),(0,r.jsx)("div",{className:"prose max-w-none",children:t.aboutText}),(0,r.jsx)(a.B,{book:t,isOpen:l,onOpenChange:o}),(0,r.jsx)(c,{onClick:n})]})})}},e=>{e.O(0,[4320,1675,3022,5785,9718,8865,5948,1176,1287,9597,7942,6293,7358],()=>e(e.s=26684)),_N_E=e.O()}]);