1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{4445:function(e,t,o){o.d(t,{Z:function(){return I}});var n=o(5893),r=o(6705),i=o(7294),s=o(5208),l=o(6876),a=o(2561),c=o(7543),u=o(2581),d=o(6754),m=["\u201cBook summaries - the only way most people are able to actually finish a book.\u201d - Nick Tulsa","\u201cI like my book summaries short and sweet - just like my relationships.\u201d - Dan Droper","\u201c\u2018I read it on Bookstash\u2019, or how to pretend you\u2019re smart\xa0while actually being smart.\u201d - Alberto Heinstein",'"What do abs and ideas from book summaries have in common? It\'s nice when they come in a 6-pack." - Jane Dawnson',"\u201c\u2018Expertly-curated insights blah blah\u2026\u2019\xa0You don\u2019t have time for whole books, so you came for summaries.\u201d - Melon Tusk","\u201cWhat Bookstash does for lengthy books I want someone to help me do for my 9-to-5\u2026\u201d - Homer Shrimpson","\u201cI can\u2019t take responsibility for picking my own books so I rely on people with clout to make the choices for me.\u201d - Smorty Pith","\u201cIf [insert successful person name here] read it, then it must be good, right?\u201d - Marie Curry","\u201cSome insanely successful dude read this one book. I also read the same book. I then become insanely successful. Flawless reasoning!\u201d - Billie Bonka","\u201cIt\u2019s so much easier to read book summaries recommended by successful people than to actually start working to become one of them.\u201d - Homer Shrimpson"],h=function(e){var t=e.onPickMyBookClick,o=e.onPauseAutoplay,l=e.onPlayAutoplay,h=e.showAllBookSummaries,p=(0,i.useContext)(d.I),f=p.shuffleCount,x=p.incrementShuffleCount,b=(0,i.useMemo)((function(){return m[(0,s.XJ)(m.length)]}),[]);return(0,n.jsxs)(r.kCb,{flexDir:"column",alignItems:"center",justifyContent:"space-between",pos:"relative",height:"100%",maxHeight:"280px",children:[(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,n.jsx)(a.Z,{height:"48px",mb:r.W0D.S.rem}),(0,n.jsx)("a",{href:"https://www.producthunt.com/posts/bookstash?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-bookstash",target:"_blank",style:{marginBottom:r.W0D.S.rem},children:(0,n.jsx)("img",{src:"https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=322160&theme=light&period=daily",alt:"Bookstash - Get the essentials of top books in under 3 minutes | Product Hunt",style:{width:"250px",height:" 54px"},width:"250",height:"54"})})]}),(0,n.jsx)(r.xuv,{children:(0,n.jsxs)(r.kCb,{flexDir:"column",alignItems:"center",mb:r.W0D.XS.rem,children:[(0,n.jsx)(r.gRX,{size:"h1",textSize:"s",mt:r.W0D.XS.rem,textAlign:"center",type:"extraBold",px:r.W0D.XL.rem,children:h?"All book summaries":"Top books recommended by famous folk, in 3m or less."}),(0,n.jsx)(r.goZ,{pt:r.W0D.toRem(8),size:"m",textAlign:"center",fontSize:r.W0D.S.rem,lineHeight:r.W0D.L.rem,px:r.W0D.XL.rem,children:b})]})}),!h&&(0,n.jsx)(r.xuv,{children:(0,n.jsx)(r.KMU,{size:"md",onClick:function(){(0,c.K)({type:u.z.PRESS_PICK_BOOK_BUTTON,payload:{count:f+1}}),x(),t(),setTimeout((function(){o()}),1900)},onMouseOver:function(){o()},onMouseLeave:function(){l()},children:(0,n.jsx)(r.goZ,{size:"m",type:"bold",children:"Pick my book"})})})]})},p=o(1664);function f(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function x(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){f(e,t,o[t])}))}return e}var b=function(e){var t,o,i=e.book,l=(0,r.SLv)();return(0,n.jsxs)(r.kCb,{borderRadius:r.W0D.XS.rem,mx:"2rem",mb:"1rem",padding:r.W0D.M.rem,pos:"relative",children:[(0,n.jsx)(r.kCb,{backgroundColor:"#FFE34C7F",height:r.W0D.toRem(64),zIndex:1,position:"absolute",width:r.W0D.toRem(64),bottom:r.W0D.S.rem,left:r.W0D.toRem(32),borderRadius:"2rem"}),(0,n.jsxs)(r.kCb,{zIndex:2,justifyContent:"center",pos:"relative",pb:r.W0D.XS.rem,children:[(0,n.jsx)(r.EiF,{src:i.image,w:r.W0D.toRem(60),h:"100px",borderRadius:"0.4rem",boxShadow:"0px 0px 8px 4px rgba(0, 0, 0, 0.18)"}),(0,n.jsx)(r.kCb,{h:"100px",left:"0%",w:"5%",pos:"absolute",borderStartStartRadius:"full",borderEndStartRadius:"full",className:"page-spine",top:"0"})]}),(0,n.jsxs)(r.kCb,{zIndex:2,flexDir:"column",ml:r.W0D.M.rem,children:[l?(0,n.jsx)(p.default,{href:"/".concat((0,s.lV)(i.title)),passHref:!0,children:(0,n.jsxs)(r.rUS,x({title:"".concat(i.title," Summary"),_hover:void 0,noOfLines:2},r.cpd.primaryTextFonts.medium.bold,{fontFamily:"Playfair Display",children:[i.title," Summary"]}))}):(0,n.jsx)(p.default,{href:"/".concat((0,s.lV)(i.title)),passHref:!0,children:(0,n.jsxs)(r.rUS,x({title:"".concat(i.title," Summary"),_hover:void 0,noOfLines:2},r.cpd.primaryHeadingFonts.small.bold,{fontFamily:"Playfair Display",children:[i.title," Summary"]}))}),(0,n.jsxs)(r.goZ,{size:l?"s":"m",type:"bold",fontFamily:"Playfair Display",color:"#434D54",children:["by ",i.author]}),(0,n.jsxs)(r.kCb,{mt:r.W0D.XS.rem,children:[(0,n.jsxs)(r.kCb,{alignItems:"center",children:[(0,n.jsx)(r.goZ,{size:"l",fontSize:l?"2rem":"3rem",color:r.$_Y.light.primary.darker,type:"bold",children:i.ideas.length}),(0,n.jsxs)(r.goZ,{ml:r.W0D.XS.rem,type:"bold",size:l?"xs":"s",color:r.$_Y.light.primary.darker,children:["KEY",(0,n.jsx)("br",{}),"IDEA",i.ideas.length>1?"S":""]})]}),!l&&(0,n.jsx)(r.kCb,{alignItems:"center",ml:r.W0D.XL.rem,children:(null!==(o=null===(t=null===i||void 0===i?void 0:i.ideas[0])||void 0===t?void 0:t.hashtags)&&void 0!==o?o:[]).slice(0,3).map((function(e){return(0,n.jsx)(r.kCb,{border:"1px solid ".concat(r.$_Y.light.top),borderRadius:r.W0D.toRem(24),p:r.W0D.XS.rem,mx:r.W0D.XXS.rem,children:(0,n.jsx)(r.goZ,{size:"xs",color:r.$_Y.light.textSecondary,children:"#".concat(e)})})}))})]})]})]})},k=i.forwardRef((function(e,t){var o=e.onPickMyBookClick,s=e.onPauseAutoplay,a=e.onPlayAutoplay,c=e.initialBookIndex,u=e.setSelectedBookIndex,d=e.renderItem,m=e.books,p=e.showAllBookSummaries,f=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,(function(){return f.current}));var x=(0,r.Sx0)({base:2,sm:3}),k=(0,i.useState)(x),y=k[0],g=k[1];return(0,i.useEffect)((function(){setTimeout((function(){return g(window.innerWidth>576?3:2)}),0);var e=function(){g(window.innerWidth>576?3:2)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.xuv,{marginBottom:r.W0D.M.rem,children:(0,n.jsx)(h,{onPickMyBookClick:o,onPauseAutoplay:s,onPlayAutoplay:a,showAllBookSummaries:p})}),p?(0,n.jsx)(r.xuv,{w:"100%",mb:r.W0D.M.rem,overflowX:"hidden",children:m.map((function(e){return(0,n.jsx)(b,{book:e},e.id)}))}):(0,n.jsx)(l.ZP,{ref:f,dots:!1,slidesPerRow:1,slidesToShow:y,centerMode:!0,swipe:!0,initialSlide:c,afterChange:function(e){f&&f.current&&u(e)},arrows:!1,className:"carousel-mobile",centerPadding:40,pauseOnHover:!0,autoPlay:!0,autoplaySpeed:1500,children:m.map((function(e,t){return d(e,t)}))})]})})),y=o(405),g=o(1163);function j(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function w(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}
1)))),n.forEach((function(t){j(e,t,o[t])}))}return e}var S=function(e){var t=e.onPickMyBookClick,o=e.onPauseAutoplay,l=e.onPlayAutoplay,h=e.showAllBookSummaries,f=(0,i.useContext)(d.I),x=f.shuffleCount,b=f.incrementShuffleCount,k=(0,g.useRouter)(),j=(0,y.Z)().height,S=(0,i.useMemo)((function(){return m[(0,s.XJ)(m.length)]}),[]);return(0,n.jsxs)(r.kCb,{flexDir:"column",alignItems:"center",pos:"relative",maxHeight:"440px",children:[(0,n.jsxs)(r.xuv,{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,n.jsx)(a.Z,{width:"100%",height:"100%",maxWidth:"151px",maxHeight:j<=800?"4rem":"98px",className:"first-step-header-logo",mb:r.W0D.M.rem}),(0,n.jsx)("a",{href:"https://www.producthunt.com/posts/bookstash?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-bookstash",target:"_blank",style:{marginBottom:r.W0D.M.rem},children:(0,n.jsx)("img",{src:"https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=322160&theme=light&period=daily",alt:"Bookstash - Get the essentials of top books in under 3 minutes | Product Hunt",style:{width:"250px",height:" 54px"},width:"250",height:"54"})})]}),h&&(0,n.jsxs)(r.kCb,{color:r.$_Y.light.textSecondary,left:"4rem",top:"4rem",pos:"fixed",_hover:{cursor:"pointer",textDecor:"underline"},children:[(0,n.jsx)(r.HDs,{boxSize:r.W0D.M.rem,mr:r.W0D.L.rem,onClick:function(){return k.back()}}),(0,n.jsx)(p.default,{href:"/",passHref:!0,children:(0,n.jsx)(r.rUS,w({},r.cpd.primaryTextFonts.smaller,{children:"BACK"}))})]}),(0,n.jsx)(r.xuv,{style:{display:"center",marginBottom:r.W0D.XL.rem},children:(0,n.jsxs)(r.kCb,{flexDir:"column",alignItems:"center",children:[(0,n.jsx)(r.gRX,{size:"h1",textSize:"xl",textAlign:"center",width:"100%",type:"extraBold",fontSize:r.W0D.toRem(44),className:"first-step-header-title",mb:h?r.W0D.S.rem:0,children:h?"All book summaries":"Top books recommended by famous folk, in 3m or less."}),(0,n.jsx)(r.goZ,{size:"l",fontSize:r.W0D.toRem(24),lineHeight:r.W0D.toRem(32),textAlign:"center",type:"italic",className:"first-step-header-description",children:S})]})}),!h&&(0,n.jsx)(r.xuv,{children:(0,n.jsx)(r.KMU,{size:"lg",onClick:function(){(0,c.K)({type:u.z.PRESS_PICK_BOOK_BUTTON,payload:{count:x+1}}),b(),t(),setTimeout((function(){o()}),1900)},onMouseOver:function(){o()},onMouseLeave:function(){l()},children:(0,n.jsx)(r.goZ,{size:"l",type:"bold",children:"Pick my book"})})})]})},v=i.forwardRef((function(e,t){var o=e.onPickMyBookClick,s=e.onPauseAutoplay,a=e.onPlayAutoplay,c=e.initialBookIndex,u=e.setSelectedBookIndex,d=e.renderItem,m=e.books,h=e.showAllBookSummaries,p=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,(function(){return p.current}));var f=(0,i.useState)(!1),x=f[0],k=f[1],y=(0,r.Sx0)({base:3,xl:5}),g=(0,i.useState)(y),j=g[0],w=g[1];return(0,i.useEffect)((function(){setTimeout((function(){w(window.innerWidth>900?5:3)}),0);var e=function(){w(window.innerWidth>900?5:3)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,i.useEffect)((function(){var e;x&&(null===(e=p.current)||void 0===e||e.slickNext())}),[x]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S,{onPickMyBookClick:o,onPauseAutoplay:s,onPlayAutoplay:a,showAllBookSummaries:h}),h?(0,n.jsx)(r.xuv,{mx:"auto",w:"100%",maxWidth:"1096px",my:r.W0D.M.rem,overflowX:"hidden",children:m.map((function(e){return(0,n.jsx)(b,{book:e},e.id)}))}):(0,n.jsx)(r.xuv,{mx:"auto",w:"100%",maxWidth:"1096px",overflowX:"hidden",minHeight:{base:"120px",lg:"400px"},maxHeight:{base:"200px",lg:"unset"},children:(0,n.jsx)(l.ZP,{ref:p,dots:!1,slidesPerRow:1,slidesToShow:j,centerMode:!0,swipe:!0,initialSlide:c,afterChange:function(e){x||k(!0),u(e)},pauseOnHover:!0,arrows:!1,className:"carousel",autoplay:!0,autoplaySpeed:1500,children:m.map((function(e,t){return d(e,t)}))})})]})})),D=o(7751),C=o(1014),P=o(7060),W=o(8825),B=o(7124),I=function(e){var t=e.showAllBookSummaries,o=(0,r.SLv)(),l=(0,i.useRef)((0,P.n)().map((function(e){return(0,B.a)(e)}))),a=(0,g.useRouter)(),c=(0,i.useState)(!1),u=c[0],d=c[1],m=(0,i.useState)((0,s.XJ)(l.current.length/2)),h=m[0],f=m[1],x=(0,i.useRef)(null),b=function(){x&&x.current&&x.current.slickPause()},y=function(){x&&x.current&&x.current.slickPlay()},j=function(){if(x&&x.current){var e=(0,s.XJ)(l.current.length);f(e),x.current.slickGoTo(e),setTimeout((function(){a.push("/".concat((0,s.lV)(l.current[e].title)))}),1500)}},w=(0,i.useCallback)((function(e){if(x&&x.current){if(d(!0),h===e)return void a.push("/".concat((0,s.lV)(l.current[e].title)));f(e),x.current.slickGoTo(e),setTimeout((function(){a.push("/".concat((0,s.lV)(l.current[e].title)))}),e-h===1?500:700)}}),[h,l.current]),S=(0,i.useCallback)((function(e,t){return(0,n.jsx)(r.xuv,{className:"book",onClick:function(e){e.preventDefault(),w(t)},children:(0,n.jsx)(p.default,{href:"/".concat((0,s.lV)(e.title)),passHref:!0,children:(0,n.jsx)(r.rUS,{_hover:void 0,children:(0,n.jsxs)(r.kCb,{alignItems:"center",justifyContent:"center",pos:"relative",flexDir:"column",height:"100%",className:"book-content",children:[(0,n.jsx)(r.kCb,{mt:r.W0D.L.rem,mb:r.W0D.S.rem,color:r.$_Y.light.textDisabled,opacity:0,visibility:"hidden",className:"active-book-rec
1ommended",children:(0,n.jsxs)(r.goZ,{size:"xs",textAlign:"center",children:["Recommended by ",(0,n.jsx)("b",{children:e.recommendedBy})]})}),(0,n.jsxs)(r.kCb,{justifyContent:"center",pos:"relative",pb:r.W0D.XS.rem,children:[(0,n.jsx)(r.EiF,{src:e.image,w:{base:"80px",lg:"160px"},h:{base:"120px",lg:"260px"},borderRadius:"0.4rem",boxShadow:"0px 0px 8px 4px rgba(0, 0, 0, 0.18)"}),(0,n.jsx)(r.kCb,{h:{base:"120px",lg:"260px"},left:"0%",w:"5%",pos:"absolute",borderStartStartRadius:"full",borderEndStartRadius:"full",className:"page-spine",top:"0"})]})]})})})},"book-".concat(t))}),[h,w]);return(0,n.jsx)(D.E.div,{className:"step-container",style:{display:"flex",alignItems:"center",flexDirection:"column",opacity:1,overflowY:t?"auto":"hidden",height:t?"unset":void 0,backgroundColor:C.O.backgrounds.firstStep},exit:{backgroundColor:u?C.O.backgrounds.secondStep:C.O.backgrounds.firstStep,transition:{duration:.5}},children:(0,n.jsxs)(D.E.div,{style:{display:"flex",flexDirection:"column",alignItems:"space-between",justifyContent:o?"flex-start":"space-between",height:"100%",width:"100%",overflowX:"hidden",paddingTop:o?"1rem":r.W0D.toRem(48),paddingBottom:o?0:r.W0D.toRem(32)},exit:{x:"-100vw",transition:{duration:.5}},children:[o?(0,n.jsx)(k,{onPickMyBookClick:j,onPauseAutoplay:b,onPlayAutoplay:y,initialBookIndex:h,setSelectedBookIndex:f,renderItem:S,books:l.current,ref:x,showAllBookSummaries:t}):(0,n.jsx)(v,{onPickMyBookClick:j,onPauseAutoplay:b,onPlayAutoplay:y,initialBookIndex:h,setSelectedBookIndex:f,renderItem:S,books:l.current,ref:x,showAllBookSummaries:t}),(0,n.jsx)(r.kCb,{zIndex:"2",w:"100%",justifyContent:"center",backgroundColor:C.O.backgrounds.firstStep,marginTop:"auto",marginBottom:"1rem",children:(0,n.jsx)(W.Z,{})}),!t&&(0,n.jsx)(r.kCb,{zIndex:"2",w:"100%",pb:{base:"0.5rem",lg:"unset"},justifyContent:"center",backgroundColor:C.O.backgrounds.firstStep,color:r.$_Y.light.primary.default,_hover:{textDecor:"underline",cursor:"pointer"},children:(0,n.jsx)(p.default,{href:"/all-books",passHref:!0,children:(0,n.jsx)(r.rUS,{children:"All Book Summaries"})})})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.