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]="22439084-058b-49f7-bd42-9e72d02a5e8b",e._sentryDebugIdIdentifier="sentry-dbid-22439084-058b-49f7-bd42-9e72d02a5e8b")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8252,8871],{8871:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var a=r(84573),s=r(76997),n=r(48356),l=r(12574);r(66601);var o=r(26380),i=r(32130),c=r(81963);let u=()=>(0,a.jsxs)("div",{className:"mt-8 rounded-lg p-2 small-text",children:[(0,a.jsx)("p",{className:"font-semibold",children:"In the welcome email, you will find:"}),(0,a.jsxs)("ul",{className:"no-disc",children:[(0,a.jsx)("li",{children:"✔ A guide on how to bring clarity to your teams"}),(0,a.jsx)("li",{children:'✔ A 33% discount code for my book "Best Practices For Operational Excellence"'}),(0,a.jsx)("li",{children:"✔ An archive of my top Twitter threads, including the ones market with a ⭐️ that are my favorite"}),(0,a.jsx)("li",{children:'✔ A digital copy of my book "The Employee Engagement Handbook", with plenty of concrete advice to increase talent retention and commitment'})]})]}),d=()=>(0,a.jsxs)("div",{id:"logo-reel",children:[(0,a.jsx)("p",{className:"text-center text-[10px] leading-3 my-4",children:"Part of my portfolio / trusted by leaders at"}),(0,a.jsx)(l.LogoReel,{logos:i.c})]}),m=e=>{let{size:t="lg",border:r=!0}=e,l=c.Y.filter(e=>e.object.includes("Luca"));return(0,a.jsxs)("section",{className:"section-separator max-w-2xl lg:max-w-3xl p-4 md:p-8 my-12 ".concat(r?"border border-black rounded-lg shadow-lg":""),children:[(0,a.jsx)("div",{className:"mx-auto flex mb-8 items-center justify-center",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)("div",{id:"headline-and-form",children:["lg"===t?(0,a.jsx)("h2",{className:"mb-2",children:"Luca's newsletter"}):(0,a.jsx)("h3",{className:"mt-0 sm:mt-2 md:mt-4 mb-2",children:"Luca's newsletter"}),(0,a.jsx)("p",{className:"text-tiny text-center italic",children:"You can expect 1-2 emails a month. Unsubscribe at any time."}),(0,a.jsx)("div",{id:"ck-form",children:(0,a.jsx)(s.ConvertkitForm,{buttonText:"Join 25,000+ readers"})})]}),(0,a.jsx)(n.default,{src:"/luca-portrait.jpg",alt:"Luca Dellanna",height:150,width:100,className:"ml-8 border border-black rounded-lg hidden md:block"})]})}),(0,a.jsx)(o.ReviewsCarousel,{width:"lg",height:"sm",reviews:l,showRatings:!1,title:"They say about Luca"}),"lg"===t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u,{}),(0,a.jsx)(d,{})]})]})}},11777:(e,t,r)=>{"use strict";var a=r(65645);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},12574:(e,t,r)=>{"use strict";r.d(t,{LogoReel:()=>u});var a=r(84573),s=r(66601),n=r(92445),l=r(48356),o=r(51940);let i={width:100,height:50},c=(0,s.memo)(function(e){let{logo:t,index:r}=e;return(0,a.jsx)("div",{className:"flex-shrink-0 mx-4",children:(0,a.jsx)(l.default,{src:t.src,alt:t.alt,width:i.width,height:i.height,className:"h-12 w-auto object-contain",onError:e=>{e.target.style.display="none"}})})}),u=(0,s.memo)(function(e){let{logos:t}=e,r=(0,s.useRef)(null),l=Array.isArray(t)&&t.length>0,u=l?Array.from({length:4},()=>t).flat():[],d=l?i.width*t.length*4:0,m=(0,o.A)({maxWidth:d}),h=(0,s.useCallback)(()=>{let e=r.current;if(!e)return;let t=e.scrollWidth;e.style.setProperty("--scroll-width","".concat(t,"px"))},[]);return((0,s.useEffect)(()=>{var e;if(!l)return;h();let t=()=>{requestAnimationFrame(h)};window.addEventListener("resize",t);let a=null==(e=r.current)?void 0:e.getElementsByTagName("img");return a&&Promise.all(Array.from(a).map(e=>e.complete||new Promise(t=>{e.onload=t,e.onerror=t}))).then(h),()=>window.removeEventListener("resize",t)},[h,l]),l)?(0,a.jsxs)("div",{className:"w-[95vw] max-w-full overflow-hidden bg-white mt-4 relative",children:[(0,a.jsx)("div",{className:"flex animate-scroll max-w-full",ref:r,style:{transform:"scale(".concat(m,")"),transformOrigin:"left center"},role:"marquee","aria-label":"Logo reel",children:u.map((e,t)=>(0,a.jsx)(c,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),(0,a.jsx)(n.A,{width:"w-24"})]}):null})},26380:(e,t,r)=>{"use strict";r.d(t,{ReviewsCarousel:()=>u});var a=r(84573),s=r(66601),n=r(95099);let l=e=>{let[t,r]=(0,s.useState)(!1),a=(0,s.useRef)({x:0,scrollLeft:0}),n=(0,s.useCallback)(t=>{e.current&&(r(!0),a.current={x:"touches"in t?t.touches[0].clientX:t.clientX,scrollLeft:e.current.scrollLeft})},[e]),l=(0,s.useCallback)(()=>{r(!1)},[]),o=(0,s.useCallback)(r=>{if(!t||!e.current)return;r.preventDefault();let s="touches"in r?r.touches[0].clientX:r.clientX,n=a.current.x-s;e.current.scrollLeft=a.current.scrollLeft+n},[t,e]);return{isDragging:t,handleDragStart:n,handleDragEnd:l,handleDragMove:o}},o={SCROLL_AMOUNT:300},i=(0,s.memo)(function(e){let{review:t,showRating:r,isLast:s}=e;return(0,a.jsx)("div",{className:"w-48 md:w-64 flex-shrink-0 ".concat(s?"":"mr-4 md:mr-8"),children:(0,a.jsx)(n.ReviewCard,{review:t,showRating:r})})}),c=(0,s.memo)(function(e){let{direction:t,show:r,onClick:s}=e;return(0,a.jsx)("button",{onClick:s,className:"absolute ".concat(t,"-0 top-0 bottom-0 w-16 bg-transparent\n no-button-style shadow-none focus:ring-0 focus:outline-none active:bg-transparent \n border-none focus:border-none outline-none\n ").concat(r?"bg-gradient-".concat("left"===t?"to-r":"to-l"," from-white to-transparent"):"pointer-events-none"),"aria-label":"Scroll ".concat(t)})}),u=(0,s.memo)(function(e){let{reviews:t,showRatings:r,title:n="Some reviews",width:u,height:d}=e,m=(0,s.useRef)(null),[h,f]=(0,s.useState)(!1),[g,p]=(0,s.useState)(!0),x=(0,s.useCallback)(()=>{let e=m.current;if(!e)return;let{scrollLeft:t,scrollWidth:r,clientWidth:a}=e;f(t>0),p(t{let t=m.current;if(!t)return;let r="left"===e?-o.SCROLL_AMOUNT:o.SCROLL_AMOUNT;t.scrollBy({left:r,behavior:"smooth"})},[]),{isDragging:b,handleDragStart:v,handleDragEnd:y,handleDragMove:j}=l(m),k=(0,s.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),j(e))},[j]),N=(0,s.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),v(e))},[v]),C=(0,s.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),y())},[y]),L=t.length<2,A=t.length<3&&"lg"===u;return(0,a.jsxs)("section",{className:"".concat("sm"===d?"mt-0 mb-0 p-0":""," section-separator"),children:[(0,a.jsx)("h3",{className:"text-2xl font-bold mb-4",children:n}),(0,a.jsxs)("div",{className:"w-full relative",children:[(0,a.jsx)("div",{className:"mx-auto mb-4 relative overflow-x-auto scrollbar-hide select-none\n max-w-[280px] sm:max-w-[380px] md:max-w-[420px] ".concat("lg"===u?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(L?"flex justify-center":""),ref:m,onScroll:x,onMouseDown:N,onMouseUp:C,onMouseLeave:C,onMouseMove:k,onTouchStart:N,onTouchEnd:C,onTouchMove:k,children:(0,a.jsx)("div",{className:"flex ".concat(A?"md:justify-center":""),children:t.map((e,s)=>(0,a.jsx)(i,{review:e,showRating:r,isLast:s===t.length-1},"review-".concat(s)))})}),(0,a.jsx)(c,{direction:"left",show:h,onClick:()=>w("left")}),(0,a.jsx)(c,{direction:"right",show:g,onClick:()=>w("right")})]})]})})},32130:(e,t,r)=>{"use strict";r.d(t,{K:()=>s,c:()=>a});let a=[{src:"/societe-generale.png",alt:"Soci\xe9t\xe9 G\xe9nerale"},{src:"/shopify.png",alt:"Shopify"},{src:"/dupont.png",alt:"DuPont"},{src:"/mckinsey.png",alt:"McKinsey and Company"},{src:"/markel.png",alt:"Markel Group"},{src:"/standard-chartered.png",alt:"Standard Chartered"},{src:"/shopify.png",alt:"Shopify"},{src:"/marriott.png",alt:"Marriott"},{src:"/genova-university.png",alt:"Genova University"},{src:"/mises-institute.png",alt:"Mises Institute"},{src:"/upstart-wealth-management.png",alt:"Upstart Wealth Management"}],s=[{src:"/amazon.png",alt:"Amazon"},{src:"/barnes-noble.png",alt:"Barnes&Noble"},{src:"/apple-books.png",alt:"Apple Books"},{src:"/google-play.png",alt:"Google Play Books"}]},42587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return i},getImageProps:function(){return o}});let a=r(24175),s=r(64093),n=r(34445),l=a._(r(75159));function o(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let i=n.Image},48356:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var a=r(42587),s=r.n(a)},51940:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(66601);function s(e){let{maxWidth:t,minScale:r=.1,debounceMs:s=100}=e,[n,l]=(0,a.useState)(1),o=(0,a.useRef)(void 0),i=(0,a.useCallback)(()=>{l(Math.min(.95,Math.max(r,window.innerWidth/t)))},[t,r]);return(0,a.useEffect)(()=>{let e=()=>o.current&&clearTimeout(o.current),t=()=>{e(),o.current=setTimeout(i,s)};return i(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[i,s]),n}},63056:(e,t,r)=>{Promise.resolve().then(r.bind(r,8871))},64049:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var a=r(66601);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),l=e=>{let t=n(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},i=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:u="",children:d,iconNode:m,...h}=e;return(0,a.createElement)("svg",{ref:t,...c,width:s,height:s,stroke:r,strokeWidth:l?24*Number(n)/Number(s):n,className:o("lucide",u),...!d&&!i(h)&&{"aria-hidden":"true"},...h},[...m.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),d=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:i,...c}=r;return(0,a.createElement)(u,{ref:n,iconNode:t,className:o("lucide-".concat(s(l(e))),"lucide-".concat(e),i),...c})});return r.displayName=l(e),r}},64495:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(64049).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},76997:(e,t,r)=>{"use strict";r.d(t,{ConvertkitForm:()=>h});var a=r(84573),s=r(71436),n=r(88761),l=r(66601),o=r(96961),i=r(44781),c=r(11777),u=r(36821),d=r(77969);let m=u.z.object({email:u.z.string().email("Please enter a valid email address")});function h(e){var t;let{buttonText:r="Join 25,000+ readers"}=e,u=(0,c.useRouter)(),{sendEvent:h}=(0,o.s)(),{handleSubmit:f,formState:{errors:g,isSubmitting:p},register:x,setError:w}=(0,i.mN)({resolver:(0,d.u)(m),defaultValues:{email:""}}),b=(0,l.useCallback)(async e=>{try{if((await fetch("https://app.convertkit.com/forms/1862996/subscriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email_address:e.email})})).ok)h({name:"subscribed_to_newsletter"}),u.push("https://luca-dellanna.com/welcome");else throw Error("Subscription failed")}catch(e){console.error("Error:",e),w("email",{type:"manual",message:e instanceof Error?e.message:"An error occurred. Please try again later."})}},[u,w,h]);return(0,a.jsxs)("form",{onSubmit:f(b),className:"flex flex-col items-center sm:flex-row gap-4 mt-6",children:[(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(s.r,{...x("email"),type:"email",placeholder:"Enter your email",isRequired:!0,className:"flex-grow",isDisabled:p,errorMessage:null==(t=g.email)?void 0:t.message,isInvalid:!!g.email,onFocus:e=>e.stopPropagation(),onBlur:e=>e.stopPropagation()})}),(0,a.jsx)(n.T,{type:"submit",className:"primary !px-6 py-2 w-[fit-content]",isLoading:p,isDisabled:p,children:(0,a.jsx)("span",{className:"mx-6 whitespace-nowrap",children:r})})]})}},92445:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(84573),s=r(66601);let n=e=>{let{side:t,className:r,width:s}=e;return(0,a.jsx)("div",{className:"".concat(r," ").concat(s," ").concat(t,"-0 bg-gradient-to-").concat("left"===t?"r":"l"," from-white to-transparent"),"aria-hidden":"true"})},l=(0,s.memo)(function(e){let{width:t}=e,r="absolute top-0 bottom-0 pointer-events-none";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n,{side:"left",className:r,width:t}),(0,a.jsx)(n,{side:"right",className:r,width:t})]})})},96961:(e,t,r)=>{"use strict";r.d(t,{s:()=>s});var a=r(66601);function s(){return{sendEvent:(0,a.useCallback)(e=>{let{name:t,params:r}=e;window.gtag&&window.gtag("event",t,r)},[])}}}}]);