try{!function(){var 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]="c929acd9-9bc7-4e6b-ab92-e429b6bb7b3a",e._sentryDebugIdIdentifier="sentry-dbid-c929acd9-9bc7-4e6b-ab92-e429b6bb7b3a")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7581,9396],{13080:(e,t,s)=>{"use strict";function r(e){let{reason:t,children:s}=e;return s}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),s(93871)},16517:(e,t,s)=>{"use strict";function r(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),s(65183),s(1174),s(38078),s(16627)},16897:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>i});var r=s(65183),l=s(24375),a=s(32694),n=s(24978);let i=(0,l.memo)(function(e){let{tag:t}=e,[s,i]=(0,l.useState)([]),[o,c]=(0,l.useState)(!0),[d,m]=(0,l.useState)(null),x=(0,l.useCallback)(async()=>{try{c(!0),m(null);let e=await (0,n.K)([t],4);i(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,l.useEffect)(()=>{t&&x()},[x,t]),o)?(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)(a.BlogLinksList,{posts:s})]})})},17666:(e,t,s)=>{"use strict";s.d(t,{ErrorBoundary:()=>n});var r=s(24375);let l=(0,r.createContext)(null),a={didCatch:!1,error:null};class n extends r.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,s,r=arguments.length,l=Array(r),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,s)=>!Object.is(e,t[s]))}(e.resetKeys,r)){var l,n;null==(l=(n=this.props).onReset)||l.call(n,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(a)}}render(){let{children:e,fallbackRender:t,FallbackComponent:s,fallback:a}=this.props,{didCatch:n,error:i}=this.state,o=e;if(n){let e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)o=t(e);else if(s)o=(0,r.createElement)(s,e);else if(void 0!==a)o=a;else throw i}return(0,r.createElement)(l.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},o)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=a}}},17809:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(14371).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},22430:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,91045,23)),Promise.resolve().then(s.bind(s,13080)),Promise.resolve().then(s.bind(s,16517)),Promise.resolve().then(s.bind(s,17666)),Promise.resolve().then(s.bind(s,70207)),Promise.resolve().then(s.bind(s,63592)),Promise.resolve().then(s.bind(s,47034)),Promise.resolve().then(s.bind(s,16897)),Promise.resolve().then(s.bind(s,41648)),Promise.resolve().then(s.bind(s,15376)),Promise.resolve().then(s.bind(s,94204)),Promise.resolve().then(s.bind(s,66295)),Promise.resolve().then(s.bind(s,39812)),Promise.resolve().then(s.bind(s,10142))},24507:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{callServer:function(){return r.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}});let r=s(62232),l=s(15068),a=s(193)},24978:(e,t,s)=>{"use strict";s.d(t,{K:()=>l});var r=s(24507);let l=(0,r.createServerReference)("70ed40074f3c7b47478fa17d40f2d1e364ce3ce23a",r.callServer,void 0,r.findSourceMapURL,"getPosts")},32694:(e,t,s)=>{"use strict";s.d(t,{BlogLinksList:()=>o});var r=s(65183),l=s(66009),a=s(89289),n=s(82212),i=s.n(n);function o(e){let{posts:t,showFooter:s=!1}=e;return t&&0!==t.length?(0,r.jsxs)("div",{className:"flex flex-col gap-4 mx-1 sm:mx-2 md:mx-4 justify-center",children:[(0,r.jsx)("ul",{className:"list-none mx-0 my-4 p-0 flex flex-col gap-2",children:t.map(e=>(0,r.jsxs)("li",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-1 md:gap-2 mx-0",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center min-w-0",children:[(0,r.jsx)("span",{className:"w-4 h-4 mr-2 inline-flex items-center justify-center flex-shrink-0",children:e.stars>1&&(0,r.jsx)(l.A,{className:"w-4 h-4 text-yellow-500 fill-yellow-500","aria-hidden":!0})}),(0,r.jsxs)(i(),{href:"/posts/".concat(e.slug),className:"text-gray-700 hover:text-gray-900 no-underline min-w-0 flex flex-col md:flex-row md:items-center",children:[(0,r.jsx)("span",{className:"line-clamp-2 md:line-clamp-1 md:truncate break-words",children:e.title}),(0,r.jsx)(a.A,{className:"hidden md:inline-flex w-4 h-4 ml-2 text-muted flex-shrink-0","aria-hidden":!0}),(0,r.jsxs)("span",{className:"mt-0.5 flex flex-row items-center gap-2 md:hidden",children:[(0,r.jsx)(a.A,{className:"w-4 h-4 text-muted flex-shrink-0","aria-hidden":!0}),(0,r.jsx)("span",{className:"text-xs text-gray-500 flex-shrink-0",children:e.date})]})]})]}),(0,r.jsx)("span",{className:"hidden md:inline text-xs text-gray-500 flex-shrink-0",children:e.date})]},e.slug))}),s&&(0,r.jsxs)("footer",{className:"flex flex-col gap-2",children:[(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."]})]})]}):null}},38078:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=s(47024)},47024:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,s(80706).createAsyncLocalStorage)()},47034:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>i});var r=s(65183),l=s(50849),a=s(82212),n=s.n(a);let i=(0,s(24375).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)(l.$,{variant:"primary",className:"min-w-[160px] rounded-lg text-white",children:"Read the excerpt"})})})]})]}):null})},63592:(e,t,s)=>{"use strict";s.d(t,{default:()=>u});var r=s(65183),l=s(24375),a=s(50849),n=s(41648),i=s(82212),o=s.n(i),c=s(32812);let d=e=>{let{src:t,alt:s,className:l="",zIndex:a=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(l),style:{width:"auto",height:"auto",maxWidth:"300px",zIndex:a}})},m=(0,l.memo)(function(e){let{book:t,isPriority:s}=e;return(0,r.jsx)(o(),{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"})})}),x=(0,l.memo)(function(e){let{book:t}=e,[s,i]=(0,l.useState)(!1),o=.75*function(e){let{maxWidth:t,minScale:s=.1,debounceMs:r=100}=e,[a,n]=(0,l.useState)(1),i=(0,l.useRef)(void 0),o=(0,l.useCallback)(()=>{n(Math.min(.95,Math.max(s,window.innerWidth/t)))},[t,s]);return(0,l.useEffect)(()=>{let e=()=>i.current&&clearTimeout(i.current),t=()=>{e(),i.current=setTimeout(o,r)};return o(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[o,r]),a}({maxWidth:800});(0,l.useEffect)(()=>{i(!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:o,transformOrigin:"top left"},children:(0,r.jsxs)("div",{className:"flex justify-center items-center relative",children:[c&&s&&(0,r.jsx)(d,{src:t.page1src,alt:"".concat(t.title," page 1"),className:"-mr-4",zIndex:1}),(0,r.jsx)(m,{book:t,isPriority:!0}),c&&s&&(0,r.jsx)(d,{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.$,{variant:"ghost",onClick:()=>{var e;null==(e=document.getElementById("about"))||e.scrollIntoView({behavior:"smooth"})},className:"underline underline-offset-8 shadow-none",children:"Learn more →"})]})]})});x.displayName="BookHero";let u=x},66295:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>u});var r=s(65183),l=s(15376),a=s(36047),n=s(32812),i=s(10142),o=s(69266),c=s(49275);let d=()=>(0,r.jsxs)("div",{className:"mt-8 rounded-lg p-6 bg-muted/10 border border-muted/20",children:[(0,r.jsx)("p",{className:"font-semibold text-lg mb-6 text-center text-foreground",children:"In the welcome email, you will find:"}),(0,r.jsxs)("ul",{className:"space-y-4 w-full",children:[(0,r.jsxs)("li",{className:"flex items-start gap-4",children:[(0,r.jsx)("span",{className:"text-success text-xl flex-shrink-0 mt-0.5",children:"✔"}),(0,r.jsx)("span",{className:"text-base leading-relaxed text-foreground",children:"A guide on how to bring clarity to your teams"})]}),(0,r.jsxs)("li",{className:"flex items-start gap-4",children:[(0,r.jsx)("span",{className:"text-success text-xl flex-shrink-0 mt-0.5",children:"✔"}),(0,r.jsx)("span",{className:"text-base leading-relaxed text-foreground",children:'A 33% discount code for my book "Best Practices For Operational Excellence"'})]}),(0,r.jsxs)("li",{className:"flex items-start gap-4",children:[(0,r.jsx)("span",{className:"text-success text-xl flex-shrink-0 mt-0.5",children:"✔"}),(0,r.jsx)("span",{className:"text-base leading-relaxed text-foreground",children:"An archive of my top Twitter threads, including the ones marked with a ⭐️ that are my favorite"})]}),(0,r.jsxs)("li",{className:"flex items-start gap-4",children:[(0,r.jsx)("span",{className:"text-success text-xl flex-shrink-0 mt-0.5",children:"✔"}),(0,r.jsx)("span",{className:"text-base leading-relaxed text-foreground",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",className:"mt-8",children:[(0,r.jsx)("p",{className:"text-center text-sm text-muted mb-4",children:"Part of my portfolio / trusted by leaders at"}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(l.ClientsGrid,{logos:o.c4})})]}),x=e=>{let{size:t}=e;return(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row items-center gap-6 lg:gap-8 w-full max-w-2xl",children:[(0,r.jsxs)("div",{id:"headline-and-form",className:"flex-1 text-center lg:text-left",children:["lg"===t?(0,r.jsx)("h2",{className:"mb-3 text-2xl lg:text-3xl xl:text-4xl font-bold text-foreground",children:"Luca's newsletter"}):(0,r.jsx)("h3",{className:"mt-0 sm:mt-2 lg:mt-4 mb-3 text-xl lg:text-2xl font-bold text-foreground",children:"Luca's newsletter"}),(0,r.jsx)("p",{className:"text-sm text-muted mb-6 leading-relaxed",children:"You can expect 1-2 emails a month. Unsubscribe at any time."}),(0,r.jsx)("div",{id:"ck-form",className:"flex justify-center lg:justify-start",children:(0,r.jsx)(a.ConvertkitForm,{buttonText:"Join 25,000+ readers"})})]}),(0,r.jsx)(n.default,{src:"/luca-portrait.jpg",alt:"Luca Dellanna",height:180,width:120,className:"border border-border-strong rounded-lg hidden lg:block flex-shrink-0 shadow-md hover:shadow-lg transition-shadow duration-300",priority:"lg"===t})]})},u=function(e){let{size:t="lg",border:s=!0}=e,l=c.Y.filter(e=>e.object.includes("Luca"));return(0,r.jsxs)("section",{className:"w-full max-w-[calc(100vw-1rem)] sm:max-w-lg md:max-w-2xl lg:max-w-3xl mx-auto p-4 sm:p-6 lg:p-8 mt-4 mb-12 ".concat(s?"border border-border-strong rounded-lg shadow-lg hover:shadow-xl transition-shadow duration-300":""),children:[(0,r.jsx)("div",{className:"flex flex-col items-center justify-center mb-8",children:(0,r.jsx)(x,{size:t})}),(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)(m,{})]})]})}},70207:(e,t,s)=>{"use strict";s.d(t,{AboutTheBook:()=>x});var r=s(65183),l=s(15423),a=s(50849),n=s(24375),i=s(68149),o=s(69266);let c=(0,n.memo)(function(e){let{height:t="lg",logos:s=o.KT}=e;return(0,r.jsx)(i.Y,{height:t,logos:s,title:"Available at"})}),d=(0,n.memo)(function(e){let{onClick:t}=e;return(0,r.jsxs)(a.$,{variant:"outline",onClick: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)(c,{})})]})});var m=s(80346);let x=(0,n.memo)(function(e){let{book:t,className:s=""}=e,{isOpen:a,onOpen:n,onOpenChange:i}=(0,m.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)(l.B,{book:t,isOpen:a,onOpenChange:i}),(0,r.jsx)(d,{onClick:n})]})})},77242:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=function(){for(var e,t,s=0,r="",l=arguments.length;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{bindSnapshot:function(){return n},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return i}});let s=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class r{disable(){throw s}getStore(){}run(){throw s}exit(){throw s}enterWith(){throw s}static bind(e){return e}}let l="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return l?new l:new r}function n(e){return l?l.bind(e):r.bind(e)}function i(){return l?l.snapshot():function(e,...t){return e(...t)}}},84491:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(14371).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},89289:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(14371).A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},94204:(e,t,s)=>{"use strict";s.d(t,{default:()=>n});var r=s(65183),l=s(24375),a=s(50849);let n=(0,l.memo)(function(e){let{error:t,resetErrorBoundary:s,message:l="We're sorry, a problem occurred. Please try again later."}=e;return(0,r.jsxs)("div",{role:"alert",className:"p-4 border border-error rounded-lg bg-error-light 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:l}),!1,(0,r.jsx)(a.$,{onClick:s,variant:"danger",className:"w-full sm:w-auto",children:"Try again"})]})})}},e=>{e.O(0,[2382,1045,3998,8305,4241,9493,4661,2985,9275,7150,435,3675,7358],()=>e(e.s=22430)),_N_E=e.O()}]);