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]="0e7629e3-80f1-4610-908c-85c607b0e485",e._sentryDebugIdIdentifier="sentry-dbid-0e7629e3-80f1-4610-908c-85c607b0e485")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8629],{13683:(e,t,r)=>{"use strict";r.d(t,{ReviewsCarousel:()=>u});var n=r(71669),o=r(65297),a=r(30032);let l=e=>{let[t,r]=(0,o.useState)(!1),n=(0,o.useRef)({x:0,scrollLeft:0}),a=(0,o.useCallback)(t=>{e.current&&(r(!0),n.current={x:"touches"in t?t.touches[0].clientX:t.clientX,scrollLeft:e.current.scrollLeft})},[e]),l=(0,o.useCallback)(()=>{r(!1)},[]),i=(0,o.useCallback)(r=>{if(!t||!e.current)return;r.preventDefault();let o="touches"in r?r.touches[0].clientX:r.clientX,a=n.current.x-o;e.current.scrollLeft=n.current.scrollLeft+a},[t,e]);return{isDragging:t,handleDragStart:a,handleDragEnd:l,handleDragMove:i}},i={SCROLL_AMOUNT:300},s=(0,o.memo)(function(e){let{review:t,showRating:r,isLast:o}=e;return(0,n.jsx)("div",{className:"w-48 md:w-64 flex-shrink-0 ".concat(o?"":"mr-4 md:mr-8"),children:(0,n.jsx)(a.ReviewCard,{review:t,showRating:r})})}),c=(0,o.memo)(function(e){let{direction:t,show:r,onClick:o}=e;return(0,n.jsx)("button",{onClick:o,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,o.memo)(function(e){let{reviews:t,showRatings:r,title:a="Some reviews",width:u,height:d}=e,m=(0,o.useRef)(null),[f,h]=(0,o.useState)(!1),[x,v]=(0,o.useState)(!0),p=(0,o.useCallback)(()=>{let e=m.current;if(!e)return;let{scrollLeft:t,scrollWidth:r,clientWidth:n}=e;h(t>0),v(t{let t=m.current;if(!t)return;let r="left"===e?-i.SCROLL_AMOUNT:i.SCROLL_AMOUNT;t.scrollBy({left:r,behavior:"smooth"})},[]),{isDragging:g,handleDragStart:y,handleDragEnd:w,handleDragMove:j}=l(m),k=(0,o.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),j(e))},[j]),N=(0,o.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),y(e))},[y]),S=(0,o.useCallback)(e=>{(null==e?void 0:e.currentTarget)&&(null==e?void 0:e.target)&&(e.persist(),w())},[w]),C=t.length<2,L=t.length<3&&"lg"===u;return(0,n.jsxs)("section",{className:"".concat("sm"===d?"mt-0 mb-0 p-0":""," section-separator"),children:[(0,n.jsx)("h3",{className:"text-2xl font-bold mb-4",children:a}),(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-[280px] 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:p,onMouseDown:N,onMouseUp:S,onMouseLeave:S,onMouseMove:k,onTouchStart:N,onTouchEnd:S,onTouchMove:k,children:(0,n.jsx)("div",{className:"flex ".concat(L?"md:justify-center":""),children:t.map((e,o)=>(0,n.jsx)(s,{review:e,showRating:r,isLast:o===t.length-1},"review-".concat(o)))})}),(0,n.jsx)(c,{direction:"left",show:f,onClick:()=>b("left")}),(0,n.jsx)(c,{direction:"right",show:x,onClick:()=>b("right")})]})]})})},22510:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99668),o=r(27331),a=r(60382),l=r(46774),i=r(71669),s=(0,o.Rf)((e,t)=>{var r;let{as:o,className:s,children:c,...u}=e,d=(0,a.zD)(t),{slots:m,classNames:f}=(0,n.f)(),h=(0,l.$z)(null==f?void 0:f.footer,s);return(0,i.jsx)(o||"div",{ref:d,className:null==(r=m.footer)?void 0:r.call(m,{class:h}),...u,children:c})});s.displayName="HeroUI.CardFooter";var c=s},23892:(e,t,r)=>{"use strict";r.d(t,{default:()=>h});var n=r(71669),o=r(18220),a=r(52581),l=r(85189),i=r(96436),s=r(1611),c=r(29908),u=r(72037),d=r(99086),m=r(27656),f=r(65297);function h(e){let{pdfUrl:t,className:r="",downloadText:u="Download presentation"}=e,[h,x]=(0,f.useState)(null),[v,p]=(0,f.useState)(1),[b,g]=(0,f.useState)(!0),[y,w]=(0,f.useState)(600),[j,k]=(0,f.useState)(!1);return((0,f.useEffect)(()=>{function e(){let e=window.innerWidth<768;k(e),e||w(600)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),j)?(0,n.jsx)(o.Z,{className:r,children:(0,n.jsx)(a.U,{className:"flex flex-col items-center p-6",children:(0,n.jsxs)("a",{href:t,className:"flex items-center gap-2 text-focus hover:text-focus/80 font-medium",children:[(0,n.jsx)(i.A,{className:"h-5 w-5"}),u]})})}):(0,n.jsx)(o.Z,{className:r,children:(0,n.jsxs)(a.U,{className:"flex flex-col items-center p-3 md:p-6",children:[b&&(0,n.jsx)("p",{children:"Loading PDF..."}),(0,n.jsx)(d.A,{file:t,onLoadSuccess:function(e){let{numPages:t}=e;x(t),g(!1)},loading:(0,n.jsx)("p",{children:"Please wait..."}),error:(0,n.jsx)("p",{children:"Failed to load PDF file."}),children:(0,n.jsx)(m.A,{pageNumber:v,renderTextLayer:!1,renderAnnotationLayer:!1,width:y})}),!b&&(0,n.jsxs)("div",{className:"flex items-center gap-2 md:gap-4 mt-3 md:mt-4",children:[(0,n.jsxs)(l.T,{variant:"flat",onPress:function(){p(e=>Math.max(e-1,1))},disabled:v<=1,size:"sm",children:[(0,n.jsx)(s.A,{className:"h-4 w-4 mr-1"}),"Previous"]}),(0,n.jsxs)("span",{className:"text-sm md:text-base",children:["Page ",v," of ",h]}),(0,n.jsxs)(l.T,{variant:"flat",onPress:function(){h&&p(e=>Math.min(e+1,h))},disabled:!h||v>=h,size:"sm",children:["Next",(0,n.jsx)(c.A,{className:"h-4 w-4 ml-1"})]})]})]})})}u.EA.workerSrc="/static/worker/pdf.worker.min.js"},30032:(e,t,r)=>{"use strict";r.d(t,{ReviewCard:()=>h});var n=r(71669),o=r(18220),a=r(52581),l=r(68405),i=r(65297);let s=(0,i.memo)(function(e){var t;let{author:r}=e;if(!r)return null;let o=(null===(t=r.image)||void 0===t?void 0:t.startsWith("/"))?r.image:"/".concat(r.image);return(0,n.jsxs)("div",{className:"flex mx-auto items-center",children:[r.image&&(0,n.jsx)(l.Q,{size:"sm",src:o,alt:"Avatar of ".concat(r.name),className:"border border-slate-400"}),(0,n.jsxs)("div",{className:"".concat(r.image?"ml-2":""),children:[(0,n.jsx)("p",{className:"my-0 text-tiny",children:r.name}),r.description&&(0,n.jsx)("p",{className:"my-0 text-[10px] leading-3 text-slate-400",children:r.description})]})]})});var c=r(56908);let u={active:"text-yellow-400 fill-yellow-400",inactive:"text-gray-300",base:"w-5 h-5"},d=(0,i.memo)(function(e){let{rating:t,maxStars:r=5}=e;return(0,n.jsx)("div",{className:"flex mx-auto mb-2",role:"img","aria-label":"".concat(t," out of ").concat(r," stars"),children:Array.from({length:r},(e,r)=>(0,n.jsx)(c.A,{className:"".concat(u.base," ").concat(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,{callServer:function(){return n.callServer},createServerReference:function(){return a},findSourceMapURL:function(){return o.findSourceMapURL}});let n=r(30912),o=r(30996),a=r(9009).createServerReference},40431:(e,t,r)=>{"use strict";r.d(t,{B:()=>h});var n=r(71669),o=r(46341),a=r(30691),l=r(7196),i=r(58392),s=r(84453),c=r(85189),u=r(81667),d=r(71728),m=r(65297);let f="/books/preorder",h=m.memo(e=>{let{book:t,isOpen:r,onOpenChange:h}=e,x=!!(null==t?void 0:t.title),v=(0,m.useMemo)(()=>{if(!x)return[];let e=[];return(t.amazonLink||f)&&e.push({type:"Paperback",href:t.amazonLink||f}),(t.myStoreLink||f)&&e.push({type:"eBook",href:t.myStoreLink||f}),t.hasAudiobook&&t.myStoreLink&&e.push({type:"Audiobook",href:t.myStoreLink}),t.hasAudible&&t.amazonLink&&e.push({type:"Audible",href:t.amazonLink}),e},[t,x]),p=(0,m.useCallback)(e=>{null==h||h(e)},[h]);if(!x){let e=Error("BuyBookModal: Book or book title is missing");return console.error(e),o.Cp(e),null}if(0===v.length){let e=Error("BuyBookModal: No purchase options available for book: ".concat(t.title));return console.warn(e),o.wd(e.message,{level:"warning"}),null}return(0,n.jsx)(a.Y,{isOpen:r,onOpenChange:p,size:"sm",hideCloseButton:!0,children:(0,n.jsx)(l.g,{className:"pb-0",children:e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.c,{className:"flex flex-col gap-1",children:["Buy ",t.title]}),(0,n.jsx)(s.h,{children:v.map(e=>{let{type:r,href:a}=e;return(0,n.jsxs)(c.T,{as:u.h,href:a,color:"primary",className:"w-full mb-2",isExternal:a.startsWith("http"),"aria-label":"Buy ".concat(r," version of ").concat(t.title),onPress:()=>{try{if(!a)return;a.startsWith("http")&&window.open(a,"_blank","noopener,noreferrer")}catch(e){console.error("Error handling button press:",e),o.Cp(e)}},children:[r,"Audible"===r&&(0,n.jsx)("span",{className:"text-xs",children:"(only on Amazon.com \uD83C\uDDFA\uD83C\uDDF8)"})]},r)})}),(0,n.jsx)(d.q,{children:(0,n.jsx)(c.T,{color:"primary",variant:"light",onPress:()=>{try{null==e||e()}catch(e){console.error("Error closing modal:",e),o.Cp(e)}},className:"shadow-none text-white","aria-label":"Close purchase options modal",children:"Close"})})]})})})});h.displayName="BuyBookModal"},70128:(e,t,r)=>{"use strict";r.d(t,{P:()=>z});var n=r(35235),o=r(46774),a=r(27331),l=r(56852),i=r(65297);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{style:r,minRows:a=3,maxRows:s=8,cacheMeasurements:c=!1,disableAutosize:u=!1,onHeightChange:d,...m}=e,{Component:f,label:h,description:x,startContent:v,endContent:p,hasHelper:b,shouldLabelBeOutside:g,shouldLabelBeInside:y,isInvalid:w,errorMessage:j,getBaseProps:k,getLabelProps:N,getInputProps:S,getInnerWrapperProps:R,getInputWrapperProps:z,getHelperWrapperProps:E,getDescriptionProps:P,getErrorMessageProps:M,isClearable:T,getClearButtonProps:A}=(0,n.G)({...m,ref:t,isMultiline:!0}),[O,F]=(0,i.useState)(a>1),[D,_]=(0,i.useState)(!1),W=h?(0,B.jsx)("label",{...N(),children:h}):null,H=S(),U=u?(0,B.jsx)("textarea",{...H,style:(0,l.v)(H.style,null!=r?r:{})}):(0,B.jsx)(C,{...H,cacheMeasurements:c,"data-hide-scroll":(0,o.sE)(!D),maxRows:s,minRows:a,style:(0,l.v)(H.style,null!=r?r:{}),onHeightChange:(e,t)=>{1===a&&F(e>=2*t.rowHeight),s>a&&_(e>=s*t.rowHeight),null==d||d(e,t)}}),I=(0,i.useMemo)(()=>T?(0,B.jsx)("button",{...A(),children:(0,B.jsx)(L.o,{})}):null,[T,A]),q=(0,i.useMemo)(()=>v||p?(0,B.jsxs)("div",{...R(),children:[v,U,p]}):(0,B.jsx)("div",{...R(),children:U}),[v,H,p,R]),X=w&&j,Z=X||x;return(0,B.jsxs)(f,{...k(),children:[g?W:null,(0,B.jsxs)("div",{...z(),"data-has-multiple-rows":(0,o.sE)(O),children:[y?W:null,q,I]}),b&&Z?(0,B.jsx)("div",{...E(),children:X?(0,B.jsx)("div",{...M(),children:j}):(0,B.jsx)("div",{...P(),children:x})}):null]})});R.displayName="HeroUI.Textarea";var z=R},71266:(e,t,r)=>{"use strict";r.d(t,{BookImage:()=>l});var n=r(65297),o=r(23107),a=r(41796);let l=(0,n.memo)(e=>{let{maxRetries:t=3,retryDelay:r=1e3,priority:l=!1,...i}=e,[s,c]=(0,n.useState)(0),u=s{if(!u||0===s)return;let e=setTimeout(()=>c(0),r);return()=>clearTimeout(e)},[s,r,u]);let d=(0,n.useCallback)(()=>{u&&c(e=>e+1)},[u]);return(0,n.createElement)(o.W,{...i,key:s,onError:d,as:a.default,priority:l,alt:i.alt||"Book cover image"})});l.displayName="BookImage"},84507:(e,t,r)=>{"use strict";r.d(t,{d:()=>c});var n=r(99668),o=r(27331),a=r(60382),l=r(46774),i=r(71669),s=(0,o.Rf)((e,t)=>{var r;let{as:o,className:s,children:c,...u}=e,d=(0,a.zD)(t),{slots:m,classNames:f}=(0,n.f)(),h=(0,l.$z)(null==f?void 0:f.header,s);return(0,i.jsx)(o||"div",{ref:d,className:null==(r=m.header)?void 0:r.call(m,{class:h}),...u,children:c})});s.displayName="HeroUI.CardHeader";var c=s},86480:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,47564,23)),Promise.resolve().then(r.t.bind(r,13613,23)),Promise.resolve().then(r.bind(r,22326)),Promise.resolve().then(r.bind(r,43678)),Promise.resolve().then(r.bind(r,13683)),Promise.resolve().then(r.bind(r,71266)),Promise.resolve().then(r.bind(r,97536)),Promise.resolve().then(r.bind(r,15450)),Promise.resolve().then(r.bind(r,23892))},97536:(e,t,r)=>{"use strict";r.d(t,{BuyBookButton:()=>c});var n=r(71669),o=r(46341),a=r(46239),l=r(85189),i=r(65297),s=r(40431);let c=(0,i.memo)(e=>{let{book:t,className:r}=e,{isOpen:i,onOpen:c,onOpenChange:u}=(0,a.j)();return t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.T,{color:"primary",onPress:()=>{try{null==c||c()}catch(e){console.error("Error opening modal:",e),o.Cp(e)}},"aria-label":"Buy ".concat(t.title),className:r,children:"Buy Now"}),(0,n.jsx)(s.B,{book:t,isOpen:i,onOpenChange:u})]}):(!function(){let e="BuyBookButton: No book provided";console.warn(e),o.wd(e,{level:"warning",extra:{component:"BuyBookButton"}})}(),null)});c.displayName="BuyBookButton"}},e=>{var t=t=>e(e.s=t);e.O(0,[8181,2315,6912,3613,5189,8276,5346,4097,1922,8122,4057,5124,298,9577,7358],()=>t(86480)),_N_E=e.O()}]);