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]="b73bb1e8-4659-4cb5-a18e-3b20dc2d177c",e._sentryDebugIdIdentifier="sentry-dbid-b73bb1e8-4659-4cb5-a18e-3b20dc2d177c")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[507,9238],{15392:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(17828).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"}]])},16852:(e,t,r)=>{"use strict";var a=r(69732);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}})},17828:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(27030);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var l={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 o=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:c="",children:u,iconNode:d,...m}=e;return(0,a.createElement)("svg",{ref:t,...l,width:s,height:s,stroke:r,strokeWidth:i?24*Number(o)/Number(s):o,className:n("lucide",c),...m},[...d.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),i=(e,t)=>{let r=(0,a.forwardRef)((r,l)=>{let{className:i,...c}=r;return(0,a.createElement)(o,{ref:l,iconNode:t,className:n("lucide-".concat(s(e)),i),...c})});return r.displayName="".concat(e),r}},41359:(e,t,r)=>{Promise.resolve().then(r.bind(r,80507))},45684:(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(48897),s=r(54072),n=r(93892),l=a._(r(49116));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},49984:(e,t,r)=>{"use strict";r.d(t,{ReviewsCarousel:()=>u});var a=r(94774),s=r(27030),n=r(49539);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:w,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]),L=(0,s.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),y())},[y]),C=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-[300px] sm:max-w-[380px] md:max-w-[420px] ".concat("lg"===u?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(C?"flex justify-center":""),ref:m,onScroll:x,onMouseDown:N,onMouseUp:L,onMouseLeave:L,onMouseMove:k,onTouchStart:N,onTouchEnd:L,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:()=>b("left")}),(0,a.jsx)(c,{direction:"right",show:g,onClick:()=>b("right")})]})]})})},59828:(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"}]},64423:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(94774),s=r(27030);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})]})})},64470:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(27030);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}},68463:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var a=r(45684),s=r.n(a)},80507:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(94774),s=r(6726),n=r(98844),l=r(27030),o=r(68463),i=r(86772),c=r(49984),u=r(59828),d=r(89637),m=r(161),h=r(16852),f=r(12972),g=r(80856);let p=f.z.object({email:f.z.string().email("Please enter a valid email address")}),x=()=>(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'})]})]}),b=()=>(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)(i.LogoReel,{logos:u.c})]}),w=e=>{var t;let{size:r="lg"}=e,i=(0,h.useRouter)(),{handleSubmit:u,formState:{errors:f,isSubmitting:w},register:v,setError:y}=(0,m.mN)({resolver:(0,g.u)(p),defaultValues:{email:""}}),j=(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)i.push("https://luca-dellanna.com/welcome");else throw Error("Subscription failed")}catch(e){console.error("Error:",e),y("email",{type:"manual",message:e instanceof Error?e.message:"An error occurred. Please try again later."})}},[i,y]),k=d.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 border border-black rounded-lg shadow-lg",children:[(0,a.jsx)("form",{onSubmit:u(j),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"===r?(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.jsxs)("div",{id:"ck-form",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,{...v("email"),type:"email",placeholder:"Enter your email",isRequired:!0,className:"flex-grow",isDisabled:w,errorMessage:null===(t=f.email)||void 0===t?void 0:t.message,isInvalid:!!f.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:w,isDisabled:w,children:(0,a.jsx)("span",{className:"mx-6 whitespace-nowrap",children:"Join 25,000+ readers"})})]})]}),(0,a.jsx)(o.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)(c.ReviewsCarousel,{width:"lg",height:"sm",reviews:k,showRatings:!1,title:"They say about Luca"}),"lg"===r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{}),(0,a.jsx)(b,{})]})]})}},86772:(e,t,r)=>{"use strict";r.d(t,{LogoReel:()=>u});var a=r(94774),s=r(27030),n=r(64423),l=r(68463),o=r(64470);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);if(!Array.isArray(t)||0===t.length)return null;let l=Array.from({length:4},()=>t).flat(),u=i.width*t.length*4,d=(0,o.A)({maxWidth:u}),m=(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;m();let t=()=>{requestAnimationFrame(m)};window.addEventListener("resize",t);let a=null===(e=r.current)||void 0===e?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(m),()=>window.removeEventListener("resize",t)},[m]),(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(d,")"),transformOrigin:"left center"},role:"marquee","aria-label":"Logo reel",children:l.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"})]})})}}]);