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]="4603e67f-bbbe-48d7-ac23-508aed20fb1d",e._sentryDebugIdIdentifier="sentry-dbid-4603e67f-bbbe-48d7-ac23-508aed20fb1d")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,8871],{8871:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var s=r(84573),n=r(76997),a=r(48356),l=r(12574);r(66601);var o=r(26380),i=r(32130),c=r(81963);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)(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,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)(n.ConvertkitForm,{buttonText:"Join 25,000+ readers"})})]}),(0,s.jsx)(a.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:l,showRatings:!1,title:"They say about Luca"}),"lg"===t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d,{}),(0,s.jsx)(u,{})]})]})}},12574:(e,t,r)=>{"use strict";r.d(t,{LogoReel:()=>d});var s=r(84573),n=r(66601),a=r(92445),l=r(48356),o=r(51940);let i={width:100,height:50},c=(0,n.memo)(function(e){let{logo:t,index:r}=e;return(0,s.jsx)("div",{className:"flex-shrink-0 mx-4",children:(0,s.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"}})})}),d=(0,n.memo)(function(e){let{logos:t}=e,r=(0,n.useRef)(null),l=Array.isArray(t)&&t.length>0,d=l?Array.from({length:4},()=>t).flat():[],u=l?i.width*t.length*4:0,m=(0,o.A)({maxWidth:u}),h=(0,n.useCallback)(()=>{let e=r.current;if(!e)return;let t=e.scrollWidth;e.style.setProperty("--scroll-width","".concat(t,"px"))},[]);return((0,n.useEffect)(()=>{var e;if(!l)return;h();let t=()=>{requestAnimationFrame(h)};window.addEventListener("resize",t);let s=null==(e=r.current)?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,l]),l)?(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)(a.A,{width:"w-24"})]}):null})},26380:(e,t,r)=>{"use strict";r.d(t,{ReviewsCarousel:()=>d});var s=r(84573),n=r(66601),a=r(95099);let l=e=>{let[t,r]=(0,n.useState)(!1),s=(0,n.useRef)({x:0,scrollLeft:0}),a=(0,n.useCallback)(t=>{e.current&&(r(!0),s.current={x:"touches"in t?t.touches[0].clientX:t.clientX,scrollLeft:e.current.scrollLeft})},[e]),l=(0,n.useCallback)(()=>{r(!1)},[]),o=(0,n.useCallback)(r=>{if(!t||!e.current)return;r.preventDefault();let n="touches"in r?r.touches[0].clientX:r.clientX,a=s.current.x-n;e.current.scrollLeft=s.current.scrollLeft+a},[t,e]);return{isDragging:t,handleDragStart:a,handleDragEnd:l,handleDragMove:o}},o={SCROLL_AMOUNT:300},i=(0,n.memo)(function(e){let{review:t,showRating:r,isLast:n}=e;return(0,s.jsx)("div",{className:"w-48 md:w-64 flex-shrink-0 ".concat(n?"":"mr-4 md:mr-8"),children:(0,s.jsx)(a.ReviewCard,{review:t,showRating:r})})}),c=(0,n.memo)(function(e){let{direction:t,show:r,onClick:n}=e;return(0,s.jsx)("button",{onClick:n,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,n.memo)(function(e){let{reviews:t,showRatings:r,title:a="Some reviews",width:d,height:u}=e,m=(0,n.useRef)(null),[h,f]=(0,n.useState)(!1),[g,p]=(0,n.useState)(!0),x=(0,n.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}=l(m),k=(0,n.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),j(e))},[j]),N=(0,n.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),v(e))},[v]),C=(0,n.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),y())},[y]),L=t.length<2,E=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:a}),(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:N,onMouseUp:C,onMouseLeave:C,onMouseMove:k,onTouchStart:N,onTouchEnd:C,onTouchMove:k,children:(0,s.jsx)("div",{className:"flex ".concat(E?"md:justify-center":""),children:t.map((e,n)=>(0,s.jsx)(i,{review:e,showRating:r,isLast:n===t.length-1},"review-".concat(n)))})}),(0,s.jsx)(c,{direction:"left",show:h,onClick:()=>b("left")}),(0,s.jsx)(c,{direction:"right",show:g,onClick:()=>b("right")})]})]})})},32130:(e,t,r)=>{"use strict";r.d(t,{K:()=>n,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"}],n=[{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"}]},51940:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(66601);function n(e){let{maxWidth:t,minScale:r=.1,debounceMs:n=100}=e,[a,l]=(0,s.useState)(1),o=(0,s.useRef)(void 0),i=(0,s.useCallback)(()=>{l(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,n)};return i(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[i,n]),a}},76997:(e,t,r)=>{"use strict";r.d(t,{ConvertkitForm:()=>h});var s=r(84573),n=r(71436),a=r(88761),l=r(66601),o=r(96961),i=r(44781),c=r(11777),d=r(36821),u=r(77969);let m=d.z.object({email:d.z.string().email("Please enter a valid email address")});function h(e){var t;let{buttonText:r="Join 25,000+ readers"}=e,d=(0,c.useRouter)(),{sendEvent:h}=(0,o.s)(),{handleSubmit:f,formState:{errors:g,isSubmitting:p},register:x,setError:b}=(0,i.mN)({resolver:(0,u.u)(m),defaultValues:{email:""}}),w=(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"}),d.push("https://luca-dellanna.com/welcome");else throw Error("Subscription failed")}catch(e){console.error("Error:",e),b("email",{type:"manual",message:e instanceof Error?e.message:"An error occurred. Please try again later."})}},[d,b,h]);return(0,s.jsxs)("form",{onSubmit:f(w),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)(n.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,s.jsx)(a.T,{type:"submit",className:"primary !px-6 py-2 w-[fit-content]",isLoading:p,isDisabled:p,children:(0,s.jsx)("span",{className:"mx-6 whitespace-nowrap",children:r})})]})}},85254:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,24716,23)),Promise.resolve().then(r.bind(r,8871))},92445:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(84573),n=r(66601);let a=e=>{let{side:t,className:r,width:n}=e;return(0,s.jsx)("div",{className:"".concat(r," ").concat(n," ").concat(t,"-0 bg-gradient-to-").concat("left"===t?"r":"l"," from-white to-transparent"),"aria-hidden":"true"})},l=(0,n.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)(a,{side:"left",className:r,width:t}),(0,s.jsx)(a,{side:"right",className:r,width:t})]})})},96961:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var s=r(66601);function n(){return{sendEvent:(0,s.useCallback)(e=>{let{name:t,params:r}=e;window.gtag&&window.gtag("event",t,r)},[])}}}},e=>{var t=t=>e(e.s=t);e.O(0,[915,7194,4445,8761,4259,224,1436,6149,3825,2041,1004,2111,7358],()=>t(85254)),_N_E=e.O()}]);