!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]="5c156cc4-04e3-47a6-a3e5-bf62dba033a0",e._sentryDebugIdIdentifier="sentry-dbid-5c156cc4-04e3-47a6-a3e5-bf62dba033a0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[805],{3329:function(e,t,n){Promise.resolve().then(n.t.bind(n,94682,23)),Promise.resolve().then(n.t.bind(n,1680,23)),Promise.resolve().then(n.bind(n,87045)),Promise.resolve().then(n.bind(n,5114)),Promise.resolve().then(n.bind(n,50163)),Promise.resolve().then(n.bind(n,86788))},88256:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3314);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var a={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 l=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:c="",children:u,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:n,strokeWidth:i?24*Number(l)/Number(o):l,className:s("lucide",c),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(u)?u:[u]])}),i=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:i,...c}=n;return(0,r.createElement)(l,{ref:a,iconNode:t,className:s("lucide-".concat(o(e)),i),...c})});return n.displayName="".concat(e),n}},67211:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(88256).Z)("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]])},82629:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(94651),o=n.n(r)},94651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return i},getImageProps:function(){return l}});let r=n(17205),o=n(20552),s=n(94682),a=r._(n(43215));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.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,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let i=s.Image},87045:function(e,t,n){"use strict";n.d(t,{ReviewsCarousel:function(){return d}});var r=n(8027),o=n(3314),s=n(21744),a=n(99407),l=n(648),i=n(67211);let c=e=>{let{rating:t}=e;return(0,r.jsx)("div",{className:"flex mx-auto mb-2",children:[void 0,void 0,void 0,void 0,void 0].map((e,n)=>(0,r.jsx)(i.Z,{className:"w-5 h-5 ".concat(n{let{review:t,showRating:n,showBorder:o=!0}=e;return(0,r.jsx)(s.w,{className:"w-64 h-full ".concat(o?"border border-slate-500 shadow-md":"shadow-none"),children:(0,r.jsxs)(a.G,{children:[n&&t.rating&&(0,r.jsx)(c,{rating:t.rating}),(0,r.jsxs)("p",{className:"mb-4 text-center text-tiny",children:['"',t.content,'"']}),(0,r.jsxs)("div",{className:"flex mx-auto items-center align-bottom",children:[t.author.image&&(0,r.jsx)(l.h,{size:"sm",src:t.author.image,className:"border border-slate-400"}),(0,r.jsxs)("div",{className:"ml-2",children:[(0,r.jsx)("p",{className:"my-0 text-tiny",children:t.author.name}),t.author.description&&(0,r.jsx)("p",{className:"my-0 text-[10px] leading-3 text-slate-400",children:t.author.description})]})]})]})})},d=e=>{let{reviews:t,showRatings:n,title:s="Some reviews",width:a,height:l}=e,i=(0,o.useRef)(null),[c,d]=(0,o.useState)(!1),[f,m]=(0,o.useState)(!0),[h,x]=(0,o.useState)(!1),[b,g]=(0,o.useState)(0),[p,v]=(0,o.useState)(0),w=(0,o.useCallback)(()=>{if(i.current){let{scrollLeft:e,scrollWidth:t,clientWidth:n}=i.current;d(e>0),m(e{i.current&&i.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})},[]),y=(0,o.useCallback)(e=>{i.current&&(x(!0),g(e.pageX-i.current.offsetLeft),v(i.current.scrollLeft))},[]),k=(0,o.useCallback)(()=>{x(!1)},[]),N=(0,o.useCallback)(e=>{if(!h||!i.current)return;e.preventDefault();let t=(e.pageX-i.current.offsetLeft-b)*2;i.current.scrollLeft=p-t},[h,b,p]);return(0,r.jsxs)("section",{className:"sm"===l?"mt-0 mb-0 p-0":"",children:[(0,r.jsx)("h3",{className:"text-2xl font-bold mb-4",children:s}),(0,r.jsxs)("div",{className:"w-full relative",children:[(0,r.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"===a?"lg:max-w-[600px]":"","\n cursor-grab active:cursor-grabbing ").concat(t.length<2?"flex justify-center":""),ref:i,onScroll:w,onMouseDown:y,onMouseUp:k,onMouseLeave:k,onMouseMove:N,children:(0,r.jsx)("div",{className:"flex ".concat(t.length<3&&"lg"===a?"md:justify-center":""),children:t.map((e,o)=>(0,r.jsx)("div",{className:"w-64 flex-shrink-0 ".concat(t.length<2?"":"mr-8"),children:(0,r.jsx)(u,{review:e,showRating:n})},o))})}),(0,r.jsx)("button",{onClick:()=>j("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,r.jsx)("button",{onClick:()=>j("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(f?"bg-gradient-to-l from-white to-transparent":"pointer-events-none"),"aria-label":"Scroll right"})]})]})}},5114:function(e,t,n){"use strict";n.d(t,{BookImage:function(){return a}});var r=n(3314),o=n(87352),s=n(82629);let a=e=>{let{maxRetries:t=3,retryDelay:n=1e3,priority:a=!1,...l}=e,[i,c]=(0,r.useState)(0);return(0,r.useEffect)(()=>{if(i>0&&i<=t){let e=setTimeout(()=>c(0),n);return()=>clearTimeout(e)}},[i,t,n]),(0,r.createElement)(o.J,{...l,key:i,onError:()=>{ie+1)},as:s.default})}},50163:function(e,t,n){"use strict";n.d(t,{BuyBookButton:function(){return l}});var r=n(8027);n(3314);var o=n(19005),s=n(58037),a=n(71760);let l=e=>{let{book:t}=e,{isOpen:n,onOpen:l,onOpenChange:i}=(0,o.q)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.A,{color:"primary",onPress:l,children:"Buy Now"}),(0,r.jsx)(a.U,{book:t,isOpen:n,onOpen:l,onOpenChange:i})]})}},86788:function(e,t,n){"use strict";n.d(t,{BuyBookLink:function(){return l}});var r=n(8027);n(3314);var o=n(19005),s=n(26243),a=n(71760);let l=e=>{let{book:t,children:n}=e,{isOpen:l,onOpen:i,onOpenChange:c}=(0,o.q)();return(0,r.jsxs)("div",{className:"mx-auto cursor-pointer",children:[(0,r.jsx)(s.O,{color:"primary",onPress:i,children:n}),(0,r.jsx)(a.U,{book:t,isOpen:l,onOpen:i,onOpenChange:c})]})}},71760:function(e,t,n){"use strict";n.d(t,{U:function(){return d}});var r=n(8027);n(3314);var o=n(42482),s=n(32572),a=n(69444),l=n(23672),i=n(26243),c=n(58037),u=n(13879);let d=e=>{let{book:t,isOpen:n,onOpen:d,onOpenChange:f}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.R,{isOpen:n,onOpenChange:f,size:"sm",hideCloseButton:!0,children:(0,r.jsx)(s.A,{className:"pb-0",children:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.k,{className:"flex flex-col gap-1",children:["Buy ",t.title]}),(0,r.jsxs)(l.I,{children:[(0,r.jsx)(i.O,{href:t.amazonLink,children:(0,r.jsx)(c.A,{color:"primary",href:t.amazonLink,className:"w-full",children:"Paperback"})}),(0,r.jsx)(i.O,{href:t.myStoreLink,children:(0,r.jsx)(c.A,{color:"primary",href:t.myStoreLink,className:"w-full",children:"eBook"})}),t.hasAudiobook&&(0,r.jsx)(i.O,{href:t.myStoreLink,children:(0,r.jsx)(c.A,{color:"primary",href:t.myStoreLink,className:"w-full",children:"Audiobook"})})]}),(0,r.jsx)(u.R,{children:(0,r.jsx)(c.A,{color:"primary",variant:"light",onPress:e,className:"shadow-none text-white",children:"Close"})})]})})})})}}},function(e){e.O(0,[94,37,680,84,664,701,244,287,961,744],function(){return e(e.s=3329)}),_N_E=e.O()}]);