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]="c99d6782-85ad-4a6e-aef3-951c8c1ed317",e._sentryDebugIdIdentifier="sentry-dbid-c99d6782-85ad-4a6e-aef3-951c8c1ed317")}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),i=a(99807);let o={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,i.usePathname)(),l=encodeURIComponent("".concat("https://Luca-Dellanna.com").concat(s)),d=c(a,t);return(0,r.jsxs)("div",{className:o.container,children:[(0,r.jsx)("h4",{className:o.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:o.link,children:"Share on Twitter"})})]})});d.displayName="Principle";let m=d},12812:(e,t,a)=>{"use strict";a.d(t,{default:()=>I});var r=a(36685),s=a(54540),n=a(40463),l=a(18937),i=a(25852),o=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"},u=(0,l.memo)(e=>{let{content:t}=e,[a,s]=(0,l.useState)([]),[n,i]=(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 o=()=>i(!1);return(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{onClick:()=>i(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:o,children:e.text})},t))})]})]})});u.displayName="Outline";var x=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 N=(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))})});N.displayName="TagList";var w=a(43849),C=a(87160),E=a(14562);let k=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},S=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"},P=e=>{(0,l.useEffect)(()=>{let t=t=>{if(k(t.error))return void console.debug("Suppressed non-critical error:",t.error);let a=S(t.error);n.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(k(a))return void console.debug("Suppressed non-critical promise rejection:",a);let r=S(a);n.Cp(a,{extra:{componentName:e,promiseError:!0,timestamp:new Date().toISOString(),errorDetails:r},tags:{location:e,errorType:r.type}})};return window.addEventListener("error",t),window.addEventListener("unhandledrejection",a),()=>{window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",a)}},[e])},L=(e,t)=>{var a;if(null==(a=e.message)?void 0:a.includes("Object Not Found Matching Id"))return void console.debug("Suppressed non-critical error:",e.message);s.v4(a=>{a.setExtra("componentStack",t.componentStack||""),a.setTag("location","BlogPostContent"),n.Cp(e)})};function I(e){var t;let{post:a,compiledContent:s,similarPosts:m}=e;P("BlogPostContent");let[h,p]=(0,l.useState)(null),f=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,E.Y)(e))).filter(e=>void 0!==e)}(a.tags),y={"@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};return(0,l.useEffect)(()=>{requestAnimationFrame(async()=>{var e,t,a,r;try{let a=null;if("function"==typeof s){let r=s({});if(r instanceof Promise)try{a=await r}catch(l){console.error("Promise rejection in MDX content:",l),l instanceof Error&&((null==(e=l.message)?void 0:e.includes("Object Not Found Matching Id"))||(null==(t=l.message)?void 0:t.includes("unhandledrejection"))||n.Cp(l));let r=s({});r instanceof Promise||(a=r)}else a=r}else a=s;null!==a&&p(a)}catch(e){console.error("Error rendering MDX content:",e),e instanceof Error&&((null==(a=e.message)?void 0:a.includes("Object Not Found Matching Id"))||(null==(r=e.message)?void 0:r.includes("unhandledrejection"))||n.Cp(e)),"function"!=typeof s&&p(s)}})},[s]),(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(x.default,{id:"json-ld",type:"application/ld+json",children:JSON.stringify(y)}),(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)(N,{tags:a.tags})})]}),(0,r.jsx)(c.ErrorBoundary,{FallbackComponent:d.default,onError:L,children:(0,r.jsx)("div",{className:"prose prose-lg",children:h||(0,r.jsx)("p",{className:"text-gray-500","aria-label":"Loading content",children:"Loading content..."})})})]}),(0,r.jsx)(u,{content:s}),(null==(t=a.tags)?void 0:t.some(e=>(null==e?void 0:e.toLowerCase().trim())==="management"))&&(0,r.jsx)(w.WorkWithLuca,{}),f.length>0&&(0,r.jsx)("section",{className:"my-8","aria-label":"Related books",children:f.map(e=>(0,r.jsx)(i.j,{book:e,borderStyle:"normal"},e.slug))}),(0,r.jsx)(g,{posts:m,className:"mt-16"}),(0,r.jsx)(o.ClientConvertkitForm,{})]})}},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:()=>i});var r=a(36685),s=a(41858),n=a(18937);let l={container:"blog-frame text-center text-balance",quote:"mb-8 text-balance"},i=(0,n.memo)(e=>{let{quote:t,author:a,authorDescription:n,portraitSrc:i}=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:i,showFallback:!0,alt:"Portrait of ".concat(a)}})]})});i.displayName="Quote"},43849:(e,t,a)=>{"use strict";a.d(t,{WorkWithLuca:()=>m});var r=a(36685),s=a(26601),n=a(86944),l=a(92586),i=a.n(l),o=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,o.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,o.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)(i(),{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:()=>i});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"},i=(0,s.memo)(e=>{let{exercises:t}=e,[a,i]=(0,s.useState)([]),o=(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&&i(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:o}),(0,r.jsx)("ol",{children:a.map((e,t)=>(0,r.jsx)("li",{children:e},"exercise-".concat(t)))})]})});i.displayName="Exercises"},69660:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(36685),s=a(18937),n=a(86944);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"})]})})},79312:(e,t,a)=>{"use strict";a.d(t,{ClientConvertkitForm:()=>i});var r=a(36685),s=a(57604),n=a(18937);let l=(0,s.default)(()=>Promise.all([a.e(2861),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"})}),i=(0,n.memo)(e=>{let{size:t}=e;return(0,r.jsx)(l,{size:t})});i.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),i=a(92586),o=a.n(i);let c=e=>{let{posts:t,style:a="cards",forceSubscribeInvite:i=!1}=e,c=i||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)(o(),{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)(o(),{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)(o(),{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(22962),n=a(76120),l=a(74841),i=a(65839),o=a(45084),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,u=(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});u.displayName="BlogpostCardTitle";let x={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:x.tagContainer,children:t.map(e=>(0,r.jsxs)("span",{className:x.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:x.container,children:(0,r.jsxs)(s.Z,{as:n.h,href:"/posts/".concat(d),classNames:{base:x.card},children:[(0,r.jsx)(l.d,{className:x.header,children:(0,r.jsxs)("div",{className:x.headerContent,children:[(0,r.jsx)("span",{className:x.title,children:c}),(0,r.jsx)("div",{className:x.chipContainer,children:(0,r.jsx)(u,{stars:m,index:a})})]})}),(0,r.jsx)(i.U,{className:x.body,children:(0,r.jsx)("span",{className:x.description,children:p})}),(0,r.jsxs)(o.Z,{className:x.footer,children:[(0,r.jsx)("span",{className:x.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,12812))},98740:(e,t,a)=>{"use strict";a.d(t,{Video:()=>i});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"},i=(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)})})})});i.displayName="Video"}},e=>{var t=t=>e(e.s=t);e.O(0,[1715,6427,9867,2326,4119,6944,6115,3396,493,1501,9411,1759,4628,7160,5852,8299,7913,7358],()=>t(95505)),_N_E=e.O()}]);