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]="6e1dcc39-3818-475d-a8f8-135bc8fe82c1",e._sentryDebugIdIdentifier="sentry-dbid-6e1dcc39-3818-475d-a8f8-135bc8fe82c1")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5858],{8797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var a=r(36685),n=r(92586),s=r.n(n),l=r(18937),o=r(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 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},14562:(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})},29285:(e,t,r)=>{"use strict";r.d(t,{Quote:()=>o});var a=r(36685),n=r(17337),s=r(18937);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"},43849:(e,t,r)=>{"use strict";r.d(t,{WorkWithLuca:()=>m});var a=r(36685),n=r(37720),s=r(94003),l=r(92586),o=r.n(l),i=r(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: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"},50344:(e,t,r)=>{"use strict";r.d(t,{Exercises:()=>o});var a=r(36685),n=r(18937),s=r(24300);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"},57177:(e,t,r)=>{"use strict";r.d(t,{default:()=>I});var a=r(36685),n=r(54540),s=r(40463),l=r(18937),o=r(25852),i=r(79312),c=r(79773),d=r(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,[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 h=r(30802),x=r(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: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)(x.z,{posts:t,style:"naked",forceSubscribeInvite:!0})]})});g.displayName="SimilarPosts";var f=r(92586),y=r.n(f),b=r(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:r}=e;return(0,a.jsxs)(y(),{href:"/blog?tag=".concat(t),className:"".concat(j.tag," ").concat(r?j.activeTag:""),children:["#",t]})});v.displayName="TagLink";let w=(0,l.memo)(e=>{let{tags:t}=e,r=(0,b.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))})});w.displayName="TagList";var N=r(43849),E=r(87160),S=r(14562),C=r(76966);let k=["Object Not Found Matching Id","unhandledrejection"],L=e=>k.some(t=>{var r;return null==(r=e.message)?void 0:r.includes(t)}),P=(e,t)=>{L(e)||n.v4(r=>{"string"==typeof t?r.setTag("location",t):(r.setExtra("componentStack",t.componentStack||""),r.setTag("location","BlogPostContent")),s.Cp(e)}),console.error("Error in ".concat("string"==typeof t?t:"BlogPostContent",":"),e)};function I(e){var t;let{post:r,compiledContent:n,similarPosts:s}=e;(0,C.V)("BlogPostContent");let[m,x]=(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"]},r=[...e];return e.forEach(e=>{t[e]&&r.push(...t[e])}),r}(e.map(e=>e.toLowerCase())))).map(e=>E.b.find(t=>t.slug===(0,S.Y)(e))).filter(e=>void 0!==e)})(r.tags),[r.tags]),f=(0,l.useMemo)(()=>({"@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}),[r]);return(0,l.useEffect)(()=>{requestAnimationFrame(async()=>{try{let e=null;if("function"==typeof n){let t=n({});if(t instanceof Promise)try{e=await t}catch(e){P(e,"MDX content promise");try{let e=n({});e instanceof Promise?e.then(e=>{x(e)}).catch(e=>{x((0,a.jsx)(a.Fragment,{children:"Error: Could not load post content."})),P(e,"MDX fallback promise")}):x(e)}catch(e){x((0,a.jsx)(a.Fragment,{children:"Error: Could not load post content."})),P(e,"MDX fallback sync")}}else e=t}else e=n;null!==e&&x(e)}catch(e){P(e,"MDX content render"),"function"!=typeof n&&x(n)}})},[n]),(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(h.default,{id:"json-ld",type:"application/ld+json",children:JSON.stringify(f)}),(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.jsx)("h4",{className:"text-balance text-gray-500 mt-4 mb-6",children:r.description}),(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)(w,{tags:r.tags})})]}),(0,a.jsx)(c.ErrorBoundary,{FallbackComponent:d.default,onError:(e,t)=>P(e,t),children:(0,a.jsx)("div",{className:"prose prose-lg",children:m||(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.some(e=>(null==e?void 0:e.toLowerCase().trim())==="management"))&&(0,a.jsx)(N.WorkWithLuca,{}),p.length>0&&(0,a.jsx)("section",{className:"my-8","aria-label":"Related books",children:p.map(e=>(0,a.jsx)(o.j,{book:e,borderStyle:"normal"},e.slug))}),(0,a.jsx)(g,{posts:s,className:"mt-16"}),(0,a.jsx)(i.ClientConvertkitForm,{})]})}},69660:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var a=r(36685),n=r(18937),s=r(94003);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"})]})})},76966:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});var a=r(40463),n=r(18937);let s=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"};function o(e){(0,n.useEffect)(()=>{let e=history.pushState,t=history.replaceState;return history.pushState=function(t,r,a){if(a&&"string"==typeof a)try{if(a.startsWith("/"))return e.call(this,t,r,a);return new URL(a),e.call(this,t,r,a)}catch(e){console.warn("Invalid URL detected in pushState: ".concat(a),e);return}return e.call(this,t,r,a)},history.replaceState=function(e,r,a){if(a&&"string"==typeof a)try{if(a.startsWith("/"))return t.call(this,e,r,a);return new URL(a),t.call(this,e,r,a)}catch(e){console.warn("Invalid URL detected in replaceState: ".concat(a),e);return}return t.call(this,e,r,a)},()=>{history.pushState=e,history.replaceState=t}},[]),(0,n.useEffect)(()=>{let e=e=>{var t,r,a,n,s,l;if((null==(r=e.error)||null==(t=r.message)?void 0:t.includes("replaceState"))||(null==(n=e.error)||null==(a=n.message)?void 0:a.includes("pushState"))||(null==(l=e.error)||null==(s=l.message)?void 0:s.includes("SecurityError")))return console.warn("URL-related error caught:",e.error),e.preventDefault(),!1};return window.addEventListener("error",e),()=>window.removeEventListener("error",e)},[]),(0,n.useEffect)(()=>{let e=e=>{var t,r,a,n,s,l;if((null==(r=e.reason)||null==(t=r.message)?void 0:t.includes("replaceState"))||(null==(n=e.reason)||null==(a=n.message)?void 0:a.includes("pushState"))||(null==(l=e.reason)||null==(s=l.message)?void 0:s.includes("SecurityError")))return console.warn("URL-related promise rejection caught:",e.reason),e.preventDefault(),!1};return window.addEventListener("unhandledrejection",e),()=>window.removeEventListener("unhandledrejection",e)},[]),(0,n.useEffect)(()=>{let t=t=>{if(s(t.error))return void console.debug("Suppressed non-critical error:",t.error);let r=l(t.error);a.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(s(r))return void console.debug("Suppressed non-critical promise rejection:",r);let n=l(r);a.Cp(r,{extra:{componentName:e,promiseError:!0,timestamp:new Date().toISOString(),errorDetails:n},tags:{location:e,errorType:n.type}})};return window.addEventListener("error",t),window.addEventListener("unhandledrejection",r),()=>{window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",r)}},[e])}},79312:(e,t,r)=>{"use strict";r.d(t,{ClientConvertkitForm:()=>o});var a=r(36685),n=r(57604),s=r(18937);let l=(0,n.default)(()=>Promise.all([r.e(6620),r.e(1236),r.e(5111)]).then(r.bind(r,85111)),{loadableGenerated:{webpack:()=>[85111]},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"},87847:(e,t,r)=>{"use strict";r.d(t,{z:()=>c});var a=r(36685),n=r(1343),s=r(23967),l=r(93890),o=r(92586),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."]})]})]})}},93890:(e,t,r)=>{"use strict";r.d(t,{default:()=>g});var a=r(36685),n=r(15321),s=r(40414),l=r(1834),o=r(85060),i=r(60727),c=r(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:r}=e,n=m(t,r);return n?(0,a.jsx)("span",{className:n.className,children:n.text}):null});u.displayName="BlogpostCardTitle";let h={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"},x=(0,c.memo)(e=>{let{tags:t}=e;return(0,a.jsx)("div",{className:h.tagContainer,children:t.map(e=>(0,a.jsxs)("span",{className:h.tag,children:["#",e]},e))})});x.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:h.container,children:(0,a.jsxs)(n.Z,{as:s.h,href:"/posts/".concat(d),classNames:{base:h.card},children:[(0,a.jsx)(l.d,{className:h.header,children:(0,a.jsxs)("div",{className:h.headerContent,children:[(0,a.jsx)("span",{className:h.title,children:c}),(0,a.jsx)("div",{className:h.chipContainer,children:(0,a.jsx)(u,{stars:m,index:r})})]})}),(0,a.jsx)(o.U,{className:h.body,children:(0,a.jsx)("span",{className:h.description,children:p})}),(0,a.jsxs)(i.Z,{className:h.footer,children:[(0,a.jsx)("span",{className:h.date,children:g}),(0,a.jsx)(x,{tags:f})]})]})})});p.displayName="BlogpostCard";let g=p},95505:(e,t,r)=>{Promise.resolve().then(r.bind(r,22514)),Promise.resolve().then(r.bind(r,62783)),Promise.resolve().then(r.bind(r,50344)),Promise.resolve().then(r.bind(r,8797)),Promise.resolve().then(r.bind(r,29285)),Promise.resolve().then(r.bind(r,98740)),Promise.resolve().then(r.bind(r,79312)),Promise.resolve().then(r.bind(r,57177))},98740:(e,t,r)=>{"use strict";r.d(t,{Video:()=>o});var a=r(36685),n=r(80493),s=r(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,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)})})})});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()}]);