PageSourceSearch

https://readings.com.pk/_next/static/chunks/4524.5c8da391896d4216.js

js readings.com.pk collected 2026-10-02 13:41:13 UTC 6,517 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4524,4122],{27648:function(e,t,c){c.d(t,{default:function(){return n.a}});var i=c(72972),n=c.n(i)},57567:function(e,t,c){var i=c(57437),n=c(2265),a=c(93894);let s=(0,n.forwardRef)((e,t)=>{let{picname:c,alt:n="Book Cover",className:s="",style:r={},...o}=e;return(0,i.jsx)("img",{ref:t,src:(0,a.Z)(c||""),alt:n,className:s,style:r,onError:e=>{e.target.src="/images/no-image.jpg"},...o})});s.displayName="BookImage",t.Z=s},23689:function(e,t,c){var i=c(57437);c(2265);var n=c(75042);t.Z=function(e){var t;let{book:c,on_page:a=""}=e,s=parseInt(null!==(t=null==c?void 0:c.QUANTITY)&&void 0!==t?t:"0"),r=c.BOOK_STATUS||"",o=c.OTHER_SOURCE_NAME||"",d=c.PUBLISHER||"",l=c.ARRIVAL_DATE||"",u=c.PUBLISHERS_SOURCE||"";return"Coming Soon"===a?(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,n.I)(s,r,o,d,l,"Coming Soon",u)}}):(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,n.I)(s,r,o,d,l,"other",u)}})}},54524:function(e,t,c){c.r(t);var i=c(57437);c(2265);var n=c(27648),a=c(97048),s=c(30166),r=c(30095),o=c(16366),d=c(23689),l=c(57567);let u=(0,s.default)(()=>Promise.all([c.e(6593),c.e(8308),c.e(1011),c.e(2053)]).then(c.bind(c,52053)),{loadableGenerated:{webpack:()=>[52053]},ssr:!1}),v=e=>{var t,c,s;let v;let{book:p,on_page:h="",cant_buy:f,cart_item_id:m}=e,k=parseFloat(null!==(t=p.PAK_PRICE)&&void 0!==t?t:"0"),g=parseFloat(null!==(c=p.PRICE)&&void 0!==c?c:"0"),x=(0,r.B)(k,parseFloat(null!==(s=null==p?void 0:p.Discount)&&void 0!==s?s:"0"));return(0,i.jsxs)("div",{className:"product-blk",children:[(0,i.jsx)(n.default,{href:"/book/".concat(p.Book_Id),className:a.tq?"w-25":"",children:(0,i.jsx)("div",{className:"product-img",children:(0,i.jsx)(l.Z,{picname:p.picname,className:"lazyloading",style:{height:"250px",width:"100%",objectFit:"contain"}})})}),(0,i.jsxs)("div",{className:"product-dtl",children:[(0,i.jsx)(n.default,{href:"/book/".concat(p.Book_Id),children:(0,i.jsx)("div",{className:"product-title",style:{textTransform:"capitalize"},children:p.BOOK_TITLE})}),(0,i.jsx)("div",{className:"product-pack",children:(v="",(p.PUBLISHED_DATE&&"null"!==p.PUBLISHED_DATE&&""!==p.PUBLISHED_DATE&&(v=new Date(p.PUBLISHED_DATE).getFullYear().toString()),p.binding&&v)?"[".concat(p.binding," - ").concat(v,"]"):!p.binding&&v?"[".concat(v,"]"):p.binding&&!v?"[".concat(p.binding,"]"):null)}),p.authorName&&(0,i.jsx)("div",{className:"author",style:{textTransform:"capitalize"},children:(0,i.jsx)(n.default,{href:"/search?keyword=".concat(p.authorName," author"),children:p.authorName})}),(0,i.jsx)(d.Z,{book:p,on_page:""}),(0,i.jsxs)("div",{className:"product-price ".concat(a.tq?"real-price":"list_price"),children:["List Price: ",(0,o.o)(p.currency,g)]}),a.tq?(0,i.jsxs)("div",{className:"product-price",children:["Our Price: ",(0,i.jsx)("del",{className:"real-price",children:(0,o.o)("Rs",k)})," ",(0,i.jsxs)("span",{className:"sale-price",children:[" ",(0,o.o)("Rs",x)]})]}):(0,i.jsxs)("div",{className:"product-price",children:["Our Price: ",parseInt(p.Discount)>0&&(0,i.jsx)("del",{className:"real-price",children:(0,o.o)("Rs",k)})," ",(0,i.jsxs)("span",{className:"sale-price",children:[" ",(0,o.o)("Rs",x)]})]}),!a.tq&&parseInt(p.Discount)>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"discounts",children:["Standard Discount: ",(0,i.jsxs)("span",{children:[p.Discount.replace(".00",""),"%"]})]}),(0,i.jsxs)("div",{className:"save-upto",children:["You Save: Rs.",k-x]})]}),(0,i.jsx)(u,{book:p,on_page:h,cart_item_id:m})]})]})};t.default=e=>(0,i.jsx)(v,{...e})},16366:function(e,t,c){c.d(t,{o:function(){return n}});var i=c(42186);let n=(e,t)=>{switch(e.toLowerCase()){case"rs":default:return"".concat((0,i.p)(e),".").concat(Math.round(t));case"inr":return"".concat(Math.round(t)).concat(e.toUpperCase());case"$":case"\xa3":return"".concat(e).concat(Number(t).toFixed(t%1!=0?2:0))}}},30095:function(e,t,c){c.d(t,{B:function(){return i}});let i=(e,t)=>e?t&&t>0?Math.round(e-Math.round(e*t/100)):Math.round(e):0},75042:function(e,t,c){c.d(t,{I:function(){return a}});var i=c(76698),n=c(9939);let a=function(e,t,c,a){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"other",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";if(null===a&&(a=""),null===c&&(c=""),null===e||null===t)return"other"===r?"<div class='product-stock in-stock'>In Stock</div>":"<div class='detail-action'><div class='product-stock in-stock'>In Stock</div></div>";if("C"===t){let e="";if(s&&""!==s.trim()&&"null"!==s){let t=new Date(s);(0,i.J)(t)&&!isNaN(t.getTime())&&(e=(0,n.WU)(t,"dd-MMM-yyyy"))}return"<div class='detail-action'><div class='product-stock pre-order'>Pre-Order</div><div class='pre-order-text'> In Stock Around ".concat(e,"</div></div>")}if(e<=0&&"O"===t){let e="6-8";return"USA"===o&&(e="4-6"),"UK"===o&&(e="2-4"),"<div class='detail-action'><div class='product-stock demand-stock'>On Demand</div><div class='pre-order-text'> Availability in ".concat(e," weeks on receipt of order</div></div>")}if(e<=0&&"P"===t){let e="";if(s&&""!==s.trim()&&"null"!==s){let t=new Date(s);(0,i.J)(t)&&!isNaN(t.getTime())&&(e=(0,n.WU)(t,"dd-MMM-yyyy"))}return"<div class='detail-action'><div class='product-stock demand-stock'>On Demand Pre-Order</div><div class='pre-order-text'>
1 Available Around ".concat(e,"</div></div>")}if(a.length>1&&e<=0){let e="6-8";return"USA"===o&&(e="4-6"),"UK"===o&&(e="2-4"),"<div class='out_off_stock'><div class='product-stock out-stock'> Out of Stock</div><div class='pre-order-text'> Availability in ".concat(e," weeks on receipt of order</div></div>")}if(e>0)return"other"===r?"<div class='detail-action'><div class='product-stock in-stock'>In Stock</div></div>":"Book_Detail"===r&&e<=3?"<div class='detail-action'><div class='product-stock in-stock'>In Stock</div><div class='pre-order-text'> Only ".concat(e," left!</div></div>"):"<div class='detail-action'><div class='product-stock in-stock'>In Stock</div></div>";if(c.length>1&&e<=0)return"<div class='product-stock in-stock'>Not Available</div>";else return"<div class='product-stock in-stock'>Not Available</div>"}},93894:function(e,t){t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&""!==e.trim()&&"null"!==e&&"undefined"!==e?"".concat("https://d9z6htgewkjtb.cloudfront.net","/").concat(e,".webp"):"/images/no-image.jpg"}},42186:function(e,t,c){c.d(t,{p:function(){return i}});let i=e=>e.replace(/\b\w/g,e=>e.toUpperCase())}}]);

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.