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]="3bf45106-f5c3-4fd7-92ae-a1d26d00f4ce",e._sentryDebugIdIdentifier="sentry-dbid-3bf45106-f5c3-4fd7-92ae-a1d26d00f4ce")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,6775],{13683:(e,t,r)=>{"use strict";r.d(t,{ReviewsCarousel:()=>d});var s=r(71669),a=r(65297),l=r(30032);let n=e=>{let[t,r]=(0,a.useState)(!1),s=(0,a.useRef)({x:0,scrollLeft:0}),l=(0,a.useCallback)(t=>{e.current&&(r(!0),s.current={x:"touches"in t?t.touches[0].clientX:t.clientX,scrollLeft:e.current.scrollLeft})},[e]),n=(0,a.useCallback)(()=>{r(!1)},[]),o=(0,a.useCallback)(r=>{if(!t||!e.current)return;r.preventDefault();let a="touches"in r?r.touches[0].clientX:r.clientX,l=s.current.x-a;e.current.scrollLeft=s.current.scrollLeft+l},[t,e]);return{isDragging:t,handleDragStart:l,handleDragEnd:n,handleDragMove:o}},o={SCROLL_AMOUNT:300},i=(0,a.memo)(function(e){let{review:t,showRating:r,isLast:a}=e;return(0,s.jsx)("div",{className:"w-48 md:w-64 flex-shrink-0 ".concat(a?"":"mr-4 md:mr-8"),children:(0,s.jsx)(l.ReviewCard,{review:t,showRating:r})})}),c=(0,a.memo)(function(e){let{direction:t,show:r,onClick:a}=e;return(0,s.jsx)("button",{onClick:a,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)})}),d=(0,a.memo)(function(e){let{reviews:t,showRatings:r,title:l="Some reviews",width:d,height:u}=e,m=(0,a.useRef)(null),[h,f]=(0,a.useState)(!1),[g,p]=(0,a.useState)(!0),x=(0,a.useCallback)(()=>{let e=m.current;if(!e)return;let{scrollLeft:t,scrollWidth:r,clientWidth:s}=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}=n(m),N=(0,a.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),j(e))},[j]),k=(0,a.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),v(e))},[v]),C=(0,a.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),y())},[y]),L=t.length<2,T=t.length<3&&"lg"===d;return(0,s.jsxs)("section",{className:"".concat("sm"===u?"mt-0 mb-0 p-0":""," section-separator"),children:[(0,s.jsx)("h3",{className:"text-2xl font-bold mb-4",children:l}),(0,s.jsxs)("div",{className:"w-full relative",children:[(0,s.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"===d?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(L?"flex justify-center":""),ref:m,onScroll:x,onMouseDown:k,onMouseUp:C,onMouseLeave:C,onMouseMove:N,onTouchStart:k,onTouchEnd:C,onTouchMove:N,children:(0,s.jsx)("div",{className:"flex ".concat(T?"md:justify-center":""),children:t.map((e,a)=>(0,s.jsx)(i,{review:e,showRating:r,isLast:a===t.length-1},"review-".concat(a)))})}),(0,s.jsx)(c,{direction:"left",show:h,onClick:()=>b("left")}),(0,s.jsx)(c,{direction:"right",show:g,onClick:()=>b("right")})]})]})})},17474:(e,t,r)=>{"use strict";r.d(t,{K:()=>a,c:()=>s});let s=[{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"}],a=[{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"}]},23293:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(71669),a=r(65297);let l=e=>{let{side:t,className:r,width:a}=e;return(0,s.jsx)("div",{className:"".concat(r," ").concat(a," ").concat(t,"-0 bg-gradient-to-").concat("left"===t?"r":"l"," from-white to-transparent"),"aria-hidden":"true"})},n=(0,a.memo)(function(e){let{width:t}=e,r="absolute top-0 bottom-0 pointer-events-none";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l,{side:"left",className:r,width:t}),(0,s.jsx)(l,{side:"right",className:r,width:t})]})})},32549:(e,t,r)=>{"use strict";r.d(t,{ConvertkitForm:()=>m});var s=r(71669),a=r(74097),l=r(85189),n=r(65297),o=r(71247),i=r(3969),c=r(93014),d=r(19163);let u=c.z.object({email:c.z.string().email("Please enter a valid email address")});function m(e){var t;let{buttonText:r="Join 25,000+ readers"}=e,c=(0,i.useRouter)(),{handleSubmit:m,formState:{errors:h,isSubmitting:f},register:g,setError:p}=(0,o.mN)({resolver:(0,d.u)(u),defaultValues:{email:""}}),x=(0,n.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)c.push("https://luca-dellanna.com/welcome");else throw Error("Subscription failed")}catch(e){console.error("Error:",e),p("email",{type:"manual",message:e instanceof Error?e.message:"An error occurred. Please try again later."})}},[c,p]);return(0,s.jsxs)("form",{onSubmit:m(x),className:"flex flex-col items-center sm:flex-row gap-4 mt-6",children:[(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(a.r,{...g("email"),type:"email",placeholder:"Enter your email",isRequired:!0,className:"flex-grow",isDisabled:f,errorMessage:null===(t=h.email)||void 0===t?void 0:t.message,isInvalid:!!h.email,onFocus:e=>e.stopPropagation(),onBlur:e=>e.stopPropagation()})}),(0,s.jsx)(l.T,{type:"submit",className:"primary !px-6 py-2 w-[fit-content]",isLoading:f,isDisabled:f,children:(0,s.jsx)("span",{className:"mx-6 whitespace-nowrap",children:r})})]})}},43678:(e,t,r)=>{"use strict";r.d(t,{LogoReel:()=>d});var s=r(71669),a=r(65297),l=r(23293),n=r(41796),o=r(60740);let i={width:100,height:50},c=(0,a.memo)(function(e){let{logo:t,index:r}=e;return(0,s.jsx)("div",{className:"flex-shrink-0 mx-4",children:(0,s.jsx)(n.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"}})})}),d=(0,a.memo)(function(e){let{logos:t}=e,r=(0,a.useRef)(null),n=Array.isArray(t)&&t.length>0,d=n?Array.from({length:4},()=>t).flat():[],u=n?i.width*t.length*4:0,m=(0,o.A)({maxWidth:u}),h=(0,a.useCallback)(()=>{let e=r.current;if(!e)return;let t=e.scrollWidth;e.style.setProperty("--scroll-width","".concat(t,"px"))},[]);return((0,a.useEffect)(()=>{var e;if(!n)return;h();let t=()=>{requestAnimationFrame(h)};window.addEventListener("resize",t);let s=null===(e=r.current)||void 0===e?void 0:e.getElementsByTagName("img");return s&&Promise.all(Array.from(s).map(e=>e.complete||new Promise(t=>{e.onload=t,e.onerror=t}))).then(h),()=>window.removeEventListener("resize",t)},[h,n]),n)?(0,s.jsxs)("div",{className:"w-[95vw] max-w-full overflow-hidden bg-white mt-4 relative",children:[(0,s.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:d.map((e,t)=>(0,s.jsx)(c,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),(0,s.jsx)(l.A,{width:"w-24"})]}):null})},60740:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(65297);function a(e){let{maxWidth:t,minScale:r=.1,debounceMs:a=100}=e,[l,n]=(0,s.useState)(1),o=(0,s.useRef)(void 0),i=(0,s.useCallback)(()=>{n(Math.min(.95,Math.max(r,window.innerWidth/t)))},[t,r]);return(0,s.useEffect)(()=>{let e=()=>o.current&&clearTimeout(o.current),t=()=>{e(),o.current=setTimeout(i,a)};return i(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[i,a]),l}},61142:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,47564,23)),Promise.resolve().then(r.bind(r,76775))},76775:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var s=r(71669),a=r(32549),l=r(41796),n=r(43678);r(65297);var o=r(13683),i=r(17474),c=r(42283);let d=()=>(0,s.jsxs)("div",{className:"mt-8 rounded-lg p-2 small-text",children:[(0,s.jsx)("p",{className:"font-semibold",children:"In the welcome email, you will find:"}),(0,s.jsxs)("ul",{className:"no-disc",children:[(0,s.jsx)("li",{children:"✔ A guide on how to bring clarity to your teams"}),(0,s.jsx)("li",{children:'✔ A 33% discount code for my book "Best Practices For Operational Excellence"'}),(0,s.jsx)("li",{children:"✔ An archive of my top Twitter threads, including the ones market with a ⭐️ that are my favorite"}),(0,s.jsx)("li",{children:'✔ A digital copy of my book "The Employee Engagement Handbook", with plenty of concrete advice to increase talent retention and commitment'})]})]}),u=()=>(0,s.jsxs)("div",{id:"logo-reel",children:[(0,s.jsx)("p",{className:"text-center text-[10px] leading-3 my-4",children:"Part of my portfolio / trusted by leaders at"}),(0,s.jsx)(n.LogoReel,{logos:i.c})]}),m=e=>{let{size:t="lg",border:r=!0}=e,n=c.Y.filter(e=>e.object.includes("Luca"));return(0,s.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,s.jsx)("div",{className:"mx-auto flex mb-8 items-center justify-center",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsxs)("div",{id:"headline-and-form",children:["lg"===t?(0,s.jsx)("h2",{className:"mb-2",children:"Luca's newsletter"}):(0,s.jsx)("h3",{className:"mt-0 sm:mt-2 md:mt-4 mb-2",children:"Luca's newsletter"}),(0,s.jsx)("p",{className:"text-tiny text-center italic",children:"You can expect 1-2 emails a month. Unsubscribe at any time."}),(0,s.jsx)("div",{id:"ck-form",children:(0,s.jsx)(a.ConvertkitForm,{buttonText:"Join 25,000+ readers"})})]}),(0,s.jsx)(l.default,{src:"/luca-portrait.jpg",alt:"Luca Dellanna",height:150,width:100,className:"ml-8 border border-black rounded-lg hidden md:block"})]})}),(0,s.jsx)(o.ReviewsCarousel,{width:"lg",height:"sm",reviews:n,showRatings:!1,title:"They say about Luca"}),"lg"===t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d,{}),(0,s.jsx)(u,{})]})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[2315,6912,3613,5189,8276,5346,4097,9340,9694,2768,298,9577,7358],()=>t(61142)),_N_E=e.O()}]);