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]="f8e18445-ae75-4339-a804-9d35ecbaf3d8",e._sentryDebugIdIdentifier="sentry-dbid-f8e18445-ae75-4339-a804-9d35ecbaf3d8")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5858],{64190:(e,t,r)=>{Promise.resolve().then(r.bind(r,28508)),Promise.resolve().then(r.bind(r,72049)),Promise.resolve().then(r.bind(r,53919)),Promise.resolve().then(r.bind(r,61646)),Promise.resolve().then(r.bind(r,69353)),Promise.resolve().then(r.bind(r,1015)),Promise.resolve().then(r.bind(r,30223)),Promise.resolve().then(r.bind(r,73243))},12950:(e,t,r)=>{"use strict";r.d(t,{z:()=>c});var a=r(3896),n=r(52863),s=r(62783),l=r(18809),o=r(70744),i=r.n(o);let c=e=>{let{posts:t,style:r="cards",forceSubscribeInvite:o=!1}=e,c=o||t.length<3;return(0,a.jsxs)("div",{className:"flex flex-col gap-4 justify-center",children:[(0,a.jsx)("div",{className:"container mx-4 ".concat("cards"===r?"my-4":"my-0"," mx-auto flex flex-wrap gap-4 justify-center"),children:"cards"===r?t.map((e,t)=>(0,a.jsx)(l.default,{post:e,index:t},e.slug)):(0,a.jsx)("div",{className:"flex flex-col gap-2",children:t.map(e=>(0,a.jsxs)("div",{className:"flex flex-row items-center my-0",children:[e.stars>1&&(0,a.jsx)(n.A,{className:"w-4 h-4 mr-2 text-yellow-500 fill-yellow-500"}),(0,a.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,a.jsx)(s.A,{className:"w-4 h-4 ml-2 text-gray-600"})]})]},e.slug))})}),(0,a.jsxs)("footer",{className:"flex flex-col gap-2",children:[c&&(0,a.jsxs)("p",{className:"text-tiny text-gray-400 text-center text-balance !my-0",children:["I will add more posts soon (subscribe to"," ",(0,a.jsx)(i(),{href:"/newsletter",children:"my newsletter"})," to be notified)."]}),(0,a.jsxs)("p",{className:"text-tiny text-gray-400 text-center text-balance !my-0",children:["Click ",(0,a.jsx)(i(),{href:"/blog",children:"here"})," to view all of my posts."]})]})]})}},18809:(e,t,r)=>{"use strict";r.d(t,{default:()=>g});var a=r(3896),n=r(49948),s=r(27240),l=r(3851),o=r(17429),i=r(77470),c=r(52308);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:r}=e,n=m(t,r);return n?(0,a.jsx)("span",{className:n.className,children:n.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,a.jsx)("div",{className:x.tagContainer,children:t.map(e=>(0,a.jsxs)("span",{className:x.tag,children:["#",e]},e))})});h.displayName="Tags";let p=(0,c.memo)(e=>{let{post:t,index:r}=e,{title:c,slug:d,stars:m,description:p,date:g,tags:f}=t;return(0,a.jsx)("div",{className:x.container,children:(0,a.jsxs)(n.Z,{as:s.h,href:"/posts/".concat(d),classNames:{base:x.card},children:[(0,a.jsx)(l.d,{className:x.header,children:(0,a.jsxs)("div",{className:x.headerContent,children:[(0,a.jsx)("span",{className:x.title,children:c}),(0,a.jsx)("div",{className:x.chipContainer,children:(0,a.jsx)(u,{stars:m,index:r})})]})}),(0,a.jsx)(o.U,{className:x.body,children:(0,a.jsx)("span",{className:x.description,children:p})}),(0,a.jsxs)(i.Z,{className:x.footer,children:[(0,a.jsx)("span",{className:x.date,children:g}),(0,a.jsx)(h,{tags:f})]})]})})});p.displayName="BlogpostCard";let g=p},53919:(e,t,r)=>{"use strict";r.d(t,{Exercises:()=>o});var a=r(3896),n=r(52308),s=r(87392);let l={container:"blog-frame text-center text-balance",heading:"font-bold mt-0 mb-4"},o=(0,n.memo)(e=>{let{exercises:t}=e,[r,o]=(0,n.useState)([]),i=(0,n.useMemo)(()=>t.length>1?"Exercises":"Exercise",[t.length]);return(0,n.useEffect)(()=>{let e=!0;return(async()=>{try{let r=await Promise.all(t.map(async e=>{let{content:t}=await (0,s.d)({source:e});return t}));e&&o(r)}catch(e){console.error("Failed to render exercises:",e)}})(),()=>{e=!1}},[t]),(0,a.jsxs)("div",{className:l.container,children:[(0,a.jsx)("h4",{className:l.heading,children:i}),(0,a.jsx)("ol",{children:r.map((e,t)=>(0,a.jsx)("li",{children:e},"exercise-".concat(t)))})]})});o.displayName="Exercises"},61646:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var a=r(3896),n=r(70744),s=r.n(n),l=r(52308),o=r(57613);let i={container:"blog-frame text-center text-balance",title:"font-bold mt-0 mb-4",link:"text-blue-500 hover:underline"},c=(e,t)=>{let r=t?"".concat(t,": ").concat(e):e,a=r.length>200?"".concat(r.slice(0,200),"..."):r;return encodeURIComponent('"'.concat(a,'" by @DellannaLuca\n'))},d=(0,l.memo)(e=>{let{title:t="Principle",text:r}=e,n=(0,o.usePathname)(),l=encodeURIComponent("".concat("https://Luca-Dellanna.com").concat(n)),d=c(r,t);return(0,a.jsxs)("div",{className:i.container,children:[(0,a.jsx)("h4",{className:i.title,children:t}),(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:r})}),(0,a.jsx)("p",{children:(0,a.jsx)(s(),{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},69353:(e,t,r)=>{"use strict";r.d(t,{Quote:()=>o});var a=r(3896),n=r(52854),s=r(52308);let l={container:"blog-frame text-center text-balance",quote:"mb-8 text-balance"},o=(0,s.memo)(e=>{let{quote:t,author:r,authorDescription:s,portraitSrc:o}=e;return(0,a.jsxs)("div",{className:l.container,children:[(0,a.jsxs)("p",{className:l.quote,children:["“",t,"”"]}),(0,a.jsx)(n.S,{name:r,description:s,avatarProps:{src:o,showFallback:!0,alt:"Portrait of ".concat(r)}})]})});o.displayName="Quote"},1015:(e,t,r)=>{"use strict";r.d(t,{Video:()=>o});var a=r(3896),n=r(15705),s=r(52308);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,s.memo)(e=>{let{youtubeId:t,showControls:r=!1}=e;return(0,a.jsx)("div",{className:l.container,children:(0,a.jsx)("div",{className:l.videoWrapper,children:(0,a.jsx)(n.YouTubeEmbed,{videoid:t,params:"controls=".concat(r?1:0)})})})});o.displayName="Video"},71592:(e,t,r)=>{"use strict";r.d(t,{WorkWithLuca:()=>m});var a=r(3896),n=r(6643),s=r(60157),l=r(70744),o=r.n(l),i=r(52308);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:r,imageSrc:s}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("p",{className:c.review.text,children:['"',t,'"']}),(0,a.jsx)("div",{className:c.review.author.wrapper,children:(0,a.jsxs)("div",{className:c.review.author.container,children:[(0,a.jsxs)("span",{className:c.review.author.name,children:["– ",r]}),(0,a.jsx)(n.W,{src:s,alt:r,width:20,height:20,className:c.review.author.image})]})})]})});d.displayName="Review";let m=(0,i.memo)(()=>(0,a.jsx)("section",{className:c.section,children:(0,a.jsxs)("div",{className:c.content.wrapper,children:[(0,a.jsxs)("div",{className:c.content.text,children:[(0,a.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,a.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,a.jsx)("div",{className:c.content.buttonWrapper,children:(0,a.jsx)(o(),{href:"/contact",children:(0,a.jsx)(s.T,{color:"primary",size:"sm",className:"mx-auto",children:"Email Luca"})})})]}),(0,a.jsx)("div",{className:c.content.image,children:(0,a.jsx)(n.W,{src:"/luca-no-bg.png",alt:"Luca Dellanna",width:140,height:210})})]})}));m.displayName="WorkWithLuca"},30223:(e,t,r)=>{"use strict";r.d(t,{ClientConvertkitForm:()=>o});var a=r(3896),n=r(6722),s=r(52308);let l=(0,n.default)(()=>Promise.all([r.e(890),r.e(9509),r.e(3746)]).then(r.bind(r,3746)),{loadableGenerated:{webpack:()=>[3746]},ssr:!1,loading:()=>(0,a.jsx)("div",{className:"min-h-[200px] animate-pulse bg-gray-100 rounded-lg"})}),o=(0,s.memo)(e=>{let{size:t}=e;return(0,a.jsx)(l,{size:t})});o.displayName="ClientConvertkitForm"},63485:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var a=r(3896),n=r(52308),s=r(60157);let l=(0,n.memo)(function(e){let{error:t,resetErrorBoundary:r,message:n="We're sorry, a problem occurred. Please try again later."}=e;return(0,a.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,a.jsx)("h2",{className:"text-lg font-semibold text-red-800 mb-2",children:"Oops! Something went wrong"}),(0,a.jsx)("p",{className:"text-red-700 mb-4",children:n}),!1,(0,a.jsx)(s.T,{onPress:r,color:"danger",className:"w-full sm:w-auto",children:"Try again"})]})})},73243:(e,t,r)=>{"use strict";r.d(t,{default:()=>I});var a=r(3896),n=r(52320),s=r(42363),l=r(52308),o=r(2883),i=r(30223),c=r(2061),d=r(63485);let m={button:"fixed bottom-4 right-4 bg-blue-500 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-blue-500 hover:underline"},u=(0,l.memo)(e=>{let{content:t}=e,[r,n]=(0,l.useState)([]),[s,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&&n(e)},100);return()=>clearTimeout(e)},[]),r.length<=4)return null;let i=()=>o(!1);return(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{onClick:()=>o(e=>!e),className:m.button,"aria-expanded":s,"aria-controls":"outline-sidebar",children:s?"Close":"Outline"}),s&&(0,a.jsxs)("nav",{id:"outline-sidebar",className:m.sidebar,"aria-label":"Table of contents",children:[(0,a.jsx)("h3",{className:m.heading,children:"Outline"}),(0,a.jsx)("ul",{children:r.map((e,t)=>(0,a.jsx)("li",{className:m.listItem(e.level),children:(0,a.jsx)("a",{href:"#".concat(e.id),className:m.link,onClick:i,children:e.text})},t))})]})]})});u.displayName="Outline";var x=r(168),h=r(12950);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:r}=e;return 0===t.length?null:(0,a.jsxs)("section",{className:"".concat(p.container," ").concat(r||""),children:[(0,a.jsx)("h4",{className:p.heading,children:"Similar posts you might like"}),(0,a.jsx)(h.z,{posts:t,style:"naked",forceSubscribeInvite:!0})]})});g.displayName="SimilarPosts";var f=r(70744),b=r.n(f),y=r(57613);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:r}=e;return(0,a.jsxs)(b(),{href:"/blog?tag=".concat(t),className:"".concat(j.tag," ").concat(r?j.activeTag:""),children:["#",t]})});v.displayName="TagLink";let N=(0,l.memo)(e=>{let{tags:t}=e,r=(0,y.useSearchParams)(),n=null==r?void 0:r.get("tag");return(0,a.jsx)("p",{className:j.container,children:t.map(e=>(0,a.jsx)(v,{tag:e,isActive:n===e},e))})});N.displayName="TagList";var w=r(71592),C=r(25476),E=r(96023);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)){console.debug("Suppressed non-critical error:",t.error);return}let r=S(t.error);s.Cp(t.error,{extra:{componentName:e,timestamp:new Date().toISOString(),errorDetails:r},tags:{location:e,errorType:r.type}})},r=t=>{let r="reason"in t?t.reason:t;if(k(r)){console.debug("Suppressed non-critical promise rejection:",r);return}let a=S(r);s.Cp(r,{extra:{componentName:e,promiseError:!0,timestamp:new Date().toISOString(),errorDetails:a},tags:{location:e,errorType:a.type}})};return window.addEventListener("error",t),window.addEventListener("unhandledrejection",r),()=>{window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",r)}},[e])},L=(e,t)=>{var r;if(null===(r=e.message)||void 0===r?void 0:r.includes("Object Not Found Matching Id")){console.debug("Suppressed non-critical error:",e.message);return}n.v4(r=>{r.setExtra("componentStack",t.componentStack||""),r.setTag("location","BlogPostContent"),s.Cp(e)})};function I(e){var t;let{post:r,compiledContent:n,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"]},r=[...e];return e.forEach(e=>{t[e]&&r.push(...t[e])}),r}(e.map(e=>e.toLowerCase())))).map(e=>C.b.find(t=>t.slug===(0,E.Y)(e))).filter(e=>void 0!==e)}(r.tags),b={"@context":"https://schema.org","@type":"BlogPosting",headline:r.title,datePublished:r.date,author:{"@type":"Person",name:"Luca Dellanna"},keywords:r.tags.join(","),url:"https://luca-dellanna.com/posts/".concat(r.slug),description:r.description};return(0,l.useEffect)(()=>{(async()=>{var e,t,r,a;try{if("function"==typeof n){let r=n({});if(r instanceof Promise)try{let e=await r;p(e)}catch(a){console.error("Promise rejection in MDX content:",a),!(a instanceof Error)||(null===(e=a.message)||void 0===e?void 0:e.includes("Object Not Found Matching Id"))||(null===(t=a.message)||void 0===t?void 0:t.includes("unhandledrejection"))||s.Cp(a);let r=n({});r instanceof Promise||p(r)}else p(r)}else p(n)}catch(e){console.error("Error rendering MDX content:",e),!(e instanceof Error)||(null===(r=e.message)||void 0===r?void 0:r.includes("Object Not Found Matching Id"))||(null===(a=e.message)||void 0===a?void 0:a.includes("unhandledrejection"))||s.Cp(e),"function"!=typeof n&&p(n)}})().catch(e=>{console.error("Unhandled error in renderContent:",e),s.Cp(e),"function"!=typeof n&&p(n)})},[n]),(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(x.default,{id:"json-ld",type:"application/ld+json",children:JSON.stringify(b)}),(0,a.jsxs)("article",{className:"max-w-3xl mx-auto my-8",children:[(0,a.jsxs)("header",{className:"mb-6",children:[(0,a.jsx)("h1",{className:"mb-2 text-balance",children:r.title}),(0,a.jsxs)("p",{className:"text-center text-tiny italic mb-1",children:[r.date," by Luca Dellanna"]}),(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)("p",{className:"text-gray-500","aria-label":"Loading tags",children:"Loading tags..."}),children:(0,a.jsx)(N,{tags:r.tags})})]}),(0,a.jsx)(c.ErrorBoundary,{FallbackComponent:d.default,onError:L,children:(0,a.jsx)("div",{className:"prose prose-lg",children:h||(0,a.jsx)("p",{className:"text-gray-500","aria-label":"Loading content",children:"Loading content..."})})})]}),(0,a.jsx)(u,{content:n}),(null===(t=r.tags)||void 0===t?void 0:t.some(e=>(null==e?void 0:e.toLowerCase().trim())==="management"))&&(0,a.jsx)(w.WorkWithLuca,{}),f.length>0&&(0,a.jsx)("section",{className:"my-8","aria-label":"Related books",children:f.map(e=>(0,a.jsx)(o.j,{book:e,borderStyle:"normal"},e.slug))}),(0,a.jsx)(g,{posts:m,className:"mt-16"}),(0,a.jsx)(i.ClientConvertkitForm,{})]})}},96023:(e,t,r)=>{"use strict";function a(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,"")}r.d(t,{Y:()=>a})}},e=>{var t=t=>e(e.s=t);e.O(0,[661,691,1796,4555,7873,157,7931,3957,4137,7509,3519,5476,2883,8016,7410,7358],()=>t(64190)),_N_E=e.O()}]);