!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e45561cb-5b3e-4f57-98ab-740757bd9778",e._sentryDebugIdIdentifier="sentry-dbid-e45561cb-5b3e-4f57-98ab-740757bd9778")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[333],{6021:function(e,t,s){Promise.resolve().then(s.bind(s,30594)),Promise.resolve().then(s.bind(s,23251)),Promise.resolve().then(s.bind(s,48188)),Promise.resolve().then(s.bind(s,50598)),Promise.resolve().then(s.bind(s,3656)),Promise.resolve().then(s.bind(s,58663)),Promise.resolve().then(s.bind(s,26060)),Promise.resolve().then(s.bind(s,92507)),Promise.resolve().then(s.bind(s,77053)),Promise.resolve().then(s.bind(s,52467)),Promise.resolve().then(s.bind(s,14879)),Promise.resolve().then(s.bind(s,99144)),Promise.resolve().then(s.bind(s,90151)),Promise.resolve().then(s.bind(s,49347)),Promise.resolve().then(s.bind(s,26223)),Promise.resolve().then(s.bind(s,57460)),Promise.resolve().then(s.bind(s,62454)),Promise.resolve().then(s.bind(s,79921)),Promise.resolve().then(s.bind(s,22808)),Promise.resolve().then(s.bind(s,83607)),Promise.resolve().then(s.bind(s,84785)),Promise.resolve().then(s.bind(s,11014)),Promise.resolve().then(s.bind(s,22724)),Promise.resolve().then(s.bind(s,9090)),Promise.resolve().then(s.bind(s,24908)),Promise.resolve().then(s.bind(s,19509)),Promise.resolve().then(s.bind(s,10807)),Promise.resolve().then(s.bind(s,57466)),Promise.resolve().then(s.bind(s,52120)),Promise.resolve().then(s.bind(s,59732)),Promise.resolve().then(s.bind(s,65951)),Promise.resolve().then(s.bind(s,30140)),Promise.resolve().then(s.bind(s,89334)),Promise.resolve().then(s.bind(s,4514)),Promise.resolve().then(s.bind(s,66175)),Promise.resolve().then(s.bind(s,68710)),Promise.resolve().then(s.bind(s,48299)),Promise.resolve().then(s.bind(s,8418)),Promise.resolve().then(s.bind(s,41344)),Promise.resolve().then(s.bind(s,54409)),Promise.resolve().then(s.t.bind(s,1680,23)),Promise.resolve().then(s.t.bind(s,96103,23)),Promise.resolve().then(s.bind(s,50707)),Promise.resolve().then(s.bind(s,46013)),Promise.resolve().then(s.bind(s,85162)),Promise.resolve().then(s.bind(s,1588)),Promise.resolve().then(s.bind(s,60895)),Promise.resolve().then(s.bind(s,81738)),Promise.resolve().then(s.bind(s,91906)),Promise.resolve().then(s.bind(s,87045)),Promise.resolve().then(s.bind(s,5114)),Promise.resolve().then(s.bind(s,50163)),Promise.resolve().then(s.bind(s,86788)),Promise.resolve().then(s.bind(s,70535))},30319:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});var n=s(8027),r=s(3072),l=s(46556),o=s(18090),i=s(67211);function a(e){let{posts:t,style:s="cards",forceSubscribeInvite:a=!1}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-4 justify-center",children:[(0,n.jsxs)("div",{className:"container mx-4 ".concat("cards"===s?"my-4":"my-0"," mx-auto flex flex-wrap gap-4 justify-center"),children:["cards"===s&&t.map((e,t)=>(0,n.jsx)(o.default,{post:e,index:t},e.slug)),"naked"===s&&(0,n.jsx)("div",{className:"flex flex-col gap-2",children:t.map(e=>(0,n.jsxs)("div",{className:"flex flex-row items-center my-0",children:[e.stars>1&&(0,n.jsx)(i.Z,{className:"w-4 h-4 mr-2 text-yellow-500 fill-yellow-500"}),(0,n.jsxs)(r.default,{href:"/posts/".concat(e.slug),className:"flex flex-row items-center text-gray-600 hover:scale-100 no-underline",children:[" ",e.title,(0,n.jsx)(l.Z,{className:"w-4 h-4 ml-2 text-gray-600"})]})]},e.slug))})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(a||t.length<3)&&(0,n.jsxs)("p",{className:"text-tiny text-gray-400 text-center text-balance !my-0",children:["I will add more posts soon (subscribed to"," ",(0,n.jsx)("a",{href:"/newsletter",children:"my newsletter"})," to be notified."]}),(0,n.jsxs)("p",{className:"text-tiny text-gray-400 text-center text-balance !my-0",children:["Click ",(0,n.jsx)("a",{href:"/blog",children:"here"})," to view all of my posts."]})]})]})}},18090:function(e,t,s){"use strict";var n=s(8027),r=s(21744),l=s(26243),o=s(89280),i=s(99407),a=s(85176);t.default=e=>{let{post:t,index:s}=e;return(0,n.jsx)("div",{className:"mx-auto w-full md:max-w-[48%] 2xl:max-w-[31%]",children:(0,n.jsxs)(r.w,{as:l.O,href:"/posts/".concat(t.slug),classNames:{base:"no-button-style z-0 p-2 w-full min-w-64 cursor-pointer"},children:[(0,n.jsx)(o.u,{className:"py-1 md:py-2 lg:py-3",children:(0,n.jsxs)("div",{className:"w-full flex justify-between items-start",children:[(0,n.jsx)("span",{className:"text-left text-balance font-semibold",children:t.title}),(0,n.jsxs)("div",{className:"flex justify-end mt-1 ml-2",children:[t.stars>=2&&(0,n.jsx)("span",{className:"text-tiny rounded-md px-1 py-0.5 text-nowrap text-rose-600 border border-rose-600",children:"Most popular"}),(t.stars>=1&&t.stars<2||0===s&&t.stars<1&&t.stars>0)&&(0,n.jsx)("span",{className:"text-tiny rounded-md px-1 py-0.5 text-orange-500 border border-orange-500",children:"Popular"}),0===t.stars&&0===s&&(0,n.jsx)("span",{className:"text-tiny rounded-md px-1 py-0.5 text-nowrap text-orange-500 border border-orange-500",children:"Most recent"})]})]})}),(0,n.jsx)(i.G,{className:"py-2",children:(0,n.jsx)("span",{className:"text-sm text-gray-500",children:t.description})}),(0,n.jsxs)(a.i,{className:"flex justify-between items-end py-1 md:py-2 lg:py-3",children:[(0,n.jsx)("span",{className:"text-tiny text-gray-400 min-w-20",children:t.date}),(0,n.jsx)("div",{className:"flex flex-wrap space-x-1 justify-end",children:t.tags.map(e=>(0,n.jsxs)("span",{className:"text-tiny text-gray-400",children:["#",e]},e))})]})]})})}},85162:function(e,t,s){"use strict";s.d(t,{Exercises:function(){return o}});var n=s(8027),r=s(3314),l=s(79135);function o(e){let{exercises:t}=e,[s,o]=(0,r.useState)([]);return(0,r.useEffect)(()=>{(async()=>{o(await Promise.all(t.map(async e=>{let{content:t}=await (0,l.v)({source:e});return t})))})()},[t]),(0,n.jsxs)("div",{className:"blog-frame text-center text-balance",children:[(0,n.jsx)("h4",{className:"font-bold mt-0 mb-4",children:t.length>1?"Exercises":"Exercise"}),(0,n.jsx)("ol",{children:s.map((e,t)=>(0,n.jsx)("li",{children:e},t))})]})}},1588:function(e,t,s){"use strict";var n=s(8027),r=s(3314);t.default=e=>{let{content:t}=e,s=Array.isArray(t)?t:[t],[l,o]=(0,r.useState)([]),[i,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{(()=>{let e=[];r.Children.forEach(s,t=>{r.isValidElement(t)&&("h2"===t.type||"h3"===t.type)&&e.push({id:t.props.id,text:t.props.children,level:"h2"===t.type?2:3})}),e.length>4&&o(e)})()},[s]),(0,n.jsx)(n.Fragment,{children:l.length>4&&(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:()=>a(!i),className:"fixed bottom-4 right-4 bg-blue-500 text-white p-2 px-4 rounded-full shadow-lg z-50",children:i?"Close":"Outline"}),i&&(0,n.jsxs)("div",{className:"fixed top-12 bottom-0 items-center align-middle right-0 h-full w-64 bg-white shadow-xl p-4 overflow-y-auto",children:[(0,n.jsx)("h3",{className:"text-xl font-bold mb-4",children:"Outline"}),(0,n.jsx)("ul",{children:l.map(e=>(0,n.jsx)("li",{className:"text-sm mb-2 ".concat(3===e.level?"ml-4":""),children:(0,n.jsx)("a",{href:"#".concat(e.id),className:"text-blue-500 hover:underline",onClick:()=>a(!1),children:e.text})},e.id))})]})]})})}},60895:function(e,t,s){"use strict";s.r(t);var n=s(8027);s(3314);var r=s(3072),l=s(63045);t.default=e=>{let{title:t,text:s}=e,o=(0,l.usePathname)(),i=encodeURIComponent("https://Luca-Dellanna.com".concat(o)),a=t?t+": "+s:s,c=encodeURIComponent('"'.concat(a.slice(0,200)).concat(a.length>200?"...":"",'" by @DellannaLuca\n'));return(0,n.jsxs)("div",{className:"blog-frame text-center text-balance ",children:[(0,n.jsx)("h4",{className:"font-bold mt-0 mb-4",children:null!=t?t:"Principle"}),(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:s})}),(0,n.jsx)("p",{children:(0,n.jsx)(r.default,{href:"https://twitter.com/intent/tweet?text=".concat(c,"&url=").concat(i),target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:underline",children:"Share on Twitter"})})]})}},81738:function(e,t,s){"use strict";s.d(t,{SimilarPosts:function(){return l}});var n=s(8027),r=s(30319);let l=e=>{let{posts:t,className:s}=e;return(0,n.jsx)(n.Fragment,{children:t.length>0&&(0,n.jsxs)("section",{className:"max-w-3xl mx-auto my-8 p-4 border border-gray-4000 rounded-lg shadow-lg ".concat(s),children:[(0,n.jsx)("h4",{className:"mb-4",children:"Similar posts you might like"}),(0,n.jsx)("div",{className:"mx-auto",children:(0,n.jsx)(r.Z,{posts:t,style:"naked",forceSubscribeInvite:!0})})]})})}},91906:function(e,t,s){"use strict";s.d(t,{TagList:function(){return o}});var n=s(8027),r=s(63045),l=s(3072);let o=e=>{let{tags:t}=e,s=(0,r.useSearchParams)();return(0,n.jsx)("p",{className:"text-center text-tiny italic mb-12",children:t.map(e=>(0,n.jsxs)(l.default,{href:"/blog?tag=".concat(e),className:"mx-1 ".concat((null==s?void 0:s.get("tag"))===e?"font-bold":""),children:["#",e]},e))})}},87045:function(e,t,s){"use strict";s.d(t,{ReviewsCarousel:function(){return m}});var n=s(8027),r=s(3314),l=s(21744),o=s(99407),i=s(648),a=s(67211);let c=e=>{let{rating:t}=e;return(0,n.jsx)("div",{className:"flex mx-auto mb-2",children:[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,n.jsx)(a.Z,{className:"w-5 h-5 ".concat(s{let{review:t,showRating:s,showBorder:r=!0}=e;return(0,n.jsx)(l.w,{className:"w-64 h-full ".concat(r?"border border-slate-500 shadow-md":"shadow-none"),children:(0,n.jsxs)(o.G,{children:[s&&t.rating&&(0,n.jsx)(c,{rating:t.rating}),(0,n.jsxs)("p",{className:"mb-4 text-center text-tiny",children:['"',t.content,'"']}),(0,n.jsxs)("div",{className:"flex mx-auto items-center align-bottom",children:[t.author.image&&(0,n.jsx)(i.h,{size:"sm",src:t.author.image,className:"border border-slate-400"}),(0,n.jsxs)("div",{className:"ml-2",children:[(0,n.jsx)("p",{className:"my-0 text-tiny",children:t.author.name}),t.author.description&&(0,n.jsx)("p",{className:"my-0 text-[10px] leading-3 text-slate-400",children:t.author.description})]})]})]})})},m=e=>{let{reviews:t,showRatings:s,title:l="Some reviews",width:o,height:i}=e,a=(0,r.useRef)(null),[c,m]=(0,r.useState)(!1),[u,h]=(0,r.useState)(!0),[x,b]=(0,r.useState)(!1),[f,p]=(0,r.useState)(0),[v,j]=(0,r.useState)(0),g=(0,r.useCallback)(()=>{if(a.current){let{scrollLeft:e,scrollWidth:t,clientWidth:s}=a.current;m(e>0),h(e{a.current&&a.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})},[]),w=(0,r.useCallback)(e=>{a.current&&(b(!0),p(e.pageX-a.current.offsetLeft),j(a.current.scrollLeft))},[]),N=(0,r.useCallback)(()=>{b(!1)},[]),P=(0,r.useCallback)(e=>{if(!x||!a.current)return;e.preventDefault();let t=(e.pageX-a.current.offsetLeft-f)*2;a.current.scrollLeft=v-t},[x,f,v]);return(0,n.jsxs)("section",{className:"sm"===i?"mt-0 mb-0 p-0":"",children:[(0,n.jsx)("h3",{className:"text-2xl font-bold mb-4",children:l}),(0,n.jsxs)("div",{className:"w-full relative",children:[(0,n.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"===o?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(t.length<2?"flex justify-center":""),ref:a,onScroll:g,onMouseDown:w,onMouseUp:N,onMouseLeave:N,onMouseMove:P,children:(0,n.jsx)("div",{className:"flex ".concat(t.length<3&&"lg"===o?"md:justify-center":""),children:t.map((e,r)=>(0,n.jsx)("div",{className:"w-64 flex-shrink-0 ".concat(t.length<2?"":"mr-8"),children:(0,n.jsx)(d,{review:e,showRating:s})},r))})}),(0,n.jsx)("button",{onClick:()=>y("left"),className:"absolute left-0 top-0 bottom-0 w-16 bg-transparent\n no-button-style shadow-none focus:ring-0 focus:outline-none active:bg-transparent border-none focus:border-none outline-none\n ".concat(c?"bg-gradient-to-r from-white to-transparent":"pointer-events-none"),"aria-label":"Scroll left"}),(0,n.jsx)("button",{onClick:()=>y("right"),className:"absolute right-0 top-0 bottom-0 w-16 bg-transparent\n no-button-style shadow-none focus:ring-0 focus:outline-none active:bg-transparent border-none focus:border-none outline-none\n ".concat(u?"bg-gradient-to-l from-white to-transparent":"pointer-events-none"),"aria-label":"Scroll right"})]})]})}},5114:function(e,t,s){"use strict";s.d(t,{BookImage:function(){return o}});var n=s(3314),r=s(87352),l=s(82629);let o=e=>{let{maxRetries:t=3,retryDelay:s=1e3,priority:o=!1,...i}=e,[a,c]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(a>0&&a<=t){let e=setTimeout(()=>c(0),s);return()=>clearTimeout(e)}},[a,t,s]),(0,n.createElement)(r.J,{...i,key:a,onError:()=>{ae+1)},as:l.default})}},50163:function(e,t,s){"use strict";s.d(t,{BuyBookButton:function(){return i}});var n=s(8027);s(3314);var r=s(19005),l=s(58037),o=s(71760);let i=e=>{let{book:t}=e,{isOpen:s,onOpen:i,onOpenChange:a}=(0,r.q)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.A,{color:"primary",onPress:i,children:"Buy Now"}),(0,n.jsx)(o.U,{book:t,isOpen:s,onOpen:i,onOpenChange:a})]})}},86788:function(e,t,s){"use strict";s.d(t,{BuyBookLink:function(){return i}});var n=s(8027);s(3314);var r=s(19005),l=s(26243),o=s(71760);let i=e=>{let{book:t,children:s}=e,{isOpen:i,onOpen:a,onOpenChange:c}=(0,r.q)();return(0,n.jsxs)("div",{className:"mx-auto cursor-pointer",children:[(0,n.jsx)(l.O,{color:"primary",onPress:a,children:s}),(0,n.jsx)(o.U,{book:t,isOpen:i,onOpen:a,onOpenChange:c})]})}},71760:function(e,t,s){"use strict";s.d(t,{U:function(){return m}});var n=s(8027);s(3314);var r=s(42482),l=s(32572),o=s(69444),i=s(23672),a=s(26243),c=s(58037),d=s(13879);let m=e=>{let{book:t,isOpen:s,onOpen:m,onOpenChange:u}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.R,{isOpen:s,onOpenChange:u,size:"sm",hideCloseButton:!0,children:(0,n.jsx)(l.A,{className:"pb-0",children:e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.k,{className:"flex flex-col gap-1",children:["Buy ",t.title]}),(0,n.jsxs)(i.I,{children:[(0,n.jsx)(a.O,{href:t.amazonLink,children:(0,n.jsx)(c.A,{color:"primary",href:t.amazonLink,className:"w-full",children:"Paperback"})}),(0,n.jsx)(a.O,{href:t.myStoreLink,children:(0,n.jsx)(c.A,{color:"primary",href:t.myStoreLink,className:"w-full",children:"eBook"})}),t.hasAudiobook&&(0,n.jsx)(a.O,{href:t.myStoreLink,children:(0,n.jsx)(c.A,{color:"primary",href:t.myStoreLink,className:"w-full",children:"Audiobook"})})]}),(0,n.jsx)(d.R,{children:(0,n.jsx)(c.A,{color:"primary",variant:"light",onPress:e,className:"shadow-none text-white",children:"Close"})})]})})})})}},70535:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return l}});var n=s(8027);let r=(0,s(43787).default)(()=>s.e(654).then(s.bind(s,83654)),{loadableGenerated:{webpack:()=>[83654]},ssr:!1});function l(e){let{size:t}=e;return(0,n.jsx)(r,{size:t})}}},function(e){e.O(0,[812,969,838,94,37,680,84,664,701,104,509,244,287,961,744],function(){return e(e.s=6021)}),_N_E=e.O()}]);