PageSourceSearch

https://www.pustaka.co.in/_next/static/chunks/pages/myhome-5bf4b02f1bfc122a.js

js pustaka.co.in collected 2026-10-02 11:07:56 UTC 19,541 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7131],{52245:function(s,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/myhome",function(){return a(21894)}])},85728:function(s,e,a){"use strict";a.d(e,{Z:function(){return m}});var i=a(26042),l=a(69396),r=a(85893),t=a(67294),n=(a(25675),a(41664)),o=a.n(n),c=a(46066),d=function(s){var e=s.book,a=s.narrator,i=s.noRedirect,l=(0,t.useState)(!1),n=l[0],o=l[1];return(0,r.jsxs)("div",{style:{maxWidth:400},children:[(0,r.jsx)("a",{href:i?"javascript:void(0)":a?"/home/narrator/".concat(e.narrator_url_name):"/home/".concat(e.type_of_book&&e.type_of_book.length>0?e.type_of_book:"ebook","/").concat(e.language_url_name,"/").concat(e.book_url_name),legacyBehavior:!0,children:(0,r.jsx)("div",{className:"col",style:{cursor:"pointer"},children:(0,r.jsxs)("div",{className:"block",children:[(0,r.jsx)("div",{className:"block__image",style:{width:207,height:334,position:"relative"},children:(0,r.jsx)("img",{src:a?e.image_url:e.cover_url,alt:a?e.narrator_name:e.book_title,title:"",style:{objectFit:"contain"},width:"100%",height:"100%"})}),(0,r.jsxs)("div",{className:"block__content",children:[(0,r.jsx)("div",{className:"block__heading",children:a?e.narrator_name:e.book_title}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"block__description",children:e.author_name}),e.paperback_cost&&e.paperback_cost>0?(0,r.jsxs)("div",{className:"address__block",children:[(0,r.jsx)("div",{className:"adress__heading",children:"Price:"}),(0,r.jsx)("div",{className:"adress__content",style:{marginLeft:-5},children:e.discount_amount&&e.discount_amount>0?(0,r.jsxs)("p",{style:{display:"flex",flexDirection:"row"},children:[(0,r.jsxs)("div",{style:{textDecoration:"line-through"},children:["\u20b9 ",e.paperback_cost]})," ",(0,r.jsxs)("div",{style:{marginLeft:5},children:["\u20b9 ",e.paperback_cost-e.discount_amount]})]}):(0,r.jsxs)("p",{children:["\u20b9 ",e.paperback_cost]})})]}):null]}),e.discount_image&&e.discount_image.length>0&&(0,r.jsx)("img",{src:e.discount_image,style:{width:50,height:50,marginTop:-15,marginLeft:10}})]})]})]})},a?e.narrator_id:e.book_id)},e.book_id),(0,r.jsx)("div",{children:e.audio_url_sample&&e.audio_url_sample.length>0&&(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,r.jsxs)("button",{className:"btn btn--icon btn--normal m-0 mt-20 ".concat(n&&"mb-10"),onClick:function(){return o(!0)},children:[(0,r.jsx)("img",{src:"https://d290ueh5ca9g3w.cloudfront.net/images/outline-play-blue.svg",alt:"Play Sample"}),"Play sample"]}),n&&(0,r.jsx)("audio",{src:e.audio_url_sample,type:"audio/mpeg",controls:!0,autoPlay:!0})]})})]})},m=function(s){var e=s.data,a=s.title,t=s.viewAll,n=s.redirectUri,m=s.narrator,h=s.type,_=s.noSpace,u=s.noDots,x=s.buttonTitle,b=s.noRedirect,j={dots:!u,infinite:!1,speed:500,slidesToShow:e&&(e.length>5?5:e.length),slidesToScroll:e&&(e.length>5?5:e.length),responsive:[{breakpoint:1200,settings:{slidesToShow:4,slidesToScroll:4,dots:!0}},{breakpoint:850,settings:{slidesToShow:3,slidesToScroll:3,dots:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2,dots:!1}},{breakpoint:400,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]};return(0,r.jsx)("div",{className:"grid-middle ".concat(!_&&"mt-m-30 mt-l-70"),children:(0,r.jsxs)("div",{className:"col mb-l-60 mb-m-30",children:[a&&(0,r.jsxs)("div",{className:"heading-btn",style:{paddingLeft:"2%"},children:[(0,r.jsx)("h3",{className:"my-0",children:a}),t&&(0,r.jsx)(o(),{href:"".concat(n).concat(h&&"audio"===h?"?type=audiobooks":""),children:(0,r.jsx)("div",{className:"btn btn--ex-small my-0",children:x&&x.length>0?x:"View All"})})]}),(0,r.jsx)("div",{style:{justifyContent:"flex-start"},children:(0,r.jsx)(c.Z,(0,l.Z)((0,i.Z)({},j),{children:e&&e.map((function(s,e){return(0,r.jsx)(d,{book:s,narrator:m,noRedirect:b},e)}))}))})]})})}},21894:function(s,e,a){"use strict";a.r(e);var i=a(47568),l=a(26042),r=a(69396),t=a(34051),n=a.n(t),o=a(85893),c=a(47720),d=a(9008),m=a.n(d),h=a(41664),_=a.n(h),u=a(11163),x=a.n(u),b=a(46066),j=a(67294),g=a(70148),v=a(25617),p=a(65221),N=a(85728),k=a(41932),f=a(56124);e.default=function(){var s=(0,v.v9)((function(s){return s.auth}
1)).userDetails,e=(0,j.useState)([]),a=e[0],t=e[1],d=(0,j.useState)({}),h=d[0],u=d[1],y=(0,j.useState)({}),w=y[0],S=y[1],T=(0,j.useState)(""),Z=T[0],B=T[1],C=function(){var e=(0,i.Z)(n().mark((function e(){var a;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.Z.post("/",{method:"getrandombook",user_id:s.user_id});case 2:a=e.sent.data,u(a);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,j.useEffect)((function(){var e=function(){var e=(0,i.Z)(n().mark((function e(){var a,i,l,r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s||!s.user_id){e.next=13;break}return e.next=3,c.Z.post("/",{method:"myhomepage",user_id:53});case 3:return a=e.sent,i=a.data,t(i),e.next=8,c.Z.post("/",{method:"wallet",user_id:s.user_id});case 8:l=e.sent,r=l.data,S(r),e.next=14;break;case 13:x().push({pathname:"/user/login",query:{redirectUri:"/myhome"}});case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e(),C()}),[s]);var P=function(){var s=(0,i.Z)(n().mark((function s(){var e;return n().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,c.Z.post("/",{method:"subscribenewsletter",email_id:Z});case 2:1===(e=s.sent.data).code?g.Am.success(e.message,{position:"top-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0}):g.Am.error(e.message,{position:"top-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0});case 4:case"end":return s.stop()}}),s)})));return function(){return s.apply(this,arguments)}}();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(m(),{children:[(0,o.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,o.jsx)("title",{})]}),(0,o.jsx)(k.Z,{}),(0,o.jsxs)("div",{children:[(0,o.jsx)("section",{className:"gradient pt-t-160 pt-m-110",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsxs)("div",{className:"grid",children:[(0,o.jsxs)("div",{className:"col-6_sm-12_md-12",children:[(0,o.jsxs)("div",{className:"random-block color--white",children:[(0,o.jsx)("h2",{children:"Not sure what to listen/read?"}),(0,o.jsxs)("div",{className:"book-card",children:[h&&h.book_id?(0,o.jsxs)("div",{className:"book-card__book-details",children:[(0,o.jsx)("div",{className:"book-card__image",children:(0,o.jsx)("img",{src:h.cover_url,alt:""})}),(0,o.jsxs)("div",{className:"book-card__content",children:[(0,o.jsx)("div",{className:"book-card__book",children:(0,p.Z)(h.book_title,30)}),(0,o.jsx)("div",{className:"book-card__author",children:h.author_name}),(0,o.jsxs)("div",{className:"book-card__list-item",children:[(0,o.jsxs)("div",{className:"book-card__list",children:[(0,o.jsx)("div",{className:"book-card__list-title",children:"Type:"}),(0,o.jsx)("div",{className:"book-card__list-name",children:h.book_category})]}),(0,o.jsxs)("div",{className:"book-card__type",children:[(0,o.jsx)("div",{className:"book-card__list-title",children:"Genre:"}),(0,o.jsxs)("div",{className:"book-card__list-name",children:[" ",h.genre_name]})]})]})]})]}):null,(0,o.jsx)("hr",{className:"hr--sm"}),(0,o.jsxs)("div",{className:"book-card__bottom",children:[a&&a.random_book_details&&a.random_book_details.rating_review&&(0,o.jsxs)("div",{className:"rating m-0",children:[(0,o.jsxs)("div",{className:"rating__star",children:[(0,o.jsx)("div",{className:"rating__icon"}),(0,o.jsx)("div",{className:"rating__icon"}),(0,o.jsx)("div",{className:"rating__icon"}),(0,o.jsx)("div",{className:"rating__icon"}),(0,o.jsx)("div",{className:"rating__icon--blank"})]}),(0,o.jsx)("div",{className:"rating__rate",children:(0,o.jsx)("span",{children:a.random_book_details.rating_review.rating})})]}),(0,o.jsx)(_(),{href:"/home/ebook/".concat(h.language_url_name,"/").concat(h.url_name),children:(0,o.jsx)("div",{className:"btn btn--ex-small m-0",children:"View Details"})})]})]}),(0,o.jsxs)("a",{className:"btn btn--icon btn--secondary btn--bigger",onClick:C,children:[(0,o.jsx)("img",{src:"./assets/images/shuffle.svg",alt:""}),"Next"]})]}),(0,o.jsxs)("div",{className:"option-review color--white mt-t-40 mt-m-20",children:[(0,o.jsx)("h4",{children:a.book_reviews?a.book_reviews.title:a.latest_authors&&a.latest_authors.title}),(0,o.jsx)("div",{className:"grid-middle btn-orange",children:a.book_reviews?a.book_reviews.data.map((function(s){return(0,o.jsx)(_(),{href:"/home/ebook/".concat(s.language_url_name,"/").concat(s.book_url_name),legacyBehavior:!0,children:(0,o.jsx)("div",{className:"col-4_sm-6",style:{cursor:"pointer"},children:(0,o.jsxs)("div",{className:"block",children:[(0,o.jsx)("div",{className:"block__image",children:(0,o.jsx)("img",{src:s.cover_url,alt:"",title:"",style:{width:207,height:334}})}),(0,o.jsxs)("div",{className:"block__content",children:[(0,o.jsx)("div",{className:"block__heading",children:s.book_title}),(0,o.jsx)("div",{className:"block__description",children:s.author_name})]}),(0,o.jsx)("div",{className:"hr"}),(0,o.jsx)(_(),{href:"/home/ebook/".concat(s.language_url_name,"/").concat(s.book_url_name,"?writeReview=true"),children:(0,o.jsx)("div",{className:"btn btn--full mt-5",children:"Write Review"})})]})})})})):(0,o.jsx)(o.Fragment,{children:a.latest_authors&&a.latest_authors.data.map((function(s){return(0,o.jsx)(_(),{href:"/home/author/".concat(s.url_name),legacyBehavior:!0,children:(0,o.jsx)("div",{className:"col",style:{cursor:"pointer"},children:(0,o.jsxs)("div",{className:"block",children:[(0,o.jsx)("div",{className:"block__image",children:(0,o.jsx)("img",{src:s.author_image_url,alt:"",title:"",style:{width:180,height:255}})}),(0,o.jsxs)("div",{className:"block__content",children:[(0,o.jsx)("div",{className:"block__heading",children:s.author_name}),(0,o.jsxs)("div",{className:"block__description",children:[s.ebook_count+s.audiobook_count," ","Published Books"]})]})]})})})}))})})]})]}),(0,o.jsxs)("div",{className:"col-5_sm-12_md-12","data-push-left":"off-1_md-0",children:[(0,o.jsxs)("div",{className:"user-data",children:[(0,o.jsx)("h3",{className:"m-0",children:"Most liked genre"}),(0,o.jsx)("div",{className:"user-data__sub-heading",children:"This is based on what you have liked most genre"}),(0,o.jsx)("hr",{}),(0,o.jsxs)("div",{className:"progress-data",children:[(0,o.jsxs)("div",{className:"progress-block",children:[(0,o.jsx)("div",{className:"progress-block__lable",children:"Family"}),(0,o.jsx)("div",{className:"progress",children:(0,o.jsx)("div",{className:"progress-bar bg--sky-blue",role:"progressbar",style:{width:"80%"}}
1)})]}),(0,o.jsxs)("div",{className:"progress-block",children:[(0,o.jsx)("div",{className:"progress-block__lable",children:"Cinema"}),(0,o.jsx)("div",{className:"progress",children:(0,o.jsx)("div",{className:"progress-bar bg--purple",role:"progressbar",style:{width:"64%"}})})]}),(0,o.jsxs)("div",{className:"progress-block",children:[(0,o.jsx)("div",{className:"progress-block__lable",children:"Astrology"}),(0,o.jsx)("div",{className:"progress",children:(0,o.jsx)("div",{className:"progress-bar bg--green",role:"progressbar",style:{width:"49%"}})})]}),(0,o.jsxs)("div",{className:"progress-block",children:[(0,o.jsx)("div",{className:"progress-block__lable",children:"Children"}),(0,o.jsx)("div",{className:"progress",children:(0,o.jsx)("div",{className:"progress-bar bg--pink",role:"progressbar",style:{width:"31%"}})})]}),(0,o.jsxs)("div",{className:"progress-block",children:[(0,o.jsx)("div",{className:"progress-block__lable",children:"Romantic"}),(0,o.jsx)("div",{className:"progress",children:(0,o.jsx)("div",{className:"progress-bar bg--red",role:"progressbar",style:{width:"56%"}})})]})]})]}),a.user_profile&&a.user_profile.result&&a.user_profile.result.audiobook_plan&&(0,o.jsxs)("div",{className:"user-data",children:[(0,o.jsx)("div",{className:"user-data__title",children:"Current Subscription:"}),(0,o.jsx)("div",{className:"user-data__title-content",children:a.user_profile.result.audiobook_plan.current_plan}),(0,o.jsxs)("div",{className:"user-data__item",children:[(0,o.jsxs)("div",{className:"user-data__list",children:[(0,o.jsx)("div",{className:"user-data__list title",children:"Books remaining"}),(0,o.jsx)("div",{className:"user-data__list",children:a.user_profile.result.audiobook_plan.max_no_books-a.user_profile.result.audiobook_plan.no_books_borrowed})]}),(0,o.jsxs)("div",{className:"user-data__list",children:[(0,o.jsx)("div",{className:"user-data__list title",children:"Plan Status"}),(0,o.jsx)("div",{className:"user-data__list",children:a.user_profile.result.audiobook_plan.plan_status})]}),(0,o.jsxs)("div",{className:"user-data__list",children:[(0,o.jsx)("div",{className:"user-data__list title",children:"Plan expiring"}),(0,o.jsxs)("div",{className:"user-data__list",children:[" ",a.user_profile.result.audiobook_plan.subscription_expiry_date]})]})]}),(0,o.jsx)("hr",{}),(0,o.jsx)("a",{className:"btn m-0",href:"#",children:"Upgrade the plan"})]}),(0,o.jsxs)("div",{className:"user-data",children:[(0,o.jsx)("div",{className:"user-data__title",children:"Current Available Balance:"}),(0,o.jsx)("div",{className:"user-data__title-content",children:"Rs. ".concat(w.wallet_balance_inr," / $ ").concat(w.wallet_balance_usd)}),(0,o.jsx)("hr",{}),(0,o.jsx)("a",{className:"btn m-0",href:"#",children:"Add money to wallet"})]})]})]})})}),a&&a.books_fit_taste?(0,o.jsx)("div",{className:"less-spacing",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)(N.Z,{title:a.books_fit_taste.title,data:a.books_fit_taste.data})})}):null,(0,o.jsx)("section",{className:"cta-banner less-spacing",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsxs)("div",{className:"grid-middle",children:[(0,o.jsx)("div",{className:"col-9_sm-12_md-12",children:(0,o.jsxs)("div",{className:"heading color--white align__l align__l--m-c align__l--t-c ml-m-0 heading--mb-0",children:[(0,o.jsx)("h2",{children:"Now Paperback is also available"}),(0,o.jsx)("p",{className:"bigger",children:"Enjoy unlimited access to audiobooks & eBooks in languages of your choice. Register & Discover our library today."})]})}),(0,o.jsx)("div",{className:"col-3_sm-12_md-12 mt-4 mt-xs-2",children:(0,o.jsx)("a",{className:"btn btn--secondary btn--full btn--bigger btn--uppercase my-0",href:"#",children:"Browse Here"})})]})})}),a&&a.top_authors?(0,o.jsx)("div",{className:"less-spacing",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"grid-middle",children:(0,o.jsxs)("div",{className:"col",children:[(0,o.jsxs)("div",{className:"heading-btn",children:[(0,o.jsx)("h3",{className:"my-0",children:a.top_authors.title}),(0,o.jsx)("a",{className:"btn btn--ex-small my-0",href:"#",children:"View all"})]}),(0,o.jsx)("div",{className:"grid-middle block-slider",children:(0,o.jsx)("div",{className:"col",children:(0,o.jsx)(b.Z,(0,r.Z)((0,l.Z)({},{dots:!0,infinite:!1,speed:500,slidesToShow:6,slidesToScroll:6,responsive:[{breakpoint:1200,settings:{slidesToShow:4,slidesToScroll:4,dots:!0}},{breakpoint:850,settings:{slidesToShow:3,slidesToScroll:3,dots:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2,dots:!1}},{breakpoint:400,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]}),{children:a.top_authors.data.map((function(s){return(0,o.jsx)(_(),{href:"/home/author/".concat(s.url_name),legacyBehavior:!0,children:(0,o.jsx)("div",{className:"col",style:{cursor:"pointer"},children:(0,o.jsxs)("div",{className:"block",children:[(0,o.jsx)("div",{className:"block__image",children:(0,o.jsx)("img",{src:s.author_image_url,alt:"",title:"",style:{width:180,height:255}})}),(0,o.jsxs)("div",{className:"block__content",children:[(0,o.jsx)("div",{className:"block__heading",children:s.author_name}),(0,o.jsxs)("div",{className:"block__description",children:[s.ebook_count+s.audiobook_count," ","Published Books"]})]})]})})})}))}))})})]})})})}):null,a&&a.browse_genres?(0,o.jsx)("div",{className:"less-spacing",children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsxs)("div",{className:"heading-btn",style:{padding:0},children:[(0,o.jsx)("h3",{className:"my-0",children:a.browse_genres.title}),(0,o.jsx)("a",{className:"btn btn--ex-small my-0",href:"#",children:"View all"})]}),(0,o.jsx)("div",{className:"grid-middle",children:a.browse_genres.data.map((function(s){return(0,o.jsx)(_(),{href:"/genre/".concat(s.url_name,"?name=").concat(s.genre_name),legacyBehavior:!0,children:(0,o.jsx)("div",{className:"col-3_sm-6 mt-m-5 mt-l-25 mb-m-5 mb-l-25",style:{flexWrap:"wrap",flexDirection:"row"},children:(0,o.jsxs)("div",{className:"stats item-flex item-flex--justify-flexstart item-flex--direction-row",style:{cursor:"pointer"},children:[(0,o.jsx)("img",{src:s.genre_url_web,alt:"",title:""}),(0,o.jsxs)("div",{className:"stats__content item-flex item-flex--align-flexstart",children:[(0,o.jsx)("div",{className:"stats__heading",children:s.genre_name}),(0,o.jsxs)("p",{className:"stats__text",children:[s.ebook_count," eBooks"]}),s.audiobook_count>0&&(0,o.jsxs)("p",{className:"stats__text",children:[s.audiobook_count," Audio Books"]})]})]})})},s.genre_id)}))})]})}):null,(0,o.jsx)("div",{className:"less-spacing gradient",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsxs)("div",{className:"grid",children:[(0,o.jsx)("div",{className:"col-5_sm-12_md-6","data-
1push-right":"off-1_md-0",children:(0,o.jsxs)("div",{className:"grid-middle color--white",children:[(0,o.jsx)("div",{className:"col-12",children:(0,o.jsxs)("div",{className:"heading heading--mb-0",children:[(0,o.jsx)("h2",{children:"Subscribe to our Newsletter"}),(0,o.jsx)("p",{className:"bigger",children:"Hundereds of books and authors added weekly. Get Weekly updates straight to your inbox."})]})}),(0,o.jsxs)("div",{className:"col-12",children:[(0,o.jsx)("input",{className:"white-text",type:"email",name:"",placeholder:"Enter email address",value:Z,onChange:function(s){return B(s.target.value)}}),(0,o.jsx)("button",{className:"btn btn--bigger btn--secondary mt-10",onClick:P,children:"Subscribe"})]})]})}),(0,o.jsx)("div",{className:"col-5_sm-12_md-6 mt-m-20 mt-t-0","data-push-left":"off-1_md-0",children:(0,o.jsxs)("div",{className:"grid-middle",children:[(0,o.jsx)("div",{className:"col-12",children:(0,o.jsxs)("div",{className:"heading color--white heading--mb-0",children:[(0,o.jsx)("h2",{children:"Listen anywhere anytime."}),(0,o.jsx)("p",{className:"bigger",children:"Read Thousands of EBooks, listen to hundreds of Audio Books right from your pocket. Everyday hundreds of new books are added. Register now and start reading or listening."})]})}),(0,o.jsx)("div",{className:"col-12",children:(0,o.jsxs)("div",{className:"button-img-twice",children:[(0,o.jsx)("a",{target:"_blank",href:"https://play.google.com/store/apps/details?id=com.pustaka.ebooks",children:(0,o.jsx)("img",{src:"assets/images/Download_on_the_Play_Store.png",alt:"Download on the Play Store",title:"Download on the Play Store"})}),(0,o.jsx)("a",{href:"#",children:(0,o.jsx)("img",{src:"assets/images/Download_on_the_App_Store.png",alt:"Download on the App Store",title:"Download on the App Store"})})]})})]})})]})})})]}),(0,o.jsx)(g.Ix,{}),(0,o.jsx)(f.Z,{})]})}}},function(s){s.O(0,[1217,1664,9315,6066,148,5675,1748,9774,2888,179],(function(){return e=52245,s(s.s=e);var e}));var e=s.O();_N_E=e}]);

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.