!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]="15681c49-c1b2-4ef1-9ed3-b9662ed10874",e._sentryDebugIdIdentifier="sentry-dbid-15681c49-c1b2-4ef1-9ed3-b9662ed10874")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[285,890,314],{28118:function(e,t,r){Promise.resolve().then(r.t.bind(r,96850,23)),Promise.resolve().then(r.t.bind(r,60880,23)),Promise.resolve().then(r.bind(r,77677)),Promise.resolve().then(r.bind(r,33704)),Promise.resolve().then(r.bind(r,65505)),Promise.resolve().then(r.bind(r,66401)),Promise.resolve().then(r.bind(r,85548)),Promise.resolve().then(r.bind(r,23514)),Promise.resolve().then(r.bind(r,85630))},43553:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(52322);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var l={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 a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:c="",children:u,iconNode:d,...m}=e;return(0,n.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:r,strokeWidth:i?24*Number(a)/Number(o):a,className:s("lucide",c),...m},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),i=(e,t)=>{let r=(0,n.forwardRef)((r,l)=>{let{className:i,...c}=r;return(0,n.createElement)(a,{ref:l,iconNode:t,className:s("lucide-".concat(o(e)),i),...c})});return r.displayName="".concat(e),r}},53371:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(43553).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"}]])},65505:function(e,t,r){"use strict";r.d(t,{ReviewsCarousel:function(){return d}});var n=r(63509),o=r(52322),s=r(86570),l=r(14129),a=r(60846),i=r(53371);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,r)=>(0,n.jsx)(i.Z,{className:"w-5 h-5 ".concat(r{let{review:t,showRating:r,showBorder:o=!0}=e;return(0,n.jsx)(s.w,{className:"w-64 h-full ".concat(o?"border border-slate-500 shadow-md":"shadow-none"),children:(0,n.jsxs)(l.G,{children:[r&&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)(a.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})]})]})]})})},d=e=>{let{reviews:t,showRatings:r,title:s="Some reviews",width:l,height:a}=e,i=(0,o.useRef)(null),[c,d]=(0,o.useState)(!1),[m,h]=(0,o.useState)(!0),[f,x]=(0,o.useState)(!1),[b,p]=(0,o.useState)(0),[g,v]=(0,o.useState)(0),w=(0,o.useCallback)(()=>{if(i.current){let{scrollLeft:e,scrollWidth:t,clientWidth:r}=i.current;d(e>0),h(e{i.current&&i.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})},[]),y=(0,o.useCallback)(e=>{i.current&&(x(!0),p(e.pageX-i.current.offsetLeft),v(i.current.scrollLeft))},[]),k=(0,o.useCallback)(()=>{x(!1)},[]),N=(0,o.useCallback)(e=>{if(!f||!i.current)return;e.preventDefault();let t=(e.pageX-i.current.offsetLeft-b)*2;i.current.scrollLeft=g-t},[f,b,g]);return(0,n.jsxs)("section",{className:"sm"===a?"mt-0 mb-0 p-0":"",children:[(0,n.jsx)("h3",{className:"text-2xl font-bold mb-4",children:s}),(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"===l?"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,n.jsx)("div",{className:"flex ".concat(t.length<3&&"lg"===l?"md:justify-center":""),children:t.map((e,o)=>(0,n.jsx)("div",{className:"w-64 flex-shrink-0 ".concat(t.length<2?"":"mr-8"),children:(0,n.jsx)(u,{review:e,showRating:r})},o))})}),(0,n.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,n.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(m?"bg-gradient-to-l from-white to-transparent":"pointer-events-none"),"aria-label":"Scroll right"})]})]})}},66401:function(e,t,r){"use strict";r.d(t,{BookImage:function(){return l}});var n=r(52322),o=r(17956),s=r(43397);let l=e=>{let{maxRetries:t=3,retryDelay:r=1e3,priority:l=!1,...a}=e,[i,c]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(i>0&&i<=t){let e=setTimeout(()=>c(0),r);return()=>clearTimeout(e)}},[i,t,r]),(0,n.createElement)(o.J,{...a,key:i,onError:()=>{ie+1)},as:s.default})}},85548:function(e,t,r){"use strict";r.d(t,{BuyBookButton:function(){return a}});var n=r(63509);r(52322);var o=r(87590),s=r(35834),l=r(3612);let a=e=>{let{book:t}=e,{isOpen:r,onOpen:a,onOpenChange:i}=(0,o.q)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.A,{color:"primary",onPress:a,children:"Buy Now"}),(0,n.jsx)(l.U,{book:t,isOpen:r,onOpen:a,onOpenChange:i})]})}},23514:function(e,t,r){"use strict";r.d(t,{BuyBookLink:function(){return a}});var n=r(63509);r(52322);var o=r(87590),s=r(79774),l=r(3612);let a=e=>{let{book:t,children:r}=e,{isOpen:a,onOpen:i,onOpenChange:c}=(0,o.q)();return(0,n.jsxs)("div",{className:"mx-auto cursor-pointer",children:[(0,n.jsx)(s.O,{color:"primary",onPress:i,children:r}),(0,n.jsx)(l.U,{book:t,isOpen:a,onOpen:i,onOpenChange:c})]})}},3612:function(e,t,r){"use strict";r.d(t,{U:function(){return d}});var n=r(63509);r(52322);var o=r(22038),s=r(82070),l=r(30274),a=r(26967),i=r(79774),c=r(35834),u=r(36488);let d=e=>{let{book:t,isOpen:r,onOpen:d,onOpenChange:m}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o.R,{isOpen:r,onOpenChange:m,size:"sm",hideCloseButton:!0,children:(0,n.jsx)(s.A,{className:"pb-0",children:e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.k,{className:"flex flex-col gap-1",children:["Buy ",t.title]}),(0,n.jsxs)(a.I,{children:[(0,n.jsx)(i.O,{href:t.amazonLink,children:(0,n.jsx)(c.A,{color:"primary",href:t.amazonLink,className:"w-full",children:"Paperback"})}),(0,n.jsx)(i.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)(i.O,{href:t.myStoreLink,children:(0,n.jsx)(c.A,{color:"primary",href:t.myStoreLink,className:"w-full",children:"Audiobook"})})]}),(0,n.jsx)(u.R,{children:(0,n.jsx)(c.A,{color:"primary",variant:"light",onPress:e,className:"shadow-none text-white",children:"Close"})})]})})})})}}},function(e){e.O(0,[1,834,880,255,322,345,947,244,4,414,744],function(){return e(e.s=28118)}),_N_E=e.O()}]);