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]="73d5bc4b-8db9-43f2-af56-4786971be7be",e._sentryDebugIdIdentifier="sentry-dbid-73d5bc4b-8db9-43f2-af56-4786971be7be")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3270,3746],{1761:(e,t,r)=>{Promise.resolve().then(r.bind(r,3746))},32944:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var a=r(6647),n=r.n(a)},57613:(e,t,r)=>{"use strict";var a=r(51801);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}})},6647:(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(40666),n=r(98825),l=r(67873),s=a._(r(29371));function o(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:s.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=l.Image},86524:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(3896),n=r(52308);let l=e=>{let{side:t,className:r,width:n}=e;return(0,a.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"})},s=(0,n.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)(l,{side:"left",className:r,width:t}),(0,a.jsx)(l,{side:"right",className:r,width:t})]})})},87041:(e,t,r)=>{"use strict";r.d(t,{LogoReel:()=>u});var a=r(3896),n=r(52308),l=r(86524),s=r(32944),o=r(70607);let i={width:100,height:50},c=(0,n.memo)(function(e){let{logo:t,index:r}=e;return(0,a.jsx)("div",{className:"flex-shrink-0 mx-4",children:(0,a.jsx)(s.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,n.memo)(function(e){let{logos:t}=e,r=(0,n.useRef)(null);if(!Array.isArray(t)||0===t.length)return null;let s=Array.from({length:4},()=>t).flat(),u=i.width*t.length*4,d=(0,o.A)({maxWidth:u}),m=(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;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:s.map((e,t)=>(0,a.jsx)(c,{logo:e,index:t},"logo-".concat(e.alt,"-").concat(t)))}),(0,a.jsx)(l.A,{width:"w-24"})]})})},87054:(e,t,r)=>{"use strict";r.d(t,{ReviewsCarousel:()=>u});var a=r(3896),n=r(52308),l=r(99500);let s=e=>{let[t,r]=(0,n.useState)(!1),a=(0,n.useRef)({x:0,scrollLeft:0}),l=(0,n.useCallback)(t=>{if(!e.current)return;r(!0);let n="touches"in t?t.touches[0].clientX:t.clientX;a.current={x:n,scrollLeft:e.current.scrollLeft}},[e]),s=(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,l=a.current.x-n;e.current.scrollLeft=a.current.scrollLeft+l},[t,e]);return{isDragging:t,handleDragStart:l,handleDragEnd:s,handleDragMove:o}},o={SCROLL_AMOUNT:300},i=(0,n.memo)(function(e){let{review:t,showRating:r,isLast:n}=e;return(0,a.jsx)("div",{className:"w-48 md:w-64 flex-shrink-0 ".concat(n?"":"mr-4 md:mr-8"),children:(0,a.jsx)(l.ReviewCard,{review:t,showRating:r})})}),c=(0,n.memo)(function(e){let{direction:t,show:r,onClick:n}=e;return(0,a.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)})}),u=(0,n.memo)(function(e){let{reviews:t,showRatings:r,title:l="Some reviews",width:u,height:d}=e,m=(0,n.useRef)(null),[f,h]=(0,n.useState)(!1),[g,p]=(0,n.useState)(!0),b=(0,n.useCallback)(()=>{let e=m.current;if(!e)return;let{scrollLeft:t,scrollWidth:r,clientWidth:a}=e;h(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}=s(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]),L=(0,n.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),y())},[y]),C=t.length<2,S=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:l}),(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:b,onMouseDown:N,onMouseUp:L,onMouseLeave:L,onMouseMove:k,onTouchStart:N,onTouchEnd:L,onTouchMove:k,children:(0,a.jsx)("div",{className:"flex ".concat(S?"md:justify-center":""),children:t.map((e,n)=>(0,a.jsx)(i,{review:e,showRating:r,isLast:n===t.length-1},"review-".concat(n)))})}),(0,a.jsx)(c,{direction:"left",show:f,onClick:()=>x("left")}),(0,a.jsx)(c,{direction:"right",show:g,onClick:()=>x("right")})]})]})})},3746:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(3896),n=r(80890),l=r(60157),s=r(52308),o=r(32944),i=r(87041),c=r(87054),u=r(70957),d=r(58744),m=r(88166),f=r(57613),h=r(75403),g=r(29515);let p=h.z.object({email:h.z.string().email("Please enter a valid email address")}),b=()=>(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'})]})]}),x=()=>(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,f.useRouter)(),{handleSubmit:u,formState:{errors:h,isSubmitting:w},register:v,setError:y}=(0,m.mN)({resolver:(0,g.u)(p),defaultValues:{email:""}}),j=(0,s.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)(n.r,{...v("email"),type:"email",placeholder:"Enter your email",isRequired:!0,className:"flex-grow",isDisabled:w,errorMessage:null===(t=h.email)||void 0===t?void 0:t.message,isInvalid:!!h.email,onFocus:e=>e.stopPropagation(),onBlur:e=>e.stopPropagation()})}),(0,a.jsx)(l.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)(b,{}),(0,a.jsx)(x,{})]})]})}},70957:(e,t,r)=>{"use strict";r.d(t,{K:()=>n,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"}],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"}]},70607:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(52308);function n(e){let{maxWidth:t,minScale:r=.1,debounceMs:n=100}=e,[l,s]=(0,a.useState)(1),o=(0,a.useRef)(void 0),i=(0,a.useCallback)(()=>{s(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,n)};return i(),window.addEventListener("resize",t,{passive:!0}),()=>{e(),window.removeEventListener("resize",t)}},[i,n]),l}},16057:(e,t,r)=>{"use strict";function a(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let r of e)"function"==typeof r?r(t):null!=r&&(r.current=t)}}r.d(t,{P:()=>a})},33587:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var a=r(22411);function n(e,t){let{id:r,"aria-label":n,"aria-labelledby":l}=e;return r=(0,a.Bi)(r),l&&n?l=[...new Set([r,...l.trim().split(/\s+/)])].join(" "):l&&(l=l.trim().split(/\s+/).join(" ")),n||l||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":l}}},72858:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});var a=r(52308);function n(e,t,r){let[n,l]=(0,a.useState)(e||t),s=(0,a.useRef)(void 0!==e),o=void 0!==e;(0,a.useEffect)(()=>{let e=s.current;e!==o&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let i=o?e:n,c=(0,a.useCallback)((e,...t)=>{let a=(e,...t)=>{r&&!Object.is(i,e)&&r(e,...t),o||(i=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),l((r,...n)=>{let l=e(o?i:r,...n);return(a(l,...t),o)?r:l})):(o||l(e),a(e,...t))},[o,i,r]);return[i,c]}},37394:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(52308);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var s={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:n=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:c="",children:u,iconNode:d,...m}=e;return(0,a.createElement)("svg",{ref:t,...s,width:n,height:n,stroke:r,strokeWidth:i?24*Number(o)/Number(n):o,className:l("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,s)=>{let{className:i,...c}=r;return(0,a.createElement)(o,{ref:s,iconNode:t,className:l("lucide-".concat(n(e)),i),...c})});return r.displayName="".concat(e),r}},52863:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(37394).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"}]])}}]);