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]="4b57e344-44a6-4258-b228-d60f3fb5e700",e._sentryDebugIdIdentifier="sentry-dbid-4b57e344-44a6-4258-b228-d60f3fb5e700")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5858],{8797:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>m});var r=a(36685),s=a(92586),n=a.n(s),l=a(18937),o=a(99807);let i={container:"blog-frame text-center text-balance",title:"font-bold mt-0 mb-4",link:"text-focus hover:underline"},c=(e,t)=>{let a=t?"".concat(t,": ").concat(e):e,r=a.length>200?"".concat(a.slice(0,200),"..."):a;return encodeURIComponent('"'.concat(r,'" by @DellannaLuca\n'))},d=(0,l.memo)(e=>{let{title:t="Principle",text:a}=e,s=(0,o.usePathname)(),l=encodeURIComponent("".concat("https://Luca-Dellanna.com").concat(s)),d=c(a,t);return(0,r.jsxs)("div",{className:i.container,children:[(0,r.jsx)("h4",{className:i.title,children:t}),(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:a})}),(0,r.jsx)("p",{children:(0,r.jsx)(n(),{href:"https://twitter.com/intent/tweet?text=".concat(d,"&url=").concat(l),target:"_blank",rel:"noopener noreferrer",className:i.link,children:"Share on Twitter"})})]})});d.displayName="Principle";let m=d},14562:(e,t,a)=>{"use strict";function r(e){if(!(null==e?void 0:e.trim()))throw Error("Non-empty string is required for slugify");return e.trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}a.d(t,{Y:()=>r})},29285:(e,t,a)=>{"use strict";a.d(t,{Quote:()=>o});var r=a(36685),s=a(17337),n=a(18937);let l={container:"blog-frame text-center text-balance",quote:"mb-8 text-balance"},o=(0,n.memo)(e=>{let{quote:t,author:a,authorDescription:n,portraitSrc:o}=e;return(0,r.jsxs)("div",{className:l.container,children:[(0,r.jsxs)("p",{className:l.quote,children:["“",t,"”"]}),(0,r.jsx)(s.S,{name:a,description:n,avatarProps:{src:o,showFallback:!0,alt:"Portrait of ".concat(a)}})]})});o.displayName="Quote"},43849:(e,t,a)=>{"use strict";a.d(t,{WorkWithLuca:()=>m});var r=a(36685),s=a(37720),n=a(94003),l=a(92586),o=a.n(l),i=a(18937);let c={section:"max-w-2xl mx-auto my-12 p-4 gap-8 border border-gray-400 rounded-lg shadow-lg",review:{text:"text-tiny text-center mb-0",author:{wrapper:"w-full flex justify-center",container:"flex items-center gap-2",name:"text-tiny italic",image:"rounded-full"}},content:{wrapper:"flex items-center justify-center",text:"space-y-4 md:space-y-8",description:"text-sm text-center",buttonWrapper:"flex justify-center",image:"shrink-0"}},d=(0,i.memo)(e=>{let{quote:t,author:a,imageSrc:n}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("p",{className:c.review.text,children:['"',t,'"']}),(0,r.jsx)("div",{className:c.review.author.wrapper,children:(0,r.jsxs)("div",{className:c.review.author.container,children:[(0,r.jsxs)("span",{className:c.review.author.name,children:["– ",a]}),(0,r.jsx)(s.W,{src:n,alt:a,width:20,height:20,className:c.review.author.image})]})})]})});d.displayName="Review";let m=(0,i.memo)(()=>(0,r.jsx)("section",{className:c.section,children:(0,r.jsxs)("div",{className:c.content.wrapper,children:[(0,r.jsxs)("div",{className:c.content.text,children:[(0,r.jsx)(d,{quote:"Working with Luca was fantastic! He was straightforward and well-prepared, pinpointing numerous opportunities I had overlooked in my business plan. I wholeheartedly recommend him.",author:"Christopher Samiullah",imageSrc:"/christopher-samiullah.jpg"}),(0,r.jsx)("p",{className:c.content.description,children:"I have helped dozens of business leaders change their organization's operational culture. If you're interested in working with me, send me an email."}),(0,r.jsx)("div",{className:c.content.buttonWrapper,children:(0,r.jsx)(o(),{href:"/contact",children:(0,r.jsx)(n.T,{color:"primary",size:"sm",className:"mx-auto",children:"Email Luca"})})})]}),(0,r.jsx)("div",{className:c.content.image,children:(0,r.jsx)(s.W,{src:"/luca-no-bg.png",alt:"Luca Dellanna",width:140,height:210})})]})}));m.displayName="WorkWithLuca"},50344:(e,t,a)=>{"use strict";a.d(t,{Exercises:()=>o});var r=a(36685),s=a(18937),n=a(24300);let l={container:"blog-frame text-center text-balance",heading:"font-bold mt-0 mb-4"},o=(0,s.memo)(e=>{let{exercises:t}=e,[a,o]=(0,s.useState)([]),i=(0,s.useMemo)(()=>t.length>1?"Exercises":"Exercise",[t.length]);return(0,s.useEffect)(()=>{let e=!0;return(async()=>{try{let a=await Promise.all(t.map(async e=>{let{content:t}=await (0,n.d)({source:e});return t}));e&&o(a)}catch(e){console.error("Failed to render exercises:",e)}})(),()=>{e=!1}},[t]),(0,r.jsxs)("div",{className:l.container,children:[(0,r.jsx)("h4",{className:l.heading,children:i}),(0,r.jsx)("ol",{children:a.map((e,t)=>(0,r.jsx)("li",{children:e},"exercise-".concat(t)))})]})});o.displayName="Exercises"},57177:(e,t,a)=>{"use strict";a.d(t,{default:()=>T});var r=a(36685),s=a(54540),n=a(40463),l=a(18937),o=a(25852),i=a(79312),c=a(79773),d=a(69660);let m={button:"fixed bottom-4 right-4 bg-primary text-white p-2 px-4 rounded-full shadow-lg z-50",sidebar:"fixed top-12 bottom-0 items-center align-middle right-0 h-full w-64 bg-white shadow-xl p-4 overflow-y-auto",heading:"text-xl font-bold mb-4",listItem:e=>"text-sm mb-2 ".concat(3===e?"ml-4":""),link:"text-focus hover:underline"},x=(0,l.memo)(e=>{let{content:t}=e,[a,s]=(0,l.useState)([]),[n,o]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{let e=setTimeout(()=>{let e=Array.from(document.querySelectorAll("h2, h3")).map(e=>({id:e.id,text:e.textContent||"",level:parseInt(e.tagName[1])}));e.length>4&&s(e)},100);return()=>clearTimeout(e)},[]),a.length<=4)return null;let i=()=>o(!1);return(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{onClick:()=>o(e=>!e),className:m.button,"aria-expanded":n,"aria-controls":"outline-sidebar",children:n?"Close":"Outline"}),n&&(0,r.jsxs)("nav",{id:"outline-sidebar",className:m.sidebar,"aria-label":"Table of contents",children:[(0,r.jsx)("h3",{className:m.heading,children:"Outline"}),(0,r.jsx)("ul",{children:a.map((e,t)=>(0,r.jsx)("li",{className:m.listItem(e.level),children:(0,r.jsx)("a",{href:"#".concat(e.id),className:m.link,onClick:i,children:e.text})},t))})]})]})});x.displayName="Outline";var u=a(30802),h=a(87847);let p={container:"max-w-3xl mx-auto my-8 p-4 border border-gray-400 rounded-lg shadow-lg",heading:"mb-4"},g=(0,l.memo)(e=>{let{posts:t,className:a}=e;return 0===t.length?null:(0,r.jsxs)("section",{className:"".concat(p.container," ").concat(a||""),children:[(0,r.jsx)("h4",{className:p.heading,children:"Similar posts you might like"}),(0,r.jsx)(h.z,{posts:t,style:"naked",forceSubscribeInvite:!0})]})});g.displayName="SimilarPosts";var f=a(92586),y=a.n(f),b=a(99807);let j={container:"text-center text-tiny italic mb-12",tag:"mx-1",activeTag:"font-bold"},v=(0,l.memo)(e=>{let{tag:t,isActive:a}=e;return(0,r.jsxs)(y(),{href:"/blog?tag=".concat(t),className:"".concat(j.tag," ").concat(a?j.activeTag:""),children:["#",t]})});v.displayName="TagLink";let w=(0,l.memo)(e=>{let{tags:t}=e,a=(0,b.useSearchParams)(),s=null==a?void 0:a.get("tag");return(0,r.jsx)("p",{className:j.container,children:t.map(e=>(0,r.jsx)(v,{tag:e,isActive:s===e},e))})});w.displayName="TagList";var N=a(43849),C=a(87160),k=a(14562),E=a(76966);let S=["Object Not Found Matching Id","unhandledrejection"],P=e=>S.some(t=>{var a;return null==(a=e.message)?void 0:a.includes(t)}),L=(e,t)=>{P(e)||s.v4(a=>{"string"==typeof t?a.setTag("location",t):(a.setExtra("componentStack",t.componentStack||""),a.setTag("location","BlogPostContent")),n.Cp(e)}),console.error("Error in ".concat("string"==typeof t?t:"BlogPostContent",":"),e)};function T(e){var t;let{post:a,compiledContent:s,similarPosts:n}=e;(0,E.V)("BlogPostContent");let[m,h]=(0,l.useState)(null),p=(0,l.useMemo)(()=>(function(e){if(!Array.isArray(e))throw TypeError("Tags parameter must be an array");return Array.from(new Set(function(e){let t={management:["best practices for operational excellence"],"best practices for operational excellence":["management"]},a=[...e];return e.forEach(e=>{t[e]&&a.push(...t[e])}),a}(e.map(e=>e.toLowerCase())))).map(e=>C.b.find(t=>t.slug===(0,k.Y)(e))).filter(e=>void 0!==e)})(a.tags),[a.tags]),f=(0,l.useMemo)(()=>({"@context":"https://schema.org","@type":"BlogPosting",headline:a.title,datePublished:a.date,author:{"@type":"Person",name:"Luca Dellanna"},keywords:a.tags.join(","),url:"https://luca-dellanna.com/posts/".concat(a.slug),description:a.description}),[a]);return(0,l.useEffect)(()=>{requestAnimationFrame(async()=>{try{let e=null;if("function"==typeof s){let t=s({});if(t instanceof Promise)try{e=await t}catch(e){L(e,"MDX content promise");try{let e=s({});e instanceof Promise?e.then(e=>{h(e)}).catch(e=>{h((0,r.jsx)(r.Fragment,{children:"Error: Could not load post content."})),L(e,"MDX fallback promise")}):h(e)}catch(e){h((0,r.jsx)(r.Fragment,{children:"Error: Could not load post content."})),L(e,"MDX fallback sync")}}else e=t}else e=s;null!==e&&h(e)}catch(e){L(e,"MDX content render"),"function"!=typeof s&&h(s)}})},[s]),(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(u.default,{id:"json-ld",type:"application/ld+json",children:JSON.stringify(f)}),(0,r.jsxs)("article",{className:"max-w-3xl mx-auto my-8",children:[(0,r.jsxs)("header",{className:"mb-6",children:[(0,r.jsx)("h1",{className:"mb-2 text-balance",children:a.title}),(0,r.jsx)("h4",{className:"text-balance text-gray-500 mt-4 mb-6",children:a.description}),(0,r.jsxs)("p",{className:"text-center text-tiny italic mb-1",children:[a.date," by Luca Dellanna"]}),(0,r.jsx)(l.Suspense,{fallback:(0,r.jsx)("p",{className:"text-gray-500","aria-label":"Loading tags",children:"Loading tags..."}),children:(0,r.jsx)(w,{tags:a.tags})})]}),(0,r.jsx)(c.ErrorBoundary,{FallbackComponent:d.default,onError:(e,t)=>L(e,t),children:(0,r.jsx)("div",{className:"prose prose-lg",children:m||(0,r.jsx)("p",{className:"text-gray-500","aria-label":"Loading content",children:"Loading content..."})})})]}),(0,r.jsx)(x,{content:s}),(null==(t=a.tags)?void 0:t.some(e=>(null==e?void 0:e.toLowerCase().trim())==="management"))&&(0,r.jsx)(N.WorkWithLuca,{}),p.length>0&&(0,r.jsx)("section",{className:"my-8","aria-label":"Related books",children:p.map(e=>(0,r.jsx)(o.j,{book:e,borderStyle:"normal"},e.slug))}),(0,r.jsx)(g,{posts:n,className:"mt-16"}),(0,r.jsx)(i.ClientConvertkitForm,{})]})}},69660:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(36685),s=a(18937),n=a(94003);let l=(0,s.memo)(function(e){let{error:t,resetErrorBoundary:a,message:s="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:s}),!1,(0,r.jsx)(n.T,{onPress:a,color:"danger",className:"w-full sm:w-auto",children:"Try again"})]})})},76966:(e,t,a)=>{"use strict";a.d(t,{V:()=>o});var r=a(40463),s=a(18937);let n=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"},o=e=>{(0,s.useEffect)(()=>{let t=t=>{if(n(t.error))return void console.debug("Suppressed non-critical error:",t.error);let a=l(t.error);r.Cp(t.error,{extra:{componentName:e,timestamp:new Date().toISOString(),errorDetails:a},tags:{location:e,errorType:a.type}})},a=t=>{let a="reason"in t?t.reason:t;if(n(a))return void console.debug("Suppressed non-critical promise rejection:",a);let s=l(a);r.Cp(a,{extra:{componentName:e,promiseError:!0,timestamp:new Date().toISOString(),errorDetails:s},tags:{location:e,errorType:s.type}})};return window.addEventListener("error",t),window.addEventListener("unhandledrejection",a),()=>{window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",a)}},[e])}},79312:(e,t,a)=>{"use strict";a.d(t,{ClientConvertkitForm:()=>o});var r=a(36685),s=a(57604),n=a(18937);let l=(0,s.default)(()=>Promise.all([a.e(6620),a.e(1236),a.e(5111)]).then(a.bind(a,85111)),{loadableGenerated:{webpack:()=>[85111]},ssr:!1,loading:()=>(0,r.jsx)("div",{className:"min-h-[200px] animate-pulse bg-gray-100 rounded-lg"})}),o=(0,n.memo)(e=>{let{size:t}=e;return(0,r.jsx)(l,{size:t})});o.displayName="ClientConvertkitForm"},87847:(e,t,a)=>{"use strict";a.d(t,{z:()=>c});var r=a(36685),s=a(1343),n=a(23967),l=a(93890),o=a(92586),i=a.n(o);let c=e=>{let{posts:t,style:a="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"===a?"my-4":"my-0"," mx-auto flex flex-wrap gap-4 justify-center"),children:"cards"===a?t.map((e,t)=>(0,r.jsx)(l.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)(s.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)(n.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-tiny text-gray-400 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-tiny text-gray-400 text-center text-balance !my-0",children:["Click ",(0,r.jsx)(i(),{href:"/blog",children:"here"})," to view all of my posts."]})]})]})}},93890:(e,t,a)=>{"use strict";a.d(t,{default:()=>g});var r=a(36685),s=a(15321),n=a(40414),l=a(1834),o=a(85060),i=a(60727),c=a(18937);let d="text-tiny text-nowrap rounded-md px-1 py-0.5",m=(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,x=(0,c.memo)(e=>{let{stars:t,index:a}=e,s=m(t,a);return s?(0,r.jsx)("span",{className:s.className,children:s.text}):null});x.displayName="BlogpostCardTitle";let u={container:"mx-auto w-full md:max-w-[48%] 2xl:max-w-[31%]",card:"no-button-style z-0 p-2 w-full min-w-64 cursor-pointer",header:"py-1 md:py-2 lg:py-3",headerContent:"w-full flex justify-between items-start",title:"text-left text-balance font-semibold",chipContainer:"flex justify-end mt-1 ml-2",body:"py-2",description:"text-sm text-gray-500",footer:"flex justify-between items-center py-1 md:py-2 lg:py-3",date:"text-tiny text-gray-400 min-w-20",tagContainer:"flex flex-wrap space-x-1 justify-end",tag:"text-tiny text-gray-400"},h=(0,c.memo)(e=>{let{tags:t}=e;return(0,r.jsx)("div",{className:u.tagContainer,children:t.map(e=>(0,r.jsxs)("span",{className:u.tag,children:["#",e]},e))})});h.displayName="Tags";let p=(0,c.memo)(e=>{let{post:t,index:a}=e,{title:c,slug:d,stars:m,description:p,date:g,tags:f}=t;return(0,r.jsx)("div",{className:u.container,children:(0,r.jsxs)(s.Z,{as:n.h,href:"/posts/".concat(d),classNames:{base:u.card},children:[(0,r.jsx)(l.d,{className:u.header,children:(0,r.jsxs)("div",{className:u.headerContent,children:[(0,r.jsx)("span",{className:u.title,children:c}),(0,r.jsx)("div",{className:u.chipContainer,children:(0,r.jsx)(x,{stars:m,index:a})})]})}),(0,r.jsx)(o.U,{className:u.body,children:(0,r.jsx)("span",{className:u.description,children:p})}),(0,r.jsxs)(i.Z,{className:u.footer,children:[(0,r.jsx)("span",{className:u.date,children:g}),(0,r.jsx)(h,{tags:f})]})]})})});p.displayName="BlogpostCard";let g=p},95505:(e,t,a)=>{Promise.resolve().then(a.bind(a,22514)),Promise.resolve().then(a.bind(a,62783)),Promise.resolve().then(a.bind(a,50344)),Promise.resolve().then(a.bind(a,8797)),Promise.resolve().then(a.bind(a,29285)),Promise.resolve().then(a.bind(a,98740)),Promise.resolve().then(a.bind(a,79312)),Promise.resolve().then(a.bind(a,57177))},98740:(e,t,a)=>{"use strict";a.d(t,{Video:()=>o});var r=a(36685),s=a(80493),n=a(18937);let l={container:"h-full md:mx-4 my-8",videoWrapper:"w-[95%] h-full mx-auto border border-black rounded-xl overflow-hidden"},o=(0,n.memo)(e=>{let{youtubeId:t,showControls:a=!1}=e;return(0,r.jsx)("div",{className:l.container,children:(0,r.jsx)("div",{className:l.videoWrapper,children:(0,r.jsx)(s.YouTubeEmbed,{videoid:t,params:"controls=".concat(+!!a)})})})});o.displayName="Video"}},e=>{var t=t=>e(e.s=t);e.O(0,[1715,6427,9867,1838,4119,4003,3919,5578,414,1989,6713,944,4628,7160,5852,8299,7913,7358],()=>t(95505)),_N_E=e.O()}]);