"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8095],{82955:function(e,n,i){var t=i(85893),r=i(41869),l=i(70917),o=i(96810),a=i(96450);i(67294);let s=(0,l.F4)({"0%":{opacity:1},"50%":{opacity:1},"100%":{opacity:0}});n.Z=e=>{let{isLoadMore:n}=e,{t:i}=(0,a.Z)();return(0,t.jsx)(o.A,{message:(0,t.jsxs)("span",{children:[i("loading_more_books")," ",(0,t.jsx)(r.Z,{component:"span",sx:{animation:"".concat(s," 1s linear infinite")},children:"."})," ",(0,t.jsx)(r.Z,{component:"span",sx:{animation:"".concat(s," 1s linear 0.3s infinite")},children:"."})," ",(0,t.jsx)(r.Z,{component:"span",sx:{animation:"".concat(s," 1s linear 0.6s infinite")},children:"."})]}),open:n,anchorOrigin:{vertical:"bottom",horizontal:"center"},autoHideDuration:4e3,bottom:16})}},52843:function(e,n,i){var t=i(85893),r=i(97498),l=i(53385),o=i(67294);n.Z=e=>{let{children:n,...i}=e,{showScrolled:a,scrolledChildren:s,sx:d,disabledShadow:c}=i,p=(0,r.Z)({disableHysteresis:!0,threshold:0,target:document.body}),x=(0,o.useMemo)(()=>c?0:p?4:0,[c,p]);return(0,t.jsx)(l.j,{sx:d,position:"sticky",elevation:x,scrolled:a,scrolledChildren:s,children:n})}},53385:function(e,n,i){i.d(n,{j:function(){return s}});var t=i(85893),r=i(49360),l=i(32653),o=i(41869),a=i(89262);i(67294);let s=e=>{let{scrolled:n,scrolledChildren:i,responsive:a=!1,children:s,showShadow:c=!1,isTransparent:p=!1,sx:x,...u}=e,h=(0,r.Z)();return(0,t.jsx)(l.Z,{...u,sx:{"&.MuiAppBar-root":{width:"100%",backgroundColor:p&&!n?"unset":h.palette.grey[800],alignItems:"center",padding:0,paddingRight:"36px",paddingLeft:"36px",height:a?56:68,flexDirection:"row",paddingInline:"36px",[h.breakpoints.down("sm")]:{paddingInline:h.spacing(3)}},...x},children:(0,t.jsxs)(o.Z,{display:"flex",position:"relative",width:"100%",children:[s,(0,t.jsx)(d,{isTransparent:p,scrolled:n,children:i})]})})},d=(0,a.ZP)(o.Z,{shouldForwardProp:e=>"isTransparent"!==e&&"scrolled"!==e})(e=>{let{isTransparent:n,scrolled:i,theme:t}=e;return{display:"flex",position:"absolute",width:"100%",height:"100%",opacity:i?1:0,visibility:i?"visible":"hidden",transition:"all 150ms cubic-bezier(0.4, 0, 0.2, 1)",zIndex:2,backgroundColor:n&&!i?"transparent":t.palette.grey[800]}})},57122:function(e,n,i){i.d(n,{Z:function(){return z}});var t=i(85893),r=i(67082),l=i(41869),o=i(43213),a=i(89262),s=i(94246),d=i(75275),c=i(67294),p=i(82729),x=i(49360),u=i(57136),h=i(48583),g=i(96450),f=i(74059),b=i(25033),m=i(93006),v=i(50595),y=i(41018);function Z(){let e=(0,p._)(["\n    /* @noflip */\n    direction: ltr;\n    color: ",";\n    font-weight: bold;\n    letter-spacing: -1;\n    display: flex;\n    height: fit-content;\n    line-height: 1.33;\n    & > span:first-of-type {\n        /* @noflip */\n        margin-right: 5px;\n    }\n    "," {\n        font-size: 0.875rem;\n    }\n"]);return Z=function(){return e},e}let j=(0,a.ZP)(l.Z)(()=>({display:"flex",width:"100%",alignItems:"center"})),k=(0,a.ZP)(s.Z)(e=>{let{theme:n}=e;return{color:n.palette.grey[300],lineHeight:"normal",fontWeight:"normal"}}),w=(0,a.ZP)(s.Z)(Z(),e=>{let{theme:n}=e;return n.palette.grey[100]},e=>{let{theme:n}=e;return n.breakpoints.down("sm")});var C=e=>{var n,i,r;let{item:o}=e,a=(0,x.Z)(),{t:s}=(0,g.Z)(),{isSubscribed:d}=(0,u.e)(o),[p]=(0,h.KO)(m.pk),[Z]=(0,h.KO)(b.YO);return(0,c.useMemo)(()=>p.includes(o.id),[o.id,p])?(0,t.jsx)(j,{children:(0,t.jsx)(k,{variant:"body2",children:s("owned")})}):0==o.price?(0,t.jsx)(j,{children:(0,t.jsx)(k,{variant:"body2",children:s("free")})}):d?(0,t.jsx)(j,{children:(0,t.jsx)(k,{variant:"body2",sx:{fontWeight:"700",color:a.palette.grey[100]},children:s("subscribed")})}):(0,t.jsxs)(j,{children:[(0,t.jsxs)(w,{variant:"body1",children:[(0,t.jsx)("span",{children:s(null!==(r=null==Z?void 0:null===(n=Z.currency)||void 0===n?void 0:n.code)&&void 0!==r?r:"usd")})," ",(0,t.jsx)("span",{children:(0,v.YA)(o.price,null==Z?void 0:null===(i=Z.currency)||void 0===i?void 0:i.decimal_count)})]}),(0,t.jsx)(l.Z,{display:"flex",flex:1,justifyContent:"flex-end",children:(0,t.jsx)(y.Z,{size:"sm",sx:{color:a.palette.grey[400],[a.breakpoints.down("sm")]:{width:16,height:16}},children:(0,t.jsx)(f.Z,{})})})]})};let S=(0,a.ZP)(s.Z)(e=>{let{theme:n}=e;return{marginTop:"4px",marginBottom:"4px",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1",overflow:"hidden",height:18}}),M=(0,a.ZP)(s.Z)(e=>{let{theme:n}=e;return{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1",overflow:"hidden",fontWeight:"normal",color:n.palette.grey[200],lineHeight:1.33,height:15,marginBottom:n.spacing()}}),W=(0,a.ZP)(d.Z)(e=>{let{theme:n}=e;return{"&.MuiRating-root":{gridGap:"1px"},"&.MuiRating-sizeSmall":{fontSize:"8px"}}});var P=e=>{let{item:n,rate:i,moreAction:r}=e,o=(0,c.useMemo)(()=>{var e,i;return null!==(i=null===(e=n.writers)||void 0===e?void 0:e.map(e=>e.name))&&void 0!==i?i:[]},[n.writers]);return(0,t.jsxs)(l.Z,{display:"flex",flex:1,flexDirection:"column",height:"100px",children:[(0,t.jsxs)(l.Z,{display:"flex",width:"100%",alignItems:"center",children:[(0,t.jsx)(l.Z,{display:"flex",flex:1,children:(0,t.jsx)(S,{variant:"body2",align:"left",children:n.title})}),null==r?void 0:r(n.id)]}),(0,t.jsxs)(l.Z,{display:"flex",flexDirection:"column",flex:1,pr:"32px",children:[(0,t.jsx)(M,{variant:"subtitle1",align:"left",children:o.join(",")}),(0,t.jsx)(W,{value:i,readOnly:!0,precision:.1,size:"small"})]}),(0,t.jsx)(C,{item:n})]})},z=e=>{let{item:n,rate:i,moreAction:a}=e,{openQuickView:s}=(0,o.Z)();return(0,t.jsxs)(l.Z,{display:"flex",component:"button",onClick:()=>s(n),sx:{backgroundColor:"unset",border:"none","&:focus":{outline:"none"}},children:[(0,t.jsx)(r.Z,{book:n,width:"66px",height:"100px",hideTypesCount:!0,hideRental:!0,isResponsive:!1,fileFormatStyle:{iconSx:{display:"flex"}},coverSx:{marginRight:"16px"}}),(0,t.jsx)(P,{item:n,rate:null!=i?i:0,moreAction:a})]})}},96810:function(e,n,i){i.d(n,{A:function(){return o}});var t=i(85893),r=i(49360),l=i(80888);i(67294);let o=e=>{let{bottom:n,...i}=e,o=(0,r.Z)();return(0,t.jsx)(l.Z,{...i,sx:{"&.MuiSnackbar-root":{width:"100%",padding:o.spacing(0,3),left:"50%",WebkitTransform:"translateX(-50%)",transform:"translateX(-50%)",marginBottom:0,[o.breakpoints.down("xl")]:{padding:o.spacing(0,2)}},"&.MuiSnackbar-anchorOriginBottomCenter":{bottom:null!=n?n:"16px"}},ContentProps:{sx:{"&.MuiSnackbarContent-root":{width:"100%",borderRadius:"12px",padding:o.spacing(2),backgroundColor:"transparent",backgroundImage:"linear-gradient(to bottom, rgba(33, 36, 42, 0.9), rgba(33, 36, 42, 0.9)), linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1) 5%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0))"},"& .MuiSnackbarContent-action":{marginRight:0},"& .MuiSnackbarContent-message":{padding:0,lineHeight:"normal",color:o.palette.grey[800],[o.breakpoints.down("xl")]:{fontSize:"0.75rem"}}}}})}},32543:function(e,n,i){var t=i(85893),r=i(41869),l=i(89262),o=i(94246);let a=(0,l.ZP)(o.Z)(e=>{let{theme:n}=e;return{fontWeight:"bold",lineHeight:"normal",color:n.palette.grey[200],flex:1,[n.breakpoints.down("sm")]:{fontSize:"0.875rem"}}});n.Z=e=>{let{children:n,...i}=e,{title:l,actionButtons:o,classes:s}=i;return(0,t.jsxs)(r.Z,{display:"flex",flexDirection:"column",width:"100%",sx:null==s?void 0:s.root,children:[(0,t.jsxs)(r.Z,{display:"flex",alignItems:"center",width:"100%",mb:3,sx:null==s?void 0:s.titleWrapper,children:["string"==typeof l?(0,t.jsx)(a,{variant:"body1",sx:null==s?void 0:s.title,children:l}):(0,t.jsx)(r.Z,{display:"flex",flex:1,children:l}),(0,t.jsx)(r.Z,{display:"flex",sx:null==s?void 0:s.actionButtonsWrapper,children:o})]}),(0,t.jsx)(r.Z,{display:"flex",width:"100%",children:n})]})}},13368:function(e,n,i){var t=i(85893),r=i(67082),l=i(41869),o=i(2567),a=i(5152),s=i.n(a);let d=s()(()=>i.e(420).then(i.bind(i,20420)),{loadableGenerated:{webpack:()=>[20420]}}),c=s()(()=>i.e(7666).then(i.bind(i,7666)),{loadableGenerated:{webpack:()=>[7666]}}),p=s()(()=>i.e(3538).then(i.bind(i,63538)),{loadableGenerated:{webpack:()=>[63538]}});n.Z=e=>{var n;let{book:i,onClick:a,rate:s=0,justCover:x=!1,showRate:u=!1,showPrice:h=!0,isBundleMode:g=!1}=e,f=(0,o.Z)(null==i?void 0:i.id);return(0,t.jsxs)(l.Z,{display:"flex",flexDirection:"column",border:"none",bgcolor:"unset",onTouchMove:e=>e.stopPropagation(),component:"button",maxWidth:"114px",onClick:a,children:[(0,t.jsx)(r.Z,{book:i,rate:u?s:void 0,isResponsive:!1,hideRental:u||g,hideTypesCount:u||g,fileFormatStyle:{iconSx:{display:"flex"}}}),!x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{title:null==i?void 0:i.title}),(0,t.jsx)(c,{authors:null!==(n=null==i?void 0:i.writers)&&void 0!==n?n:[]})]}),h&&(0,t.jsx)(p,{userOwnedBook:f,price:null==i?void 0:i.price,book:i})]})}},43213:function(e,n,i){i.d(n,{Z:function(){return o}});var t=i(48583),r=i(67294),l=i(47020);function o(){let e=(0,t.b9)(l.eL);return{openQuickView:(0,r.useCallback)(function(n){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e({book:n,isBundleMode:i})},[e])}}}}]);