PageSourceSearch

https://bookscape.com/_next/static/chunks/pages/bookshelf/customreadlist-afb1803e2881e15b.js

js bookscape.com collected 2026-10-01 12:27:17 UTC 63,608 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12785],{11991:(e,l,s)=>{"use strict";s.d(l,{A:()=>i});let i={src:"/_next/static/media/kebab.b31a6890.svg",height:16,width:4,blurWidth:0,blurHeight:0}},14556:(e,l,s)=>{"use strict";s.d(l,{OC:()=>r,dV:()=>c,n6:()=>x,o0:()=>n,wk:()=>o,wm:()=>u,x4:()=>d});var i=s(14260),t=s(33756);let a=(e,l,s)=>{var i;let t=0,a=e.retail_price||e.fdRRP||e.product_retail_price,n=e.selling_price||e.price;return n&&a&&(t=(parseInt(a.toString())||0)-parseInt(n.toString())),{index:l,item_id:(null==e?void 0:e.isbn)||(null==e?void 0:e.ISBN)||(null==e?void 0:e.fdISBN)||e.product_isbn||(null==e?void 0:e.slug_field)||(null==e?void 0:e.id)&&e.id.toString(),item_name:e.title||(null==e?void 0:e.bookTitle)||(null==e?void 0:e.fdItemTitle)||(null==e?void 0:e.product_title)||(null==e?void 0:e.product_name)||"Unknown Title",affiliation:"Bookscape GA",price:(null==e?void 0:e.price)||(null==e?void 0:e.selling_price)||0,discount:t,item_brand:"string"==typeof e.publisher?e.publisher:(null==(i=e.publisher)?void 0:i.fdPublisherName)||e.product_publisher_name||e.publisher_name||"Unknown Publisher",item_list_name:"Books",quantity:s||1,item_variant:e.product_casing||(null==e?void 0:e.casing)||"Unknown",item_category:(null==e?void 0:e.level_one_genres)&&e.level_one_genres.length>0&&e.level_one_genres[0]||"Unknown",item_category2:(null==e?void 0:e.level_two_genres)&&e.level_two_genres.length>0&&e.level_two_genres[0]||"Unknown",item_category3:(null==e?void 0:e.level_three_genres)&&e.level_three_genres.length>0&&e.level_three_genres[0]||"Unknown",item_list_id:"Unknown"}},n=e=>{if(!e)return;i.Ay.event("view_item",{currency:"INR",value:(null==e?void 0:e.price)||(null==e?void 0:e.selling_price)||0,items:[a(e,0,1)]});let l=window;void 0!==l&&void 0!==l.snaptr&&l.snaptr("track","VIEW_CONTENT",{price:(null==e?void 0:e.price)||(null==e?void 0:e.selling_price)||0,currency:"INR",item_ids:[(null==e?void 0:e.isbn)||(null==e?void 0:e.ISBN)||(null==e?void 0:e.fdISBN)||e.product_isbn||(null==e?void 0:e.slug_field)||(null==e?void 0:e.id)&&e.id.toString()],item_category:(null==e?void 0:e.level_one_genres)&&e.level_one_genres.length>0&&e.level_one_genres[0]||"Unknown"})},r=(e,l)=>{if(!e)return;i.Ay.event("add_to_cart",{currency:"INR",value:(null==e?void 0:e.price)||(null==e?void 0:e.selling_price)||0,items:[a(e,0,l)]});let s=window;void 0!==s&&void 0!==s.snaptr&&s.snaptr("track","ADD_CART",{price:(null==e?void 0:e.price)||(null==e?void 0:e.selling_price)||0,currency:"INR",item_ids:[(null==e?void 0:e.isbn)||(null==e?void 0:e.ISBN)||(null==e?void 0:e.fdISBN)||e.product_isbn||(null==e?void 0:e.slug_field)||(null==e?void 0:e.id)&&e.id.toString()],item_category:(null==e?void 0:e.level_one_genres)&&e.level_one_genres.length>0&&e.level_one_genres[0]||"Unknown",number_items:l});let n=t.W.get_meta();n&&"rdmpl"===n.utm_source&&void 0!==s&&void 0!==s.fbq&&s.fbq("track","AddToCart",{content_name:e.title||e.bookTitle||e.fdItemTitle||e.product_title||e.product_name||"Unknown Title",value:(null==e?void 0:e.price)||(null==e?void 0:e.selling_price)||0,currency:"INR"})},d=(e,l)=>{l&&i.Ay.event("view_cart",{currency:"INR",value:e||0,items:l.map((e,l)=>a(e,l)),coupon:""})},o=e=>{e&&i.Ay.event("remove_from_cart",{currency:"INR",value:(null==e?void 0:e.price)||(null==e?void 0:e.selling_price)||0,items:[a(e,0)]})},c=e=>{if(!e)return;i.Ay.event("begin_checkout",{currency:"INR",value:0,items:e.map((e,l)=>({...a(e),index:l}))});let l=window,s=e.reduce((e,l)=>e+((null==l?void 0:l.price)||(null==l?void 0:l.selling_price)||0),0);void 0!==l&&void 0!==l.snaptr&&l.snaptr("track","START_CHECKOUT",{price:s,currency:"INR",item_ids:e.map(e=>(null==e?void 0:e.isbn)||(null==e?void 0:e.ISBN)||(null==e?void 0:e.fdISBN)||e.product_isbn||(null==e?void 0:e.slug_field)||(null==e?void 0:e.id)&&e.id.toString()),number_items:e.length});let n=t.W.get_meta();n&&"rdmpl"===n.utm_source&&void 0!==l&&void 0!==l.fbq&&l.fbq("track","InitiateCheckout",{value:s,currency:"INR"})},x=(e,l)=>{e&&i.Ay.event("add_shipping_info",{currency:"INR",value:0,shipping_tier:l||"Standard",items:e.map((e,l)=>({...a(e),index:l}))})},u=()=>{let e=t.W.get_meta();if(e&&"rdmpl"===e.utm_source){let e=window;void 0!==e&&void 0!==e.fbq&&e.fbq("track","CompleteRegistration")}}},23410:e=>{"use strict";
1e.exports=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.0.0","a":"","k":"","d":"","tc":""},"fr":25,"ip":0,"op":36,"w":656,"h":80,"nm":"add to cart_fin","ddd":0,"assets":[{"id":"image_0","w":40,"h":40,"u":"","p":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAB9klEQVRYhe2Y0VXDMAxFnzn8kw0wE1A2KBuwAWxAN6BMABsAEwAL0E5AygTAAhAW4PFRmSjFSWziNIdD70+dyLLfUWRFKbDhv0AyIzkmmQ2txQvJnCU5yeOhNVUgOeNP8qF1fSOP+IjklOSzEjkdWpsX9cifh9Sx1WC7l1+7Bh21bDfYXtyA5CmAj540FAAWxpiXtokVJB/XyQU9Jc40CLQA1p1/c2PMob7RJDAD8C6X5wCuexKVAbgCMJLrE2PMTZAnyXcJ/2VP4tw+mdrrTtuaTjFQHhTbhzCHMaZA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Y4Yz7vnptbcSTpUCj0z1bXAwAAgD3NOsZ8LBX3gTw6Pb2ct/Zqa2sCAADAHmVz0tWj09PLkm8j8a3NzUtiSx8AAACUsdJSLpv9yH3tBcjuubkVx3H+LEIkAAAAXlkKOc5fu+fmvKbrkkcZHp2eXrbWjooQCQAAAGnJWnvaXbp2mUpHPhke7srn819K6voZCgMAAMDeYm1x5rE8PEplM5Cuo9PTy9ls9nc01gAAABw4Nidd3cxm/1ApPEpVZiD9ngwPd+Xy+UtGOrvr5QEAAGAvsLJ2JWfMzbDjXK0WHF11A6RraXCwMxwOj8iYQWNtn6QuGdO502oBAAD2EdvqAnZN4UmEy5K+tsb8ZzObve9vlKnl/8tBvB9Milx8AAAAAElFTkSuQmCC","e":1}],"layers":[{"ddd":0,"ind":4,"ty":3,"nm":"Null 1","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[328,40,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":4,"s":[98,98,100]},{"t":8,"s":[100,100,100]}],"ix":6}},"ao":0,"ip":0,"op":250,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Shape Layer 2","parent":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[],"ip":11,"op":255,"st":5,"bm":0},{"ddd":0,"ind":6,"ty":2,"nm":"icons-1.png","cl":"png","parent":4,"refId":"image_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":12,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"t":29,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":15,"s":[0]},{"t":16,"s":[-8]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[-75,0,0],"to":[30.833,0,0],"ti":[-30.833,0,0]},{"t":29,"s":[110,0,0]}],"ix":2},"a":{"a":0,"k":[20,20,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":10,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":12,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":27,"s":[100,100,100]},{"t":29,"s":[0,0,100]}],"ix":6}},"ao":0,"ip":8,"op":80,"st":5,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Shape Layer 3","parent":6,"td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}
vendor: 5,658 bytes, line 1
1,"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":11,"s":[26,40.5,0],"to":[0,-3.792,0],"ti":[0,3.792,0]},{"t":15,"s":[26,17.75,0]}],"ix":2},"a":{"a":0,"k":[6,-15.25,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[62.64,22.771],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.687277879902,0.224470938888,0.224470938888,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[6.32,-15.614],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":11,"op":255,"st":5,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Shape Layer 7","parent":6,"tt":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[20.206,20,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.875,0.5],[0,0],[0,0],[-2.875,-0.625],[0,0],[0,7]],"o":[[-2.875,-0.5],[0,0],[0,0],[1.5,0],[0,0],[0,-7]],"v":[[12.5,-8.5],[-11.125,-8.875],[-10.5,3.375],[-7.5,7.5],[9.875,7.5],[14.625,-1.125]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":250,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":2,"nm":"go to cart.png","cl":"png","parent":4,"refId":"image_1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":24,"s":[0]},{"t":29,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":22,"s":[-41,0,0],"to":[6.833,0,0],"ti":[-6.833,0,0]},{"t":29,"s":[0,0,0]}],"ix":2},"a":{"a":0,"k":[90,20,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":80,"st":5,"bm":0},{"ddd":0,"ind":10,"ty":2,"nm":"PRIMARY.png","cl":"png","parent":4,"refId":"image_2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":12,"s":[100]},{"t":14,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":9,"s":[0,0,0],"to":[15,0,0],"ti":[-15,0,0]},{"t":14,"s":[90,0,0]}],"ix":2},"a":{"a":0,"k":[72.5,8,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":80,"st":5,"bm":0},{"ddd":0,"ind":11,"ty":2,"nm":"button-1.png","cl":"png","parent":4,"refId":"image_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2},"a":{"a":0,"k":[328,40,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ef":[{"ty":21,"nm":"Fill","np":9,"mn":"ADBE Fill","ix":1,"en":1,"ef":[{"ty":10,"nm":"Fill Mask","mn":"ADBE Fill-0001","ix":1,"v":{"a":0,"k":0,"ix":1}},{"ty":7,"nm":"All Masks","mn":"ADBE Fill-0007","ix":2,"v":{"a":0,"k":0,"ix":2}},{"ty":2,"nm":"Color","mn":"ADBE Fill-0002","ix":3,"v":{"a":0,"k":[0.898039281368,0.274509817362,0.274509817362,1],"ix":3}},{"ty":7,"nm":"Invert","mn":"ADBE Fill-0006","ix":4,"v":{"a":0,"k":0,"ix":4}},{"ty":0,"nm":"Horizontal Feather","mn":"ADBE Fill-0003","ix":5,"v":{"a":0,"k":0,"ix":5}},{"ty":0,"nm":"Vertical Feather","mn":"ADBE Fill-0004","ix":6,"v":{"a":0,"k":0,"ix":6}},{"ty":0,"nm":"Opacity","mn":"ADBE Fill-0005","ix":7,"v":{"a":0,"k":1,"ix":7}}]}],"ip":0,"op":80,"st":5,"bm":0}],"markers":[]}')},25361:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/bookshelf/customreadlist",function(){return s(69317)}])},33006:(e,l,s)=>{"use strict";s.d(l,{A:()=>n});var i=s(37876);s(14232);var t=s(96564),a=s(29403);function n(e){return e.loading?e.loading_placeholder?e.loading_placeholder:(0,i.jsx)(t.A,{}):e.error&&e.error_placeholder?e.error_placeholder:e.error&&e.error_placeholder?(0,i.jsx)(a.A,{type:"error",message:e.error}):(0,i.jsxs)("div",{children:[e.soft_loading&&(0,i.jsx)(t.A,{}),e.children]})}},44720:(e,l,s)=>{"use strict";s.d(l,{A:()=>i});let i={src:"/_next/static/media/close.ef7141bb.svg",height:32,width:32,blurWidth:0,blurHeight:0}},64182:(e,l,s)=>{"use strict";s.d(l,{A:()=>i});let i={src:"/_next/static/media/star.31005d33.svg",height:24,width:24,blurWidth:0,blurHeight:0}},66070:(e,l,s)=>{"use strict";s.d(l,{A:()=>v});var i=s(37876),t=s(14232),a=s(54587),n=s.n(a),r=s(72879),d=s(31962),o=s(36110),c=s(17541),x=s(14262),u=s(89099),m=s(52788),p=s(60922),h=s(48404),A=s(44720);let v=e=>{let{removeReadlist:l,setRemoveReadlist:s,readlistid:a,result:v,readlistName:g,setRemoveReadlistSmall:f,removereadlistsmall:b,loadResource:j}=e,y=(0,u.useRouter)(),{isSmartNotificationAvailable:k}=(0,t.useContext)(o.AppStateContext),N=()=>
1{new c.A().delete("/ecom/api/bookshelf/".concat(a)).then(e=>{c.A.hasError(e)?(0,x.r)("success",null==e?void 0:e.message):((0,x.r)("success",(null==e?void 0:e.message)||"Readlist deleted successfully"),y.replace("/bookshelf"),j())})};return(0,i.jsxs)("div",{children:[l&&(0,i.jsx)("div",{className:"flex items-center justify-center",children:(0,i.jsxs)(p.A,{visible:l,onCancel:()=>s(!1),onOk:()=>s(!1),footer:null,centered:!0,zIndex:1e5,className:"".concat(k&&"pt-10"," relative bookshelf"),closable:!1,children:[(0,i.jsx)("div",{className:"absoloute top-3 pl-6 mt-4 right-0 w-full h-[45px] bg-white shadow-sm z-50",children:(0,i.jsx)("div",{className:"max-w-[90%]",children:(0,i.jsx)(m.A,{classes:"!font-libre !text-[18px] !font-bold !text-[#30333F] !leading-6",children:"Delete Readlist"})})}),(0,i.jsx)("div",{className:"absolute mt-4 cursor-pointer top-[-10px] right-6",children:(0,i.jsx)(n(),{height:40,width:40,src:r.A.src,onClick:()=>{s(!1)},alt:"crossIcon"})}),(0,i.jsx)("div",{className:"mt- pb-2 mx-4",children:(0,i.jsx)("div",{className:"ml-4 my-4 flex ",children:(0,i.jsx)(m.A,{classes:"!font-normal !text-base !leading-6 !text-[#30333F]",children:(0,i.jsxs)("div",{children:["Are you sure you want to delete",(0,i.jsxs)("span",{className:"font-bold",children:[" '",g,"' "]}),"readlist from your bookshelf?"]})})})}),(0,i.jsx)("div",{className:"shadow-md-top bottom-0 mx-auto left-0 right-0 first-letter:absolute w-full max-h-[70px] -translate-y-1 bg-white",children:(0,i.jsxs)("div",{className:"flex justify-between mx-auto max-w-[90%]",children:[(0,i.jsx)(d.A,{size:"medium",onClick:()=>{s(!1)},variant:"secondary",classes:"my-4 mr-3 max-h-[40px] max-w-[200px] !rounded",children:"CANCEL"}),(0,i.jsx)(d.A,{size:"medium",onClick:()=>{s(!1),N()},variant:"primary",classes:"my-4 max-h-[40px] max-w-[200px] !rounded",children:"   DELETE"})]})})]})}),b&&(0,i.jsxs)(h.A,{placement:"bottom",onClose:()=>f(!1),visible:b,children:[(0,i.jsx)("div",{className:"flex justify-center",onClick:()=>{f(!1)},children:(0,i.jsx)("div",{className:"absolute -top-11",children:(0,i.jsx)(n(),{height:32,width:32,src:A.A.src,alt:"closeIcon"})})}),(0,i.jsxs)("div",{className:"pt-6 ml-4",children:[(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(m.A,{variants:"base",weight:"700",fonts:"libre",color:"neutral-800",classes:"",children:"Delete Readlist"})}),(0,i.jsx)("div",{className:"absolute hidden cursor-pointer top-4 right-8 lg:block",onClick:()=>{f(!1)},children:(0,i.jsx)(n(),{height:40,width:40,src:r.A.src,alt:"crossIcon"})})]}),(0,i.jsx)("div",{className:"mt-[18px] flex",children:(0,i.jsx)("div",{className:"ml-4 flex-1",children:(0,i.jsx)(m.A,{classes:"!font-normal !font-manrope !text-xs !text-[#30333F]",children:(0,i.jsxs)("div",{children:["Are you sure you want to delete",(0,i.jsxs)("span",{className:"!font-bold",children:[" '",g,"' "]}),"readlist from your bookshelf?"]})})})}),(0,i.jsxs)("div",{className:"flex items-center mt-4 content-between mx-4",children:[(0,i.jsx)(d.A,{size:"medium",onClick:()=>{f(!1)},variant:"secondary",classes:"my-4 mr-3 !rounded-[8px] !h-[40px] !text-[10px] !font-bold",children:"CANCEL"}),(0,i.jsx)(d.A,{size:"medium",onClick:()=>{f(!1),N()},variant:"primary",classes:"my-4 !rounded-[8px] !h-[40px] !text-[10px] !font-bold",children:"   DELETE"})]})]})]})}},69317:(e,l,s)=>{"use strict";s.r(l),s.d(l,{default:()=>K});var i=s(37876),t=s(14232),a=s(89099),n=s(39462),r=s(52788),d=s(31962),o=s(63532),c=s(37940),x=s(23410),u=s.t(x,2),m=s(64182),p=s(80772),h=s(18044),A=s(19650),v=s(96564),g=s(6802),f=s(54587),b=s.n(f),j=s(57580),y=s(17541),k=s(1750),N=s(14262),w=s(91164),C=s(81580),_=s(65647),R=s(28320),E=s(13365),I=s(37762),B=s(60922),S=s(48404),F=s(78009),X=s(44720),O=s(72879),D=s(36110);let T=e=>{var l,s,n;let{open:o,setOpen:c,setOnCreateOpenLarge:x,productId:u,onRefresh:m=null,current_readlist:A,setBookmarkState:f,selectedBooks:j,loadingresult:k,setDrawerPopup:w,drawerPopup:C}=e;(0,p.j)();let[_,R]=(0,t.useState)([]),[E,F]=(0,t.useState)(!1),T=(0,a.useRouter)(),[z,H]=(0,t.useState)([]),{isLoggedin:P}=(0,p.G)(h.yS),[U,M]=(0,t.useState)([]),[{loading:W,soft_loading:J,error:L,result:Q},q]=(0,g.Ay)("ecom/api/bookshelf/all",{loading:!0});(0,t.useEffect)(()=>{P&&o&&q()}
1,[o]);let Y=null==T||null==(l=T.query)?void 0:l.readlistId,V=(e,l)=>{M(s=>l?[...s,e]:s.filter(l=>l!==e))};(0,t.useEffect)(()=>{if((o||C)&&(null==Q?void 0:Q.data)&&Y){let e=Q.data.find(e=>{let l=e.id.toString();return"string"==typeof Y?l===Y:!!Array.isArray(Y)&&Y.some(e=>e===l)});e&&M([null==e?void 0:e.id])}},[o,C,Q,Y]);let G=()=>{new y.A().patch("/ecom/api/bookshelf/move/".concat(Y),{target_bookshelf_ids:U,products:j}).then(e=>{y.A.hasError(e)?F(!1):(F(!1),e&&e.data&&e.data.contributors.map(e=>e.name).join(","),q(),new y.A().get("ecom/api/product/get-product/".concat(u)).then(e=>{y.A.hasError(e),F(!1)}),(0,N.r)("success","Product moved to the readlist"),q(),k(),f&&f(!0),c(!1),M([]))})};if(W)return(0,i.jsx)(v.A,{});let{isSmartNotificationAvailable:K}=(0,t.useContext)(D.AppStateContext);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"lg:flex lg:items-center lg:justify-center hidden",children:(0,i.jsxs)(B.A,{visible:o,onCancel:()=>c(!1),onOk:()=>c(!1),footer:null,className:"".concat(K&&"pt-16"," relative bookshelf"),closable:!1,zIndex:1e5,centered:!0,children:[W&&(0,i.jsx)(v.A,{}),(0,i.jsxs)("div",{className:"flex items-center justify-between top-0 max-h-[60px] shadow-sm py-3 px-4 z-50 bg-white",children:[(0,i.jsx)("div",{className:" w-full ml-2",children:(0,i.jsx)(r.A,{labelType:"book_label",classes:"!text-[22px] !leading-8 !font-libre",children:"Move To Other Readlist"})}),(0,i.jsx)("div",{className:"mr-2 cursor-pointer",onClick:()=>{c(!1),M([])},children:(0,i.jsx)(b(),{height:40,width:40,src:O.A.src,alt:"crossIcon"})})]}),(null==Q?void 0:Q.data.length)>0&&(0,i.jsx)("div",{className:"mt-4 mb-[60px] mx-6 max-h-[250px] overflow-y-scroll hide-scrollbar relative",children:null==Q||null==(s=Q.data)?void 0:s.filter(e=>!e.is_created_by_admin).map(e=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"cursor-pointer","aria-hidden":!0,children:(0,i.jsxs)("div",{className:"flex justify-between mr-4 w-full border-b-[0.5px] border-neutral-200 mb-3",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(r.A,{labelType:"book_label",classes:"!leading-6 !text-base",children:e.name}),(0,i.jsx)("div",{className:"mb-3",children:(0,i.jsx)("div",{className:"flex align-middle",children:(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(r.A,{variants:"sm",color:"neutral-700",weight:"700",children:(e=>e<10?e.toString().padStart(2,"0"):e.toString())(e.products.length)}),(0,i.jsx)(r.A,{variants:"sm",color:"neutral-700",weight:"400",classes:"mx-1",children:"Books"})]})})})]}),(0,i.jsx)("div",{className:"ordercheckbox",children:(0,i.jsx)(I.A,{checked:U.includes(e.id),onChange:l=>V(e.id,l.target.checked),className:"!rounded-md"})})]})})}))}),(0,i.jsx)("div",{className:"shadow-md-top absolute mx-auto bottom-0 left-0 right-0 first-letter:absolute w-full max-h-[70px] -translate-y-1 bg-white",children:(0,i.jsxs)("div",{className:"flex justify-between mx-auto max-w-[90%]",children:[(0,i.jsx)(d.A,{size:"medium",onClick:()=>{c(!1),M([])},variant:"secondary",classes:"my-4 mr-3 !max-h-[40px] !rounded uppercase",children:"CANCEL"}),(0,i.jsx)(d.A,{size:"medium",onClick:()=>{G(),c(!1)},variant:"primary",disabled:0===U.length,classes:"my-4 !max-h-[40px] !rounded uppercase",children:"MOVE"})]})})]})}),(0,i.jsx)("div",{className:"block lg:hidden",children:(0,i.jsxs)(S.A,{placement:"bottom",onClose:()=>w(!1),visible:C,children:[(0,i.jsx)("div",{className:"flex justify-center",onClick:()=>{w(!1),M([])},children:(0,i.jsx)("div",{className:"absolute -top-11",children:(0,i.jsx)(b(),{height:32,width:32,src:X.A.src,alt:"closeIcon"})})}),(0,i.jsxs)("aside",{className:"relative bottom-0 left-0 h-auto pt-6 mx-4 bg-white rounded-t-lg",children:[(0,i.jsxs)("div",{className:"flex  justify-between border-b-[0.5px] border-neutral-200 mb-6 w-full",children:[(0,i.jsx)("div",{className:"md:px-7 px-1",children:(0,i.jsx)(r.A,{labelType:"book_label",classes:"lg:!text-2xl !text-xl !leading-8 !font-libre mb-6",children:"Move To Other Readlist"})}),(0,i.jsx)("div",{children:(0,i.jsx)("div",{"aria-hidden":!0,className:"absolute top-0 xl:top-2 right-5 xl:right-8 cursor-pointer mt-3 hidden lg:block",onClick:()=>{w(!1),M([])},children:(0,i.jsx)(b(),{height:40,width:40,src:O.A.src,alt:"crossIcon"})})})]}),(null==Q?void 0:Q.data.length)>0&&(0,i.jsx)("div",{className:"max-h-[200px] overflow-y-scroll hide-scrollbar",children:null==Q||null==(n=Q.data)?void 0:n.filter(e=>!e.is_created_by_admin).map(e=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"cursor-pointer","aria-hidden":!0,
1children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mr-4 w-full",children:[(0,i.jsx)(r.A,{labelType:"book_label",classes:"!leading-6 !text-base",children:e.name}),(0,i.jsx)("div",{className:"ordercheckbox",children:(0,i.jsx)(I.A,{checked:U.includes(e.id),onChange:l=>V(e.id,l.target.checked),className:"!rounded-md"})})]}),(0,i.jsx)(r.A,{labelType:"auth_name",classes:"!font-normal !leading-6 mb-3 border-b-[0.5px] border-neutral-200",children:(0,i.jsx)("div",{className:"mb-3",children:(0,i.jsx)("div",{className:"flex   align-middle",children:(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(r.A,{variants:"sm",color:"neutral-700",weight:"700",children:e.products.length}),(0,i.jsx)(r.A,{variants:"sm",color:"neutral-700",weight:"400",classes:"mx-1",children:"Books"})]})})})})]})}))}),(0,i.jsxs)("div",{className:"flex items-center content-between",children:[(0,i.jsx)(d.A,{size:"medium",onClick:()=>{w(!1),M([])},variant:"secondary",classes:"mt-5 mr-3 mb-4 uppercase",children:"CANCEL"}),(0,i.jsx)(d.A,{size:"medium",onClick:()=>{G(),w(!1)},variant:"primary",disabled:0===U.length,classes:"mt-5 mb-4 uppercase",children:"MOVE"})]})]})]})})]})};var z=s(11991),H=s(14);let P={src:"/_next/static/media/Empty-Readlist.b8ba5fd3.svg"};var U=s(66070);let M={src:"/_next/static/media/grey-star.00bb0ff8.svg"},W=e=>{var l;let{setAddToCartPopup:s,addToCartPopup:n,result:o,selectedBooks:c,removebooks:x,loadResource:u,bookAddToCart:m,setAddToCartDrawer:p,addToCartDrawer:h}=e,{isSmartNotificationAvailable:v}=(0,t.useContext)(D.AppStateContext);(0,a.useRouter)();let[g,f]=(0,t.useState)();function j(e,l){var s;return null==e||null==(s=e.filter(e=>null==l?void 0:l.includes(e.id)))?void 0:s.filter(e=>{let l=(null==e?void 0:e.product_availability)===!1&&!1===(e.pre_order||e.pre_order_buy_now),s="2"===e.status;return l||s})}let y=j(null==o||null==(l=o.data)?void 0:l.products,c),k=null==y?void 0:y.map(e=>e.id),N=async()=>{try{var e;let l=j(null==o||null==(e=o.data)?void 0:e.products,c).map(e=>e.id),i=null==c?void 0:c.filter(e=>!l.includes(e));await m(i),s(!1)}catch(e){console.error("Error removing books:",e)}};return(0,i.jsxs)("div",{className:"!opacity-0 md:!opacity-100 flex items-center justify-center",children:[(0,i.jsxs)(B.A,{visible:n,onCancel:()=>s(!1),centered:!0,onOk:()=>s(!1),footer:null,zIndex:1e5,className:"".concat(v&&"pt-10"," popup popupBox"),closable:!1,children:[(0,i.jsxs)("div",{className:"pb-4",children:[(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(r.A,{variants:"lg",weight:"700",fonts:"libre",color:"neutral-800",classes:"!text-lg",children:"Unavailable!"})}),(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(r.A,{variants:"sm",weight:"400",fonts:"manrope",classes:"!text-[#545760]",children:(0,i.jsxs)(i.Fragment,{children:["Some book(s) in your Readlist can't be purchased at this time because ",(0,i.jsx)("br",{}),"they are currently out of stock or have been discontinued."]})})}),(0,i.jsx)("div",{className:"absolute cursor-pointer top-4 right-8 block",onClick:()=>{s(!1)},children:(0,i.jsx)(b(),{height:40,width:40,src:O.A.src,alt:"crossIcon"})})]}),(0,i.jsx)("div",{className:"max-h-[245px] overflow-y-scroll hide-scrollbar w-full",children:(null==y?void 0:y.length)>0&&(null==y?void 0:y.map((e,l)=>{var s;let t=(null==e?void 0:e.product_availability)===!1&&!1===(e.pre_order||e.pre_order_buy_now),a="2"===e.status;return(0,i.jsxs)("div",{className:"mt-6 flex flex-col",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"flex-shrink-0",children:(0,i.jsx)("img",{src:null==e?void 0:e.fdThumbnailURL,className:"h-[110px] w-[74px]",alt:"Product Thumbnail"})}),(0,i.jsxs)("div",{className:"ml-4 flex-1",children:[(0,i.jsx)(r.A,{classes:"!font-bold !text-sm !text-[#30333F] max-w-[300px] ellipsisAfterOneLine",children:null==e?void 0:e.fdItemTitle}),(0,i.jsx)(r.A,{classes:"!font-normal !text-sm !text-[#30333F]",children:e&&e.contributors&&(null==e||null==(s=e.contributors.find(e=>e.type_of_contributor&&"author"===e.type_of_contributor.toLowerCase()))?void 0:s.name)||""}),(0,i.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,i.jsx)(r.A,{classes:"font-normal text-[12px] text-[#30333F]",children:null==e?void 0:e.rating_avg}),(0,i.jsx)("img",{src:M.src,alt:"star",className:"w-2 h-2"})]}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("div",{className:"flex !leading-extra-loose",children:(0,i.jsx)(r.A,{classes:"!leading-extra-loose !text-[#30333F66] !text-base !font-bold",children:(0,i.jsxs)("span",{children:["₹",(0,A.qC)(null==e?void 0:e.selling_price)]})})}),(0,i.jsxs)("div",{children:[t&&(0,i.jsx)("div",{className:"ml-2",children:t&&(0,i.jsx)("div",{className:"text-[#E54646] text-[10px] !font-bold",children:"Out Of Stock"})}),a&&(0,i.jsx)("div",{className:"ml-2",children:a&&(0,i.jsx)("div",{className:"text-[#E54646] text-[10px] !font-bold",children:"Book Discontinued"})})]})]})]})]}),l<y.length-1&&(0,i.jsx)("hr",{className:"mt-6 !text-[#30333F33]"})]},e.id)}))}),(0,i.jsxs)("div",{className:"flex max-w-90 gap-x-16",children:[(0,i.jsx)(d.A,{size:"small",onClick:()=>{s(!1)},variant:"secondary",classes:"mt-4 mb-2",children:"Go Back to Readlist"}),(0,i.jsx)(d.A,{size:"small",onClick:()=>{N()},variant:"primary",classes:"mt-4 mb-2",children:"BUY AVAILABLE BOOKS"})]})]}),(0,i.jsx)("div",{className:"block md:hidden",children:(0,i.jsxs)(S.A,{placement:"bottom",onClose:()=>p(!1),visible:h,children:[(0,i.jsx)("div",{className:"flex justify-center",onClick:()=>{p(!1)},children:(0,i.jsx)("div",{className:"absolute -top-11",children:(0,i.jsx)(b(),{height:32,width:32,src:X.A.src,alt:"closeIcon"})})}),(0,i.jsxs)("aside",{className:"relative bottom-0 left-0 h-auto pt-6 mx-4 bg-white rounded-t-lg",children:[(0,i.jsxs)("div",{className:"pb-4",children:[(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(r.A,{variants:"lg",weight:"700",fonts:"libre",color:"neutral-800",classes:"!text-lg",children:"Unavailable!"})}),(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(r.A,{variants:"sm",weight:"400",fonts:"manrope",classes:"!text-[#545760]",children:(0,i.jsxs)(i.Fragment,{children:["Some book(s) in your Readlist can't be purchased at this time because ",(0,i.jsx)("br",{}),"they are currently out of stock or have been discontinued."]})})})]}),(0,i.jsx)("div",{className:"max-h-[245px] overflow-y-scroll hide-scrollbar w-full",children:(null==y?void 0:y.length)>0&&y.map((e,l)=>{var s;let t=!1===e.product_availability&&!1===(e.pre_order||e.pre_order_buy_now),a="2"===e.status;return(0,i.jsxs)("div",{className:"mt-6 flex flex-col",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"flex-shrink-0",children:(0,i.jsx)("img",{src:null==e?void 0:e.fdThumbnailURL,className:"h-[110px] w-[74px]",alt:"Product Thumbnail"})}),(0,i.jsxs)("div",{className:"ml-4 flex-1",children:[(0,i.jsx)(r.A,{classes:"!font-bold !text-sm !text-[#30333F] max-w-[300px] ellipsisAfterOneLine",children:null==e?void 0:e.fdItemTitle}
1),(0,i.jsx)(r.A,{classes:"!font-normal !text-sm !text-[#30333F]",children:e&&e.contributors&&(null==e||null==(s=e.contributors.find(e=>e.type_of_contributor&&"author"===e.type_of_contributor.toLowerCase()))?void 0:s.name)||""}),(0,i.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,i.jsx)(r.A,{classes:"font-normal text-[12px] text-[#30333F]",children:null==e?void 0:e.rating_avg}),(0,i.jsx)("img",{src:M.src,alt:"star",className:"w-2 h-2"})]}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("div",{className:"flex !leading-extra-loose",children:(0,i.jsx)(r.A,{classes:"!leading-extra-loose !text-[#30333F66] !text-base !font-bold",children:(0,i.jsxs)("span",{children:["₹",(0,A.qC)(null==e?void 0:e.selling_price)]})})}),(0,i.jsxs)("div",{children:[t&&(0,i.jsx)("div",{className:"ml-2",children:t&&(0,i.jsx)("div",{className:"text-[#E54646] text-[10px] !font-bold",children:"Out Of Stock"})}),a&&(0,i.jsx)("div",{className:"ml-2",children:a&&(0,i.jsx)("div",{className:"text-[#E54646] text-[10px] !font-bold",children:"Book Discontinued"})})]})]})]})]}),l<y.length-1&&(0,i.jsx)("hr",{className:"mt-6 !text-[#30333F33]"})]},e.id)})}),(0,i.jsxs)("div",{className:"flex max-w-90 gap-x-16",children:[(0,i.jsx)(d.A,{size:"small",onClick:()=>{p(!1)},variant:"secondary",classes:"mt-4 mb-2 !rounded",children:"Go Back to Readlist"}),(0,i.jsx)(d.A,{size:"small",onClick:()=>{N()},variant:"primary",classes:"mt-4 mb-2 !rounded",children:"BUY AVAILABLE BOOKS"})]})]})]})}),(0,i.jsx)(T,{open:g,setOpen:f,selectedBooks:k,loadingresult:u})]})};var J=s(42418);let L={src:"/_next/static/media/Move.f210e6ff.svg"},Q={src:"/_next/static/media/delete-red.87f4477e.svg"};var q=s(12975),Y=s(33006),V=s(14556);let G=()=>{var e,l,s,x,f,M,G,K,Z,$,ee,el,es,ei,et,ea,en,er,ed,eo,ec,ex,eu,em,ep,eh,eA,ev,eg,ef,eb,ej,ey,ek,eN,ew,eC,e_,eR,eE,eI,eB,eS,eF,eX,eO,eD,eT,ez;let eH=(0,p.j)(),{isLoggedin:eP,user:eU}=(0,p.G)(h.yS),eM=(0,a.useRouter)(),[eW,eJ]=(0,t.useState)(),[eL,eQ]=(0,t.useState)(),eq=null==eM||null==(e=eM.query)?void 0:e.readlistId,[eY,eV]=(0,t.useState)(!1),[eG,eK]=(0,t.useState)(!1),[eZ,e$]=(0,g.Ay)("/ecom/api/bookshelf/all",{loading:!0}),[{loading:e0,soft_loading:e1,error:e3,result:e2},e6]=(0,g.Ay)("ecom/api/bookshelf/detail/".concat(eq),{loading:!0,hideQueryFromUrl:!0}),[e4,e7]=(0,t.useState)(!1),[e5,e8]=(0,t.useState)(!1),[e9,le]=(0,t.useState)(!1),{isSmartNotificationAvailable:ll}=(0,t.useContext)(D.AppStateContext),[ls,li]=(0,t.useState)(!1),[lt,la]=(0,t.useState)(!1),[ln,lr]=(0,t.useState)(!1),[ld,lo]=(0,t.useState)(),[lc,lx]=(0,t.useState)(!1),[lu,lm]=(0,t.useState)(!0);(0,t.useEffect)(()=>{let e=()=>{var e,l;let s=null==(e=document)?void 0:e.getElementById("footer"),i=null==s?void 0:s.getBoundingClientRect();lm(!((null==i?void 0:i.top)<=(null==(l=window)?void 0:l.innerHeight)))};return window.addEventListener("scroll",e),e(),()=>{window.removeEventListener("scroll",e)}},[]);let{cart_product_ids:lp}=(0,t.useContext)(D.AppStateContext),[lh,lA]=(0,t.useState)(""),[lv,lg]=(0,t.useState)([]),[lf,lb]=(0,t.useState)(!1),[lj,ly]=(0,t.useState)(!1),[lk,lN]=(0,t.useState)(!1),[lw,lC]=(0,t.useState)({}),[l_,lR]=(0,t.useState)(!1),[lE,lI]=(0,t.useState)(!1);(0,t.useEffect)(()=>{var e;e2&&(null==(e=e2.data)?void 0:e.products)&&lg(e2.data.products.map(e=>e.id))},[e2]),(0,t.useEffect)(()=>{e2&&(null==e2?void 0:e2.data)&&lC({name:(null==e2?void 0:e2.data.name)||"",description:(null==e2?void 0:e2.data.description)||"",is_default:(null==e2?void 0:e2.data.is_default)||!1})},[e2]);let lB=async(e,l)=>{let s;if(s=Array.isArray(e)?e.map(e=>({product:e,quantity:1})):[{product:e,quantity:1}],lo(e),eP){let e=await eH((0,k.bE)(s));k.bE.fulfilled.match(e)?(le(!0),(0,N.r)("success","Successfully added to cart!")):(null==e?void 0:e.payload)&&(0,N.r)("error",null==e?void 0:e.payload)}else{let e=await eH((0,k.AF)([s]));(0,V.OC)(l,1),k.AF.fulfilled.match(e)?(await eH((0,w.jc)(s)),eM.push("/shopping-cart")):(null==e?void 0:e.payload)&&(0,N.r)("error",null==e?void 0:e.payload)}};(0,t.useEffect)(()=>{e9&&setTimeout(()=>{le(!1)},1e3)},[e9]);let lS=async e=>
1{if(!eG)if(eK(!0),eP){let l=await eH((0,k.kV)({product:e,quantity:1}));if(k.kV.fulfilled.match(l)){if(l.payload&&l.payload.data&&l.payload.data.length>0){let l="/shopping-cart?bcID=".concat(e);eM.push(l)}}else(null==l?void 0:l.payload)&&((0,N.r)("error","Something went wrong!"),eK(!1))}else{let l={product:parseInt(e),quantity:1,buyNow:!0};await eH((0,w.jc)(l));let s=JSON.parse(window.localStorage.getItem("cart"));s&&(await eH((0,k.Sj)(s)),eM.push("/shopping-cart?bcID=".concat(e)))}};if((0,t.useEffect)(()=>{},[null==eW?void 0:eW.length,eL]),null==e2||null==(s=e2.data)||null==(l=s.products)||l.some(e=>e.is_personalized),e0)return(0,i.jsx)(v.A,{});let lF=e=>eP?!!(lp&&(null==lp?void 0:lp.find(l=>(null==l?void 0:l.product_id)===(null==e?void 0:e.id)))):!!(lp&&(null==lp?void 0:lp.find(l=>(null==l?void 0:l.product_id)===(null==e?void 0:e.id)))),lX={loop:!1,autoplay:!0,animationData:u,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}},lO=null==eM||null==(x=eM.query)?void 0:x.readlistId,lD=e=>{new y.A().patch("/ecom/api/bookshelf/remove/".concat(lO),{product_ids:e}).then(e=>{y.A.hasError(e)?(0,N.r)("error",null==e?void 0:e.message):((0,N.r)("success",(null==e?void 0:e.message)||"Book(s) removed successfully"),ly(!1),e6())})},lT=e=>{new y.A().patch("/ecom/api/bookshelf/delete/".concat(lO),{product_id:e}).then(e=>{y.A.hasError(e)?(0,N.r)("error",null==e?void 0:e.message):((0,N.r)("success",(null==e?void 0:e.message)||"Book(s) removed successfully"),e6())})},lz=(0,i.jsx)("div",{className:"flex justify-end mt-2 moreOrderDropdown",children:(0,i.jsx)(R.A,{items:[{label:"Edit Readlist Details",key:"edit"},{label:"Delete Readlist",key:"delete"}],className:"w-72",onClick:e=>(e=>{if("edit"===e&&(window.innerWidth>1e3?la(!0):eV(!0)),"delete"===e&&(window.innerWidth>1e3?lN(!0):li(!0),e2&&e2.data)){var l;lA(null==e2||null==(l=e2.data)?void 0:l.name)}})(e.key)})}),lH=async()=>{var e,l;(null==e2||null==(l=e2.data)||null==(e=l.products)?void 0:e.filter(e=>lv.includes(e.id))).some(e=>{let l=(null==e?void 0:e.product_availability)===!1&&!1===((null==e?void 0:e.pre_order)||(null==e?void 0:e.pre_order_buy_now)),s="2"===e.status;return l||s})?window.innerWidth>1e3?lR(!0):lr(!0):(await lB(lv),e4&&eM.push("/shopping-cart"))},lP=lv.length===(null==e2||null==(M=e2.data)||null==(f=M.products)?void 0:f.length),lU=lv.length>0&&!lP,lM=lv.length>0&&lv.every(e=>{var l,s;let i=null==e2||null==(s=e2.data)||null==(l=s.products)?void 0:l.find(l=>l.id===e);if(!i)return!1;let t=(null==i?void 0:i.product_availability)===!1,a=(null==i?void 0:i.status)==="2";return t||a});return(0,i.jsx)(Y.A,{error:e3,loading:e0,children:(0,i.jsxs)(n.A,{title:"Readlist",children:[(0,i.jsx)(_.A,{}),(0,i.jsxs)(C.A,{additionalClasses:"xl:!pt-8 lg:!pt-[70px] md:!pt-[60px] !pt-[100px] 2xl:!min-h-full",children:[(0,i.jsx)(c.A,{breadcrumbsData:[{title:"Bookshelf",route:"/bookshelf"},{title:null==e2||null==(G=e2.data)?void 0:G.name}],additionalClass:"!pt-0 !px-0 !mx-0"}),(0,i.jsxs)("div",{className:"flex justify-between items-center !mt-0 md:!mt-3 lg:!mt-0 mb-[26px]",children:[(0,i.jsxs)("div",{className:"lg:flex lg:flex-col hidden",children:[(0,i.jsxs)("div",{className:"lg:flex lg:items-center lg:gap-[10px] hidden !mb-2",children:[(0,i.jsx)(r.A,{variants:"2xl",color:"neutral-800",weight:"700",classes:"!font-libre",children:null==e2||null==(K=e2.data)?void 0:K.name}),(null==e2||null==(Z=e2.data)?void 0:Z.name)!=="Bookscape Readlist"&&(0,i.jsx)("div",{children:(0,i.jsx)(E.A,{overlay:lz,trigger:["click"],placement:"bottomRight",className:"hidden sm:block",children:(0,i.jsx)("a",{onClick:e=>e.preventDefault(),children:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)("img",{src:z.A.src,alt:"popover-menu",className:"w-4 h-5 xl:mr-[14px] rotate-90 xl:rotate-0 cursor-pointer"})})})})})]}),(0,i.jsx)(r.A,{color:"neutral-800",weight:"500",classes:"!font-libre !text-sm",children:null==e2||null==($=e2.data)?void 0:$.description})]}),(0,i.jsxs)("div",{className:"lg:hidden w-full flex flex-col",children:[(0,i.jsxs)("div",{className:"lg:hidden w-full flex justify-between items-center !mb-2",children:[(0,i.jsx)(r.A,{color:"neutral-800",weight:"700",classes:"!font-libre lg:!text-2xl !text-base",children:null==e2||null==(ee=e2.data)?void 0:ee.name}),(null==e2||null==(el=e2.data)?void 0:el.name)!=="Bookscape Readlist"&&(0,i.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,i.jsx)(E.A,{overlay:lz,trigger:["click"],placement:"bottomRight",children:(0,i.jsx)("a",{onClick:e=>e.preventDefault(),children:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)("img",{src:z.A.src,alt:"popover-menu",className:"w-4 h-5 xl:mr-[14px] rotate-90 xl:rotate-0 cursor-pointer"})})})}),(0,i.jsx)(r.A,{classes:"text-[12px] text-[#30333F] !font-bold !leading-4",children:"More"})]})]}),(0,i.jsx)(r.A,{color:"neutral-800",weight:"500",classes:"!font-libre !text-xs",children:null==e2||null==(es=e2.data)?void 0:es.description})]}),(0,i.jsx)("div",{className:"hidden lg:flex lg:flex-col lg:items-end",children:e2&&(null==e2||null==(et=e2.data)||null==(ei=et.products)?void 0:ei.length)>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{variant:"primary",size:"medium",classes:"w-[200px] h-[40p
1x] mb-[5px]",disabled:(null==lv?void 0:lv.length)<=0||e2&&(null==e2||null==(en=e2.data)||null==(ea=en.products)?void 0:ea.length)===0||e2&&(null==e2||null==(ed=e2.data)||null==(er=ed.products)?void 0:er.filter(e=>lv.includes(e.id)&&e.pre_order).length)>0||lM,onClick:()=>{lH(),e7(!0)},children:"PROCEED TO BUY ALL"}),e2&&(null==e2||null==(ex=e2.data)||null==(ec=ex.products)||null==(eo=ec.filter(e=>lv.includes(e.id)&&(null==e?void 0:e.pre_order)))?void 0:eo.length)>0&&(0,i.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,i.jsx)("img",{src:J.A.src,alt:"information icon"}),(0,i.jsx)(r.A,{classes:"!text-[11px] text-[#595C65] font-semibold !leading-4",children:"Please place a separate order for Pre-order books "})]})]}):(0,i.jsx)("button",{className:"border-[1px] border-solid border-[#E54646] rounded-[4px] lg:py-[10px] lg:px-[15px] py-[6px] px-[8px] items-center",onClick:()=>eM.push("/"),children:(0,i.jsx)(r.A,{variants:"xs",color:"primary-default",weight:"700",children:"FIND BOOK(S)"})})})]}),e2&&(null==e2||null==(em=e2.data)||null==(eu=em.products)?void 0:eu.length)>0&&(0,i.jsxs)("div",{className:"flex justify-between items-center mb-8",children:[(0,i.jsxs)("div",{className:"flex items-center gap-x-[22px]",children:[(0,i.jsx)("div",{className:"ordercheckbox",children:(0,i.jsx)(I.A,{checked:(null==lv?void 0:lv.length)===(null==e2||null==(eh=e2.data)||null==(ep=eh.products)?void 0:ep.length),indeterminate:lU,onChange:e=>{e.target.checked?lg(e2.data.products.map(e=>e.id)):lg([])},className:"!rounded-md"})}),(0,i.jsx)("div",{className:"items-center",children:(0,i.jsxs)(r.A,{variants:"base",weight:"700",classes:"text-[#30333F] leading-5",children:[null==lv?void 0:lv.length,"/",null==e2||null==(ev=e2.data)||null==(eA=ev.products)?void 0:eA.length," Books Selected"]})})]}),(0,i.jsxs)("div",{className:"lg:flex lg:items-center sm:gap-x-1 hidden ".concat(lv.length<=0&&"opacity-50 pointer-events-none"),children:[(0,i.jsx)("div",{className:"".concat((null==eZ||null==(ef=eZ.result)||null==(eg=ef.data)?void 0:eg.filter(e=>!(null==e?void 0:e.is_created_by_admin)).length)<=1?"opacity-50 pointer-events-none":""),onClick:()=>{lb(!0),lx(!0)},children:(0,i.jsx)(r.A,{variants:"base",classes:"!font-manrope !text-[#E54646] cursor-pointer",weight:"700",children:"Move To Other Readlist"})}),(0,i.jsx)("span",{className:"border-t border-[#B9B9B9] w-[20px] h-[0px] opacity-100 rotate-[-90deg]"}),(0,i.jsx)("div",{onClick:()=>ly(!0),children:(0,i.jsx)(r.A,{variants:"base",weight:"700",classes:"!font-manrope !text[#E54646] cursor-pointer",children:"Remove Book(s)"})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-x-1 lg:hidden ".concat(lv.length<=0&&"opacity-50 pointer-events-none"),children:[(0,i.jsx)("div",{className:"".concat((null==eZ||null==(ej=eZ.result)||null==(eb=ej.data)?void 0:eb.filter(e=>!(null==e?void 0:e.is_created_by_admin)).length)<=1?"opacity-50 pointer-events-none":""),onClick:()=>{lI(!0),lx(!0)},children:(0,i.jsx)("img",{src:L.src,alt:"move",className:"w-[18px] h-[18px]"})}),(0,i.jsx)("span",{className:"border-t border-[#B9B9B9] w-[20px] h-[0px] opacity-100 rotate-[-90deg]"}),(0,i.jsx)("div",{onClick:()=>e8(!0),children:(0,i.jsx)("img",{src:Q.src,alt:"delete",className:"w-[18px] h-[18px]"})})]})]}),(0,i.jsxs)("div",{className:"",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(o.A,{}),e2&&(null==(ek=e2.data)||null==(ey=ek.products)?void 0:ey.length)>0&&(0,i.jsx)("div",{className:"items-center grid justify-between md:justify-between md:grid-cols-2 sm:grid-cols-1 grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 xl:gap-y-4 gap-1 hide-scrollbar lg:mt-0 mb-3 2xl:gap-4",children:e2&&e2.data.products.map(e=>{var l,s;let t=!1===e.product_availability&&!1===(e.pre_order||e.pre_order_buy_now),a="2"===e.status;return(0,i.jsx)("div",{className:"flex-1 lg:!border-[0.8px] lg:!border-[#30333F66] lg:rounded-lg",children:(0,i.jsxs)("article",{"aria-hidden":!0,className:"flex gap-x-3 max-h-[170px] lg:min-w-[310px] w-full overflow-hidden md:pb-3 bg-transparent min-h-[170px] h-auto group lg:relative lg:z-10 genre_card cursor-pointer lg:border-[0.76px] lg:border-[#
1E5E7EB] xl:p-3 p-0.5 lg:p-1 lg:rounded-md last:border-b-[1px]",children:[(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)("div",{className:"align-middle z-10 ordercheckbox bookshelfCheckbox xl:!h-[18px] xl:!w-[18px] !h-[10px] !w-[10px]",children:(0,i.jsx)(I.A,{checked:null==lv?void 0:lv.includes(null==e?void 0:e.id),className:"!rounded-md xl:!h-[18px] xl:!w-[18px] !h-[10px] !w-[10px]",onChange:()=>(e=>{-1===lv.indexOf(e)?lg([...lv,e]):lg(lv.filter(l=>l!==e))})(null==e?void 0:e.id)})})}),(0,i.jsx)("div",{className:"flex-shrink-0",children:(0,i.jsx)("div",{"aria-hidden":!0,className:"flex p-1.5 pb-0 items-center justify-center overflow-hidden md:justify-start",children:(0,i.jsx)("a",{href:(null==e?void 0:e.slug_field)?encodeURI("/product-details/".concat(null==e?void 0:e.slug_field)):encodeURI("/product-details/".concat((0,A.Qb)(null==e?void 0:e.bookTitle),"/").concat(null==e?void 0:e.id)),children:(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)("div",{className:"h-[134px] w-[93px] overflow-hidden block border",children:(0,i.jsx)(b(),{style:{opacity:t||a?.5:1},className:"group-hover:scale-105 !w-full !h-full transition-transform duration-700 object-cover ease-in-out",loader:()=>"string"==typeof(null==e?void 0:e.fdThumbnailURL)?(0,j.ce)(null==e?void 0:e.fdThumbnailURL,238,346):null==e?void 0:e.fdThumbnailURL,src:"string"==typeof(null==e?void 0:e.bookImg)?(0,j.ce)(null==e?void 0:e.fdThumbnailURL,238,346):null==e?void 0:e.fdThumbnailURL,alt:(null==e?void 0:e.fdItemTitle)||"book-img",width:93,height:134})})})})})}),(0,i.jsx)("div",{className:"h-full",children:(0,i.jsxs)("div",{className:"bookcontent flex flex-col h-full lg:!pt-[2px] !pt-2",children:[(0,i.jsxs)("div",{className:"flex flex-col h-full",children:[(0,i.jsxs)("div",{className:"flex justify-between items-center",children:[(0,i.jsx)("div",{className:"book_title_label !text-sm !leading-extra-loose text-ellipsis lg:w-56 w-[116px] whitespace-normal !max-w-full",children:null==e?void 0:e.fdItemTitle}),(0,i.jsx)("img",{src:O.A.src,alt:"delete",onClick:()=>lT(null==e?void 0:e.id),className:"w-[24px] h-[24px]"})]}),(0,i.jsx)("div",{className:"!text-xs !leading-extra-loose !font-normal !w-[150px] !whitespace-nowrap !overflow-hidden !text-ellipsis min-h-[16px]",children:(0,i.jsx)("span",{children:(null==e||null==(s=e.contributors)||null==(l=s.find(e=>e.type_of_contributor&&"author"===e.type_of_contributor.toLowerCase()))?void 0:l.name)||""})})]}),(0,i.jsx)("div",{className:"flex items-center min-h-[16px]",children:!!(null==e?void 0:e.rating_avg)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b(),{src:m.A,width:10,height:10,alt:"rating"}),(0,i.jsx)(r.A,{labelType:"book_rating_label",children:null==e?void 0:e.rating_avg})]})}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)("div",{className:"flex price_layout !leading-extra-loose",style:{opacity:t||a?.5:1},children:[(0,i.jsx)(r.A,{labelType:"offer_price",classes:"!leading-extra-loose",children:(0,i.jsxs)("span",{children:["₹",(0,A.qC)(null==e?void 0:e.selling_price)]})}),(null==e?void 0:e.fdRRP)>(null==e?void 0:e.selling_price)&&Math.floor((0,A.xs)(null==e?void 0:e.fdRRP,null==e?void 0:e.selling_price))>0&&(0,i.jsx)(r.A,{labelType:"actual_price",classes:"!leading-extra-loose",children:(0,i.jsxs)("span",{children:["₹",(0,A.qC)(null==e?void 0:e.fdRRP)]})}),Math.floor((0,A.xs)(null==e?void 0:e.fdRRP,null==e?void 0:e.selling_price))>0&&(0,i.jsx)(r.A,{labelType:"discount_price",classes:"!leading-extra-loose",children:(0,i.jsxs)("span",{className:"discount_price !leading-extra-loose",children:["(-",Math.floor((0,A.xs)(null==e?void 0:e.fdRRP,null==e?void 0:e.selling_price)),"%)"]})})]}),t&&(0,i.jsx)("div",{className:"ml-2 lg:ml-1",children:t&&(0,i.jsx)("div",{className:"text-[#E54646] text-[10px] !font-bold",children:"Out of Stock"})}),a&&(0,i.jsx)("div",{className:"ml-2 lg:ml-0",children:a&&(0,i.jsx)("div",{className:"text-[#E54646] text-[10px] !font-bold",children:"Book Discontinued"})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-x-3 transition4s mt-3",children:[t&&!a&&(0,i.jsx)(d.A,{classes:"!px-0 lg:!px-0 lg:w-[114px] lg:h-[36px] w-[90px] h-[28px] lg:!rounded-[7px] rounded lg:!text-[11px] text-[9px] !font-bold ".concat(e.pre_order&&!e.pre_order_buy_now&&"bg-golde
1n hover:bg-golden"),variant:"primary",onClick:()=>{!function(e){let l={email:eU.email||"",product:e&&e.toString()||""};new y.A().post("ecom/api/header-menu/notify-me",l).then(e=>{y.A.hasError(e)?(0,N.r)("error","Please try again"):(0,N.r)("success","You will be notified via email when the product is back in stock.")})}(e.id)},children:"Notify Me"}),a&&!t&&(0,i.jsx)(d.A,{size:"small",variant:"primary",classes:"w-full !px-0 lg:!px-0 h-[36px] font-extrabold lg:!rounded-[7px] rounded lg:!h-[36px] xl:!h-9 lg:!text-[11px] text-[9px] !overflow-hidden",onClick:()=>lT(null==e?void 0:e.id),children:"Remove From Readlist"}),a||t?null:lF(e)?(0,i.jsxs)(i.Fragment,{children:[!e.is_personalized&&(0,i.jsx)("div",{children:(0,i.jsx)(d.A,{size:"small",variant:"secondary",classes:"w-full !px-0 lg:!px-0 lg:w-[114px] lg:h-[36px] !h-[28px] !w-[90px] lg:!text-[11px] text-[9px] font-bold lg:!rounded-[7px] !rounded lg:!h-[36px] xl:!h-9 !overflow-hidden",onClick:()=>lS(null==e?void 0:e.id),children:"BUY NOW"})}),(0,i.jsx)("div",{children:(0,i.jsx)(d.A,{size:"small",variant:"primary",color:"primary-default",classes:"w-full !px-0 lg:!px-0 !bg-[#E54646] lg:w-[114px] lg:h-[36px] !h-[28px] w-[90px] lg:!text-[11px] !text-[9px] font-bold lg:!rounded-[7px] !rounded lg:!h-[36px] xl:!h-9 !overflow-hidden",onClick:()=>eM.push("/shopping-cart"),children:"GO TO CART"})})]}):e.is_personalized?(0,i.jsx)(d.A,{size:"small",variant:"primary",classes:"w-full !px-0 !bg-[#E54646] !text-white mt-2",onClick:()=>eM.push("/personalise-book?productId=".concat(e.id,"&slug=").concat(e.slug_field,"&isbn=").concat(e.fdISBN,"&step=1")),children:"Personalize my book"}):(0,i.jsxs)(i.Fragment,{children:[!e.pre_order&&(0,i.jsx)("div",{children:(0,i.jsx)(d.A,{size:"small",variant:"secondary",classes:"w-full !px-0 lg:!px-0 lg:w-[114px] lg:h-[36px] !h-[28px] !w-[90px] lg:!text-[11px] text-[9px] font-bold lg:!rounded-[7px] !rounded lg:!h-[36px] xl:!h-9 !overflow-hidden",onClick:()=>lS(null==e?void 0:e.id),children:"BUY NOW"})}),(0,i.jsxs)("div",{className:"",children:[e.pre_order&&!e.pre_order_buy_now&&(0,i.jsx)(d.A,{size:"small",variant:"primary",color:"primary-default",classes:"w-full lg:!px-0 lg:!h-[36px] lg:w-[114px] !h-[28px] w-[70px] lg:!text-[11px] text-[9px] lg:!rounded-[7px] !rounded xl:!h-9 !overflow-hidden !overflow-hidden bg-golden hover:bg-golden",onClick:()=>lS(null==e?void 0:e.id),children:"PRE ORDER"}),e.pre_order&&e.pre_order_buy_now&&(0,i.jsx)(d.A,{size:"small",variant:"primary",color:"primary-default",classes:"w-full lg:!px-0 lg:!h-[36px] lg:w-[114px] h-[36px] lg:!text-[11px] text-[9px] !h-[28px] w-[90px] !font-bold lg:!rounded-[7px] !rounded xl:!h-9 !overflow-hidden",onClick:()=>lS(null==e?void 0:e.id),children:"BUY NOW"}),!e.pre_order&&(0,i.jsx)(d.A,{size:"small",variant:"primary",color:"primary-default",classes:"w-full !px-0 lg:!px-0 !bg-[#E54646] lg:w-[114px] lg:h-[36px] !h-[28px] w-[90px] lg:!text-[11px] !text-[9px] font-bold lg:!rounded-[7px] !rounded lg:!h-[36px] xl:!h-9 !overflow-hidden",onClick:()=>{if(lF(e))eM.push("/shopping-cart");else{var l;l=null==e?void 0:e.id,lB(l)}},children:e9&&ld===(null==e?void 0:e.id)?(0,i.jsx)(F.A,{options:lX,height:36}):lF(e)?"GO TO CART":"ADD TO CART"})]})]})]})]})})]})},e.id)})}),e2&&(null==(ew=e2.data)||null==(eN=ew.products)?void 0:eN.length)===0&&(0,i.jsx)("div",{className:"flex items-center justify-center mt-[45px]",children:(0,i.jsx)("img",{src:P.src,alt:"empty readlist",className:"w-[384px] h-[172px]"})})]}),(0,i.jsx)("div",{className:"".concat(lu?"lg:hidden p-4 fixed flex flex-col items-center justify-center bottom-0 left-0 w-full z-50 bg-white transition-all duration-300 ":"lg:hidden flex flex-col items-center justify-center p-4 transition-all duration-300"),children:e2&&(null==e2||null==(e_=e2.data)||null==(eC=e_.products)?void 0:eC.length)>0?(0,i.jsxs)(i.Fragment,{children:[e2&&(null==e2||null==(eE=e2.data)||null==(eR=eE.products)?void 0:eR.filter(e=>lv.includes(e.id)&&e.pre_order).length)>0&&(0,i.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,i.jsx)("img",{src:J.A.src,alt:"information icon"}),(0,i.jsx)(r.A,{classes:"!text-[11px] text-[#595C65] font-semibold !leading-4",children:"Please place a separate order for Pre-order books "})]}),(0,i.jsx)(d.A,{variant:"primary",size:"medium",classes:"w-full h-[40px] my-[5px]",disabled:(null==lv?void 0:lv.length)<=0||e2&&(null==e2||null==(eB=e2.data)||null==(eI=eB.products)?void 0:eI.length)===0||e2&&(null==e2||null==(eX=e2.data)||null==(eF=eX.products)||null==(eS=eF.filter(e=>(null==lv?void 0:lv.includes(e.id))&&(null==e?void 0:e.pre_order)))?void 0:eS.length)>0||lM,onClick:()=>{lH(),e7(!0)},children:"PROCEED TO BUY ALL"})]}):(0,i.jsx)("button",{className:"border-[1px] border-solid border-[#
1E54646] rounded-[4px] lg:py-[10px] lg:px-[15px] py-[6px] px-[8px] items-center",onClick:()=>eM.push("/"),children:(0,i.jsx)(r.A,{variants:"xs",color:"primary-default",weight:"700",children:"FIND BOOK(S)"})})}),(0,i.jsx)(T,{open:lf,setOpen:lb,selectedBooks:lv,loadingresult:e6,setDrawerPopup:lI,drawerPopup:lE}),lj&&(0,i.jsxs)(B.A,{visible:lj,onCancel:()=>ly(!1),onOk:()=>ly(!1),footer:null,centered:!0,zIndex:1e5,className:"".concat(ll&&"pt-10"," relative bookshelf"),closable:!1,children:[(0,i.jsx)("div",{className:"absoloute top-2 pl-6 mt-4 right-0 w-full h-[45px] bg-white shadow-sm z-50",children:(0,i.jsx)("div",{className:"max-w-[90%]",children:(0,i.jsx)(r.A,{variants:"xl",weight:"700",fonts:"libre",color:"neutral-800",classes:"",children:"Remove Item(s)"})})}),(0,i.jsx)("div",{className:"absolute cursor-pointer top-2 right-6",children:(0,i.jsx)(b(),{height:40,width:40,src:O.A.src,alt:"cross icon",onClick:()=>{ly(!1)}})}),(0,i.jsx)("div",{className:"mt- pb-2 mx-4",children:(0,i.jsx)("div",{className:"ml-4 my-4 flex ",children:(0,i.jsx)(r.A,{classes:"!font-normal !text-base !leading-6 !text-[#30333F]",children:(0,i.jsxs)("span",{children:[" ","Are you sure you want to remove ".concat(lv.length," items?")," "]})})})}),(0,i.jsx)("div",{className:"shadow-md-top bottom-0 mx-auto left-0 right-0 first-letter:absolute w-full max-h-[70px] -translate-y-1 bg-white",children:(0,i.jsxs)("div",{className:"flex justify-between mx-auto max-w-[90%]",children:[(0,i.jsx)(d.A,{size:"medium",onClick:()=>{ly(!1),lD(lv)},variant:"secondary",classes:"my-4 mr-3 max-h-[40px] max-w-[220px] !rounded",children:"REMOVE"}),(0,i.jsx)(d.A,{size:"medium",onClick:()=>{ly(!1),lb(!0)},disabled:(null==eZ||null==(eD=eZ.result)||null==(eO=eD.data)?void 0:eO.filter(e=>!(null==e?void 0:e.is_created_by_admin)).length)<=1,variant:"primary",classes:"my-4 mr-3 max-h-[40px] max-w-[220px] !rounded",children:"Move To Other Readlist"})]})})]}),e5&&(0,i.jsxs)(S.A,{placement:"bottom",onClose:()=>e8(!1),visible:e5,children:[(0,i.jsx)("div",{className:"flex justify-center",onClick:()=>{lI(!1),e8(!1)},children:(0,i.jsx)("div",{className:"absolute -top-11",children:(0,i.jsx)(b(),{height:32,width:32,src:X.A.src,alt:"close"})})}),(0,i.jsxs)("div",{className:"pt-6 ml-4",children:[(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(r.A,{variants:"lg",weight:"700",fonts:"libre",color:"neutral-800",classes:"",children:"Remove Item(s)"})}),(0,i.jsx)("div",{className:"absolute hidden cursor-pointer top-4 right-8 lg:block",onClick:()=>{e8(!1)},children:(0,i.jsx)(b(),{height:40,width:40,src:O.A.src,alt:"cross icon"})})]}),(0,i.jsx)("div",{className:"mt-[18px] flex",children:(0,i.jsx)("div",{className:"ml-4 flex-1",children:(0,i.jsx)(r.A,{classes:"!font-normal !text-sm !text-[#30333F]",children:(0,i.jsxs)("span",{children:[" ","Are you sure you want to remove ".concat(lv.length," items?")," "]})})})}),(0,i.jsxs)("div",{className:"flex items-center mt-4 content-between mx-4",children:[(0,i.jsx)(d.A,{size:"medium",onClick:()=>{e8(!1),lD(lv)},variant:"secondary",classes:"my-4 mr-3 !rounded-lg",children:"REMOVE"}),(0,i.jsx)(d.A,{size:"medium",onClick:()=>{e8(!1),lI(!0)},disabled:(null==eZ||null==(ez=eZ.result)||null==(eT=ez.data)?void 0:eT.filter(e=>!(null==e?void 0:e.is_created_by_admin)).length)<=1,variant:"primary",classes:"my-4 !rounded-lg",children:"MOVE TO OTHER READLIST"})]})]})]}),(0,i.jsx)(U.A,{removeReadlist:lk,setRemoveReadlist:lN,readlistid:lO,result:e2,loadResource:e6,setRemoveReadlistSmall:li,removereadlistsmall:ls,readlistName:lh}),(0,i.jsx)(H.A,{readlistid:lO,headerTitle:"Edit readlist",isOpen:lt,onClose:()=>la(!1),editObj:lw,result:null==eZ?void 0:eZ.result,loadResource:e6}),(0,i.jsx)(q.A,{headerTitle:"Edit Readlist",isOpen:eY,onClose:()=>eV(!1),editObj:lw||null,readlistid:eq,loadResource:e6}),(0,i.jsx)(W,{setAddToCartPopup:lR,setAddToCartDrawer:lr,addToCartDrawer:ln,addToCartPopup:l_,result:e2,loadResource:e6,selectedBooks:lv,removebooks:e=>lD(e),bookAddToCart:e=>lB(e)})]})]})})},K=()=>(0,i.jsx)(G,{})},81580:(e,l,s)=>{"use strict";s.d(l,{A:()=>n});var i=s(37876),t=s(36110),a=s(14232);let n=e=>{let{children:l,additionalClasses:s}=e,{isSmartNotificationAvailable:n}=(0,a.useContext)(t.AppStateContext);return(0,i.jsx)("section",{className:"px-4 md:px-10 xl:px-20 pb-0 pt-20 h-full w-full justify-center xl:justify-start 2xl:min-h-[96vh] flex flex-col max-w-screen-3xl ".concat(n?"mt-[60px] lg:mt-[90px] xl:mt-[140px]":"lg:mt-[50px] mt-[30px] xl:mt-[120px]"," mx-auto   ").concat(null!=s?s:""," "),children:l})}}},e=>{e.O(0,[48404,52148,6306,65647,221,90636,46593,38792],()=>e(e.s=25361)),_N_E=e.O()}]);

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.