PageSourceSearch

https://netaji.org/_next/static/chunks/pages/publication-8dfc2f91214908c7.js

js netaji.org collected 2026-10-02 09:54:38 UTC 46,439 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6657],{6679:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/publication",function(){return s(8425)}])},5601:function(e,t,s){"use strict";var a=s(5893),l=s(9008),n=s.n(l),i=s(1163),r=s(3949);t.Z=e=>{let{title:t="Netaji Research Bureau",description:s="Netaji Research Bureau, Kolkata, India. A premier institute of history, politics and international relations.",keywords:l="Netaji, Subhas Chandra Bose, NRB, Netaji Research Bureau, Kolkata, History, Museum"}=e,o=(0,i.useRouter)(),d=o.asPath.split("?")[0].split("#")[0]||o.pathname,c="/"!==d?d.replace(/\/$/,""):d,{data:u}=(0,r.Q)(c,{skip:!c}),m=null==u?void 0:u.data,h=null==m?void 0:m.global,x=(null==m?void 0:m.metaTitle)?m.metaTitle:"Netaji Research Bureau"===t?t:"".concat(t," | Netaji Research Bureau"),p=(null==m?void 0:m.metaDescription)||s,v=(null==m?void 0:m.metaKeywords)||l,g=(null==m?void 0:m.robotsIndexing)||"index, follow",f=(null==m?void 0:m.canonicalUrl)||"https://netaji.org".concat(d),b=(null==m?void 0:m.ogTitle)||x,j=(null==m?void 0:m.ogDescription)||p,y=(null==m?void 0:m.ogImage)||"",N=(null==m?void 0:m.twitterTitle)||x,w=(null==m?void 0:m.twitterDescription)||p,C=(null==m?void 0:m.twitterImage)||"";return(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:x}),(0,a.jsx)("meta",{name:"description",content:p}),(0,a.jsx)("meta",{name:"keywords",content:v}),(0,a.jsx)("meta",{name:"robots",content:g}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("link",{rel:"canonical",href:f}),(0,a.jsx)("meta",{property:"og:title",content:b}),(0,a.jsx)("meta",{property:"og:description",content:j}),y&&(0,a.jsx)("meta",{property:"og:image",content:y}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:url",content:f}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:N}),(0,a.jsx)("meta",{name:"twitter:description",content:w}),C&&(0,a.jsx)("meta",{name:"twitter:image",content:C}),(null==h?void 0:h.googleSiteVerification)&&(0,a.jsx)("meta",{name:"google-site-verification",content:h.googleSiteVerification}),(null==m?void 0:m.schemaJson)&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m.schemaJson)}}),(null==m?void 0:m.breadcrumbSchema)&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m.breadcrumbSchema)}}),(null==m?void 0:m.faqSchema)&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m.faqSchema)}}),(null==h?void 0:h.googleAnalyticsId)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(h.googleAnalyticsId)}),(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', '".concat(h.googleAnalyticsId,"');")}})]}),(null==h?void 0:h.googleTagManagerId)&&(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
1j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','".concat(h.googleTagManagerId,"');")}}),(null==h?void 0:h.customHeadTags)&&(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:h.customHeadTags}})]})}},1522:function(e,t,s){"use strict";s.d(t,{C:function(){return Badge}});var a=s(5893);s(7294);var l=s(2003),n=s(3441);let i=(0,l.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Badge(e){let{className:t,variant:s,...l}=e;return(0,a.jsx)("div",{className:(0,n.cn)(i({variant:s}),t),...l})}},8919:function(e,t,s){"use strict";s.d(t,{AG:function(){return m},At:function(){return u},Jb:function(){return d},aG:function(){return o},bg:function(){return BreadcrumbSeparator},gN:function(){return c}});var a=s(5893),l=s(7294),n=s(8426),i=s(4998),r=(s(6467),s(3441));let o=l.forwardRef((e,t)=>{let{...s}=e;return(0,a.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...s})});o.displayName="Breadcrumb";let d=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("ol",{ref:t,className:(0,r.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",s),...l})});d.displayName="BreadcrumbList";let c=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("li",{ref:t,className:(0,r.cn)("inline-flex items-center gap-1.5",s),...l})});c.displayName="BreadcrumbItem";let u=l.forwardRef((e,t)=>{let{asChild:s,className:l,...i}=e,o=s?n.g7:"a";return(0,a.jsx)(o,{ref:t,className:(0,r.cn)("transition-colors hover:text-foreground",l),...i})});u.displayName="BreadcrumbLink";let m=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,r.cn)("font-normal text-foreground",s),...l})});m.displayName="BreadcrumbPage";let BreadcrumbSeparator=e=>{let{children:t,className:s,...l}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,r.cn)("[&>svg]:w-3.5 [&>
1svg]:h-3.5",s),...l,children:null!=t?t:(0,a.jsx)(i.Z,{})})};BreadcrumbSeparator.displayName="BreadcrumbSeparator"},1731:function(e,t,s){"use strict";s.d(t,{Ol:function(){return r},SZ:function(){return d},Zb:function(){return i},aY:function(){return c},eW:function(){return u},ll:function(){return o}});var a=s(5893),l=s(7294),n=s(3441);let i=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",s),...l})});i.displayName="Card";let r=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",s),...l})});r.displayName="CardHeader";let o=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",s),...l})});o.displayName="CardTitle";let d=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...l})});d.displayName="CardDescription";let c=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",s),...l})});c.displayName="CardContent";let u=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",s),...l})});u.displayName="CardFooter"},2259:function(e,t,s){"use strict";s.d(t,{X:function(){return o}});var a=s(5893),l=s(7294),n=s(6069),i=s(3742),r=s(3441);let o=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(n.fC,{ref:t,className:(0,r.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-foreground ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground",s),...l,children:(0,a.jsx)(n.z$,{className:(0,r.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(i.Z,{className:"h-3 w-3"})})})});o.displayName=n.fC.displayName},3617:function(e,t,s){"use strict";s.d(t,{$N:function(){return h},Be:function(){return x},Vq:function(){return o},cN:function(){return DialogFooter},cZ:function(){return m},fK:function(){return DialogHeader},hg:function(){return d}});var a=s(5893),l=s(7294),n=s(2854),i=s(1352),r=s(3441);let o=n.fC,d=n.xz,c=n.h_;n.x8;let u=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(n.aV,{ref:t,style:{zIndex:999},className:(0,r.cn)("fixed inset-0 z-50 bg-black/70  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...l})});u.displayName=n.aV.displayName;let m=l.forwardRef((e,t)=>{let{className:s,children:l,...o}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(n.VY,{ref:t,style:{zIndex:1e3},className:(0,r.cn)("fixed left-[50%] top-[50%] z-50 grid w-[96%] sm:w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl sm:rounded-lg ",s),...o,children:[l,(0,a.jsxs)(n.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(i.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=n.VY.displayName;let DialogHeader=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};DialogHeader.displayName="DialogHeader";let DialogFooter=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,r.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};DialogFooter.displayName="DialogFooter";let h=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(n.Dx,{ref:t,className:(0,r.cn)("text-lg font-semibold leading-none tracking-tight",s),...l})});h.displayName=n.Dx.displayName;let x=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(n.dk,{ref:t,className:(0,r.cn)("text-sm text-muted-foreground",s),...l})});x.displayName=n.dk.displayName},8953:function(e,t,s){"use strict";s.d(t,{_:function(){return d}});var a=s(5893),l=s(7294),n=s(9102),i=s(2003),r=s(3441);let o=(0,i.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>{let{className:s,...l}=e;return(0,a.jsx)(n.f,{ref:t,className:(0,r.cn)(o(),s),...l})});d.displayName=n.f.displayName},8425:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return publication}});var a=s(5893),l=s(1163),n=s(8919),i=s(713),r=s(4958),o=s(7294),d=s(1731),c=s(9663),u=s(8953),m=s(2259),h=s(334),filter=e=>{let{selectedCategory:t,setSelectedCategory:s,selectedLanguage:l,setSelectedLanguage:n,selectedPrice:o,setSelectedPrice:x}=e,handleCategoryChange=e=>{s(e),"books"!==e&&n([])},handleLanguageChange=e=>{l.includes(e)?n(l.filter(t=>t!==e)):n([...l,e])},handlePriceChange=e=>{o.includes(e)?x(o.filter(t=>t!==e)):x([...o,e])};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:" justify-between items-center sm:mb-3 hidden sm:flex",children:[(0,a.jsx)("p",{className:"text-sm text-gray-700 sm:text-base font-medium sm:mb-3",children:"Filter By Category"}),(0,a.jsxs)(c.z,{onClick:()=>{s("books"),n([]),x([])},className:"bg-black text-white hover:bg-PrimaryRed hover:text-white text-sm/6 font-medium rounded-full",children:["Reset ",(0,a.jsx)(i.Z,{size:16,className:"ml-2"})]})]}),(0,a.jsx)(d.Zb,{className:"px-0 py-2 mb-4",children:["books","film","audio","oracle","cd"].map(e=>(0,a.jsx)("div",{className:"border-b px-0 py-3 text-sm",children:(0,a.jsxs)("div",{className:"flex items-center px-5 space-x-4",children:[(0,a.jsx)("input",{type:"radio",name:"category",value:e,checked:t===e,onChange:()=>handleCategoryChange(e),className:"cursor-pointer checked:border-PrimaryRed text-black h-4 w-4"}),(0,a.jsx)("label",{className:"text-sm font-normal",children:"cd"===e?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1)})]})},e))}),"books"===t&&(0,a.jsx)(d.Zb,{className:"px-0 py-0 mb-4",children:(0,a.jsxs)(h.zF,{className:"w-full p-0",defaultOpen:!0,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between space-x-4 py-1 px-2",children:[(0,a.jsx)("p",{className:"text-base font-medium m-0 px-3 py-1.5",children:"Language"}),(0,a.jsx)(h.wy,{asChild:!0,children:(0,a.jsx)(r.Z,{className:"h-4 w-4 cursor-pointer"})})]}),(0,a.jsx)(h.Fw,{className:"px-0",children:(0,a.jsxs)("div",{className:"border-t px-0 py-3 text-sm space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center px-5 space-x-4",children:[(0,a.jsx)(m.X,{id:"bengali",checked:l.includes("bengali"),onCheckedChange:()=>handleLanguageChange("bengali")}),(0,a.jsx)(u._,{htmlFor:"bengali",className:"text-sm font-normal",children:"Bengali"})]}),(0,a.jsxs)("div",{className:"flex items-center px-5 space-x-4",children:[(0,a.jsx)(m.X,{id:"english",checked:l.includes("english"),onCheckedChange:()=>handleLanguageChange("english")}),(0,a.jsx)(u._,{htmlFor:"english",className:"text-sm font-normal",children:"English"})]})]})})]})}),(0,a.jsx)(d.Zb,{className:"px-0 py-0 mb-4",children:(0,a.jsxs)(h.zF,{className:"w-full p-0",defaultOpen:!0,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between space-x-4 py-1 px-2",children:[(0,a.jsx)("p",{className:"text-base font-medium m-0 px-3 py-1.5",children:"Price"}),(0,a.jsx)(h.wy,{asChild:!0,children:(0,a.jsx)(r.Z,{className:"h-4 w-4 cursor-pointer"})})]}),(0,a.jsx)(h.Fw,{className:"px-0",children:(0,a.jsxs)("div",{className:"border-t px-0 py-3 text-sm space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center px-5 space-x-4",children:[(0,a.jsx)(m.X,{id:"under-500",checked:o.includes("under-500"),onCheckedChange:()=>handlePriceChange("under-500")}),(0,a.jsxs)("label",{htmlFor:"under-500",className:"text-sm font-normal",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),"0 - ",(0,a.jsx)("span",{className:"rupee",children:"₹"}),"500"]})]}),(0,a.jsxs)("div",{className:"flex items-center px-5 space-x-4",children:[(0,a.jsx)(m.X,{id:"under-1000",checked:o.includes("under-1000"),onCheckedChange:()=>handlePriceChange("under-1000")}),(0,a.jsxs)("label",{htmlFor:"under-1000",className:"text-sm font-normal",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),"0 - ",(0,a.jsx)("span",{className:"rupee",children:"₹"}),"1000"]})]}),(0,a.jsxs)("div",{className:"flex items-center px-5 space-x-4",children:[(0,a.jsx)(m.X,{id:"under-2000",checked:o.includes("under-2000"),onCheckedChange:()=>handlePriceChange("under-2000")}),(0,a.jsxs)("label",{htmlFor:"under-2000",className:"text-sm font-normal",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),"0 - ",(0,a.jsx)("span",{className:"rupee",children:"₹"}),"2000"]})]})]})})]})})]})},x=s(7420),p=s(1522),v=s(4637),g=s(6769),f=s(562),b=s(4712),j=s(5675),y=s.n(j),N=s(8533),w=s(416);function BooksListing(e){let{selectedLanguage:t,selectedPrice:s}=e,n=(0,l.useRouter)(),i=(0,o.useMemo)(()=>{let e=[];
1if(t.length>0&&e.push({id:"language",value:t}),s.length>0){let t=[];s.includes("under-500")&&t.push("0-500"),s.includes("under-1000")&&t.push("500-1000"),s.includes("under-2000")&&t.push("1000-2000"),t.length>0&&e.push({id:"price",value:t})}return e},[t,s]),[r,u]=(0,o.useState)(0),[m,h]=(0,o.useState)([]),j=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.token}),C=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.data}),{data:k,isFetching:A,refetch:P}=(0,v._v)({pageNo:r,pageLimit:12,customerId:j?null==C?void 0:C.id:null,filters:i},{refetchOnMountOrArgChange:!0}),[R]=(0,f.yv)(),{refetch:D}=(0,w.Ny)(void 0,{refetchOnMountOrArgChange:!0}),[z]=(0,w.UI)(),handleAddToWishlist=async e=>{j||n.push("/auth/login");try{let t=await z({productId:e}).unwrap();201===t.statusCode?(b.Am.success("Product added to wishlist"),D(),P()):200===t.statusCode?(b.Am.success("Product removed from wishlist"),D(),P()):b.Am.error(" ".concat(null==t?void 0:t.message))}catch(e){var t,s,a;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.authMessage)):b.Am.error("".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message))}},handleRoutePublicationDetail=e=>{n.push("/publication/details/".concat(e))},handleAddToCart=async(e,t)=>{j||n.push("/auth/login");try{let s=await R({productId:e,quantity:t}).unwrap();201===s.statusCode?(b.Am.success("\uD83C\uDF89 Item added to cart successfully!"),n.push("/cart")):b.Am.error("\uD83D\uDED1 ".concat(null==s?void 0:s.message))}catch(e){var s,a,l;(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.authMessage)):b.Am.error("".concat(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.message))}};return(0,o.useEffect)(()=>{u(0),h([])},[t,s]),(0,o.useEffect)(()=>{(null==k?void 0:k.data)&&h(e=>{if(0===r)return k.data;let t=new Map(e.map(e=>[e.id,e]));return k.data.forEach(e=>{t.set(e.id,{...t.get(e.id),...e})}),Array.from(t.values())})},[k,r]),(0,a.jsxs)(a.Fragment,{children:[!A&&0===m.length&&(0,a.jsx)("div",{className:"col-span-4 text-center py-8",children:"No books found matching your filters."}),(0,a.jsx)(N.Z,{dataLength:m.length,next:()=>{k&&m.length<k.count&&!A&&u(e=>e+1)},hasMore:m.length<((null==k?void 0:k.count)||0),loader:(0,a.jsx)("p",{className:"text-center",children:"Loading more books..."}),className:"relative",children:(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 sm:gap-5 mt-5  sm:mt-12",children:null==m?void 0:m.map((e,t)=>(0,a.jsxs)(d.Zb,{className:"w-full h-fit group border-none rounded-none bg-transparent flex justify-between flex-col relative shadow-none",children:[(null==e?void 0:e.quantity)==="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-transparent bg-opacity-60 flex items-center justify-center "}),!(null==e?void 0:e.isAvaliable)&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-slate-300 bg-opacity-60 flex items-center justify-center text-red-600 font-normal text-lg",children:"No Available"}),(null==e?void 0:e.isPopular)&&(0,a.jsx)(p.C,{className:"-top-4 absolute rounded bg-PrimaryRed text-white font-normal left-4 text-sm sm:px-4 sm:py-2 pointer-events-none select-none z-10",children:"Popular"}),(0,a.jsx)("div",{className:"flex justify-end items-center absolute top-4 right-4 bg-white p-2 rounded-full h-9 w-9 z-10",onClick:()=>handleAddToWishlist(null==e?void 0:e.id),children:(0,a.jsx)(x.Z,{fill:"".concat((null==e?void 0:e.isWishlist)?"Red":"white"),className:"stroke-PrimaryRed cursor-pointer",size:19})}),(0,a.jsxs)(d.aY,{className:"relative overflow-hidden bg-white p-1 sm:p-3 shadow border",children:[(null==e?void 0:e.quantity)==="0"&&(0,a.jsx)("div",{className:"absolute z-30 inset-0 bg-black bg-opacity-60 flex items-center justify-center  text-PrimaryRed font-normal text-lg pointer-events-none hover:none",children:(0,a.jsx)(c.z,{className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-sm/6 font-normal gap-x-1 mt-2 pointer-events-none",children:"Out of Stock"})}),(0,a.jsx)(y(),{src:e.coverImage,alt:(null==e?void 0:e.title)||"Book",title:(null==e?void 0:e.title)||"Book",width:600,height:400,className:" w-full h-full transition-transform duration-300 group-hover:scale-110 "}),(0,a.jsx)("div",{className:"absolute h-full w-full bg-black/20 flex flex-col items-center justify-center left-0 -bottom-10 group-hover:bottom-0 opacity-0 group-hover:opacity-100 transition-all duration-300",children:(null==e?void 0:e.quantity)!==null&&(null==e?void 0:e.quantity)!==void 0&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)(c.z,{disabled:e.isCart,className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-xs sm:text-sm/6 font-normal gap-x-1 mt-2",onClick:t=>{t.stopPropagation(),handleAddToCart(null==e?void 0:e.id,1)},children:e.isCart?"Added":"Add to cart"})})]}),(0,a.jsxs)(d.eW,{className:"flex-col items-start px-0 py-2 bg-transparent cursor-pointer",onClick:()=>handleRoutePublicationDetail(e.id),children:[(0,a.jsx)("h6",{className:"text-black font-medium text-sm sm:text-base/6  mb-0 line-clamp-1",children:null==e?void 0:e.title}),(0,a.jsxs)("p",{className:"text-black text-xs sm:text-sm font-light mb-1",children:["Language: ",(null==e?void 0:e.language)?"Bengali":"English"]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("p",{className:"text-black text-sm font-semibold mb-0 sm:mb-2",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),(null==e?void 0:e.price)-(null==e?void 0:e.price)*((null==e?void 0:e.discount)/100)]}),(null==e?void 0:e.discount)>0&&(0,a.jsxs)("div",{className:"flex flex-row items-start sm:flex-row gap-x-2",children:[(0,a.jsxs)("p",{className:"text-gray-500 text-sm line-through mb-0 sm:mb-2",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),null==e?void 0:e.price]}),(0,a.jsxs)("p",{className:"text-PrimaryRed text-sm font-medium mb-0 
1sm:mb-2",children:[null==e?void 0:e.discount,"% off"]})]})]})]})]},null==e?void 0:e.id))})})]})}function AudioListing(e){var t;let{selectedPrice:s}=e,n=(0,l.useRouter)(),i=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.token}),r=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.data}),{data:u,isLoading:m,refetch:h}=(0,v.NM)({customerId:i?null==r?void 0:r.id:null},{refetchOnMountOrArgChange:!0}),[j]=(0,f.yv)(),{refetch:N}=(0,w.Ny)(void 0,{refetchOnMountOrArgChange:!0}),[C]=(0,w.UI)(),handleAddToWishlist=async e=>{i||n.push("/auth/login");try{let t=await C({productId:e}).unwrap();201===t.statusCode?(b.Am.success("Product added to wishlist"),N(),h()):200===t.statusCode?(b.Am.success("Product removed from wishlist"),N(),h()):b.Am.error(" ".concat(null==t?void 0:t.message))}catch(e){var t,s,a;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.authMessage)):b.Am.error("".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message))}},handleRoutePublicationDetail=e=>{n.push("/publication/details/".concat(e))},handleAddToCart=async(e,t)=>{i||n.push("/auth/login");try{let s=await j({productId:e,quantity:t}).unwrap();201===s.statusCode?(b.Am.success("\uD83C\uDF89 Item added to cart successfully!"),n.push("/cart")):b.Am.error("\uD83D\uDED1 ".concat(null==s?void 0:s.message))}catch(e){var s,a,l;(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.authMessage)):b.Am.error("".concat(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.message))}},k=(0,o.useMemo)(()=>(null==u?void 0:u.data)?u.data.filter(e=>{if(0===s.length)return!0;let t=null==e?void 0:e.price;return!!(s.includes("under-500")&&t<500||s.includes("under-1000")&&t<1e3||s.includes("under-2000")&&t<2e3)}):[],[null==u?void 0:u.data,s]);return m?(0,a.jsx)("div",{className:"col-span-4 text-center py-8",children:"Loading..."}):(null==k?void 0:k.length)?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 sm:gap-5 mt-5  sm:mt-12",children:null==u?void 0:null===(t=u.data)||void 0===t?void 0:t.map((e,t)=>(0,a.jsxs)(d.Zb,{className:"w-full h-fit group border-none rounded-none bg-transparent flex justify-between flex-col relative shadow-none",children:[(null==e?void 0:e.quantity)==="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-transparent bg-opacity-60 flex items-center justify-center "}),!(null==e?void 0:e.isAvaliable)&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-slate-300 bg-opacity-60 flex items-center justify-center text-red-600 font-normal text-lg",children:"No Available"}),(null==e?void 0:e.isPopular)&&(0,a.jsx)(p.C,{className:"-top-4 absolute rounded bg-PrimaryRed text-white font-normal left-4 text-sm sm:px-4 sm:py-2 pointer-events-none select-none z-10",children:"Popular"}),(0,a.jsx)(c.z,{className:"flex justify-end items-center absolute top-4 right-4 bg-white p-2 rounded-full h-9 w-9 z-10",children:(0,a.jsx)(x.Z,{fill:"".concat((null==e?void 0:e.isWishlist)?"Red":"white"),onClick:()=>handleAddToWishlist(null==e?void 0:e.id),className:"text-PrimaryRed cursor-pointer",size:19})}),(0,a.jsxs)(d.aY,{className:"relative overflow-hidden bg-white p-1 sm:p-3 shadow border",children:[(null==e?void 0:e.quantity)==="0"&&(0,a.jsx)("div",{className:"absolute z-30 inset-0 bg-black bg-opacity-60 flex items-center justify-center  text-PrimaryRed font-normal text-lg pointer-events-none hover:none",children:(0,a.jsx)(c.z,{className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-sm/6 font-normal gap-x-1 mt-2 pointer-events-none",children:"Out of Stock"})}),(0,a.jsx)(y(),{src:e.coverImage,alt:(null==e?void 0:e.title)||"Audio",title:(null==e?void 0:e.title)||"Audio",width:600,height:400,className:" w-full h-full transition-transform duration-300 group-hover:scale-110 "}),(0,a.jsx)("div",{className:"absolute h-full w-full bg-black/20 flex flex-col items-center justify-center left-0 -bottom-10 group-hover:bottom-0 opacity-0 group-hover:opacity-100 transition-all duration-300",children:(null==e?void 0:e.quantity)!==null&&(null==e?void 0:e.quantity)!==void 0&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)(c.z,{disabled:e.isCart,className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-xs sm:text-sm/6 font-normal gap-x-1 mt-2",onClick:t=>{t.stopPropagation(),handleAddToCart(null==e?void 0:e.id,1)},children:e.isCart?"Added":"Add to cart"})})]}),(0,a.jsxs)(d.eW,{className:"flex-col items-start px-0 py-2 bg-transparent cursor-pointer",onClick:()=>handleRoutePublicationDetail(e.id),children:[(0,a.jsx)("h6",{className:"text-black font-medium text-sm sm:text-base/6  mb-0 line-clamp-1",children:null==e?void 0:e.title}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("p",{className:"text-black text-sm font-semibold mb-0 sm:mb-2",children:["₹",(null==e?void 0:e.price)-(null==e?void 0:e.price)*((null==e?void 0:e.discount)/100)]}),(null==e?void 0:e.discount)>0&&(0,a.jsxs)("div",{className:"flex flex-row items-start sm:flex-row gap-x-2",children:[(0,a.jsxs)("p",{className:"text-gray-500 text-sm line-through mb-0 sm:mb-2",children:["₹",null==e?void 0:e.price]}),(0,a.jsxs)("p",{className:"text-PrimaryRed text-sm font-medium mb-0 
1sm:mb-2",children:[null==e?void 0:e.discount,"% off"]})]})]})]})]},null==e?void 0:e.id))})}):(0,a.jsx)("div",{className:"col-span-4 text-center py-8",children:"No audio found matching your filters."})}function VideoListing(e){var t;let{selectedPrice:s}=e,n=(0,l.useRouter)(),i=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.token}),r=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.data}),{data:u,isLoading:m,refetch:h}=(0,v._b)({customerId:i?null==r?void 0:r.id:null},{refetchOnMountOrArgChange:!0}),[j]=(0,f.yv)(),{refetch:N}=(0,w.Ny)(void 0,{refetchOnMountOrArgChange:!0}),[C]=(0,w.UI)(),handleAddToWishlist=async e=>{i||n.push("/auth/login");try{let t=await C({productId:e}).unwrap();201===t.statusCode?(b.Am.success("Product added to wishlist"),N(),h()):200===t.statusCode?(b.Am.success("Product removed from wishlist"),N(),h()):b.Am.error(" ".concat(null==t?void 0:t.message))}catch(e){var t,s,a;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.authMessage)):b.Am.error("".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message))}},handleRoutePublicationDetail=e=>{n.push("/publication/details/".concat(e))},handleAddToCart=async(e,t)=>{i||n.push("/auth/login");try{let s=await j({productId:e,quantity:t}).unwrap();201===s.statusCode?(b.Am.success("\uD83C\uDF89 Item added to cart successfully!"),n.push("/cart")):b.Am.error("\uD83D\uDED1 ".concat(null==s?void 0:s.message))}catch(e){var s,a,l;(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.authMessage)):b.Am.error("".concat(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.message))}},k=(0,o.useMemo)(()=>(null==u?void 0:u.data)?u.data.filter(e=>{if(0===s.length)return!0;let t=null==e?void 0:e.price;return!!(s.includes("under-500")&&t<500||s.includes("under-1000")&&t<1e3||s.includes("under-2000")&&t<2e3)}):[],[null==u?void 0:u.data,s]);return m?(0,a.jsx)("div",{className:"col-span-4 text-center py-8",children:"Loading..."}):(null==k?void 0:k.length)?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 sm:gap-5 mt-5  sm:mt-12",children:null==u?void 0:null===(t=u.data)||void 0===t?void 0:t.map((e,t)=>(0,a.jsxs)(d.Zb,{className:"w-full h-fit group border-none rounded-none bg-transparent flex justify-between flex-col relative shadow-none",children:[(null==e?void 0:e.quantity)==="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-transparent bg-opacity-60 flex items-center justify-center "}),!(null==e?void 0:e.isAvaliable)&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-slate-300 bg-opacity-60 flex items-center justify-center text-red-600 font-normal text-lg",children:"Not Available"}),(null==e?void 0:e.isPopular)&&(0,a.jsx)(p.C,{className:"-top-4 absolute rounded bg-PrimaryRed text-white font-normal left-4 text-sm sm:px-4 sm:py-2 pointer-events-none select-none z-10",children:"Popular"}),(0,a.jsx)(c.z,{className:"flex justify-end items-center absolute top-2 right-2 bg-white p-2 rounded-full h-9 w-9 z-10",children:(0,a.jsx)(x.Z,{fill:"".concat((null==e?void 0:e.isWishlist)?"Red":"white"),onClick:()=>handleAddToWishlist(null==e?void 0:e.id),className:"text-PrimaryRed cursor-pointer",size:19})}),(0,a.jsxs)(d.aY,{className:"relative overflow-hidden bg-white p-1 sm:p-3 shadow border",children:[(null==e?void 0:e.quantity)==="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-black bg-opacity-60 flex items-center justify-center  text-PrimaryRed font-normal text-lg pointer-events-none hover:none",children:(0,a.jsx)(c.z,{className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-sm/6 font-normal gap-x-1 mt-2 pointer-events-none",children:"Out of Stock"})}),(0,a.jsx)(y(),{src:e.coverImage,alt:e.title||"Video",title:e.title||"Video",width:600,height:400,className:" w-full h-full transition-transform duration-300 group-hover:scale-110 "}),(0,a.jsx)("div",{className:"absolute h-full w-full bg-black/20 flex flex-col items-center justify-center left-0 -bottom-10 group-hover:bottom-0 opacity-0 group-hover:opacity-100 transition-all duration-300",children:(null==e?void 0:e.quantity)!==null&&(null==e?void 0:e.quantity)!==void 0&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)(c.z,{disabled:e.isCart,className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-xs sm:text-sm/6 font-normal gap-x-1 mt-2",onClick:t=>{t.stopPropagation(),handleAddToCart(null==e?void 0:e.id,1)},children:e.isCart?"Added":"Add to cart"})})]}),(0,a.jsxs)(d.eW,{className:"flex-col items-start px-0 py-2 bg-transparent cursor-pointer",onClick:()=>handleRoutePublicationDetail(e.id),children:[(0,a.jsx)("h6",{className:"text-black font-medium text-sm sm:text-base/6  mb-0 line-clamp-1",children:e.title}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("p",{className:"text-black text-sm font-semibold mb-0 sm:mb-2",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),(null==e?void 0:e.price)-(null==e?void 0:e.price)*((null==e?void 0:e.discount)/100)]}),(null==e?void 0:e.discount)>0&&(0,a.jsxs)("div",{className:"flex flex-row items-start sm:flex-row gap-x-2",children:[(0,a.jsxs)("p",{className:"text-gray-500 text-sm line-through mb-0 sm:mb-2",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),null==e?void 0:e.price]}),(0,a.jsxs)("p",{className:"text-PrimaryRed text-sm font-medium mb-0 
1sm:mb-2",children:[null==e?void 0:e.discount,"% off"]})]})]})]})]},t))})}):(0,a.jsx)("div",{className:"col-span-4 text-center py-8",children:"No video found matching your filters."})}var C=s(2078);function OracleListing(e){let{selectedPrice:t}=e,s=(0,l.useRouter)(),n=(0,o.useMemo)(()=>{let e=[];if(t.length>0){let s=[];t.includes("under-500")&&s.push("0-500"),t.includes("under-1000")&&s.push("500-1000"),t.includes("under-2000")&&s.push("1000-2000"),s.length>0&&e.push({id:"price",value:s})}return e},[t]),[i,r]=(0,o.useState)(0),[u,m]=(0,o.useState)([]),h=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.token}),x=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.data}),{data:j,isFetching:w}=(0,v.Ar)({pageNo:i,pageLimit:12,customerId:h?null==x?void 0:x.id:null,filters:n},{refetchOnMountOrArgChange:!0}),[k]=(0,f.yv)(),handleAddToCart=async(e,t)=>{h||s.push("/auth/login");try{let a=await k({productId:e,quantity:t}).unwrap();201===a.statusCode?(b.Am.success("\uD83C\uDF89 Item added to cart successfully!"),s.push("/cart")):b.Am.error("\uD83D\uDED1 ".concat(null==a?void 0:a.message))}catch(e){var a,l,n;(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.authMessage)):b.Am.error("".concat(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.message))}};return(0,o.useEffect)(()=>{r(0),m([])},[t]),(0,o.useEffect)(()=>{(null==j?void 0:j.data)&&m(e=>{if(0===i)return j.data;let t=new Map(e.map(e=>[e.id,e]));return j.data.forEach(e=>{t.set(e.id,{...t.get(e.id),...e})}),Array.from(t.values())})},[j,i]),(0,a.jsxs)(a.Fragment,{children:[!w&&0===u.length&&(0,a.jsx)("div",{className:"col-span-4 text-center py-8",children:"No oracle found matching your filters."}),(0,a.jsx)(N.Z,{dataLength:u.length,next:()=>{j&&u.length<j.count&&!w&&r(e=>e+1)},hasMore:j&&u.length<j.count,loader:(0,a.jsx)("p",{className:"text-center",children:"Loading more oracle..."}),className:"relative",children:(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 sm:gap-5 mt-4 sm:mt-12",children:u.map((e,t)=>(0,a.jsxs)(d.Zb,{className:"w-full h-fit group border-none rounded-none bg-transparent flex justify-between flex-col relative shadow-none",children:[!(null==e?void 0:e.isAvaliable)&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-slate-300 bg-opacity-60 flex items-center justify-center text-PrimaryRed font-normal text-lg",children:"Not Available"}),(null==e?void 0:e.isPopular)&&(0,a.jsx)(p.C,{className:"-top-4 absolute rounded bg-PrimaryRed text-white font-normal left-4 text-sm sm:px-4 sm:py-2 pointer-events-none select-none z-10",children:"Popular"}),(0,a.jsxs)(d.aY,{className:"relative overflow-hidden bg-white p-1 sm:p-3 shadow border",children:[(0,a.jsx)(y(),{src:e.coverImage,alt:e.title||"Oracle",title:e.title||"Oracle",width:600,height:400,className:" w-full h-full transition-transform duration-300 group-hover:scale-110 "}),(0,a.jsxs)("div",{className:"absolute h-full w-full bg-black/20 flex flex-col items-center justify-center left-0 -bottom-10 group-hover:bottom-0 opacity-0 group-hover:opacity-100 transition-all duration-300",children:[(0,a.jsx)(c.z,{disabled:e.isCart,className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-xs sm:text-sm/6 font-normal gap-x-1 mb-1 sm:mb-3",onClick:t=>{t.stopPropagation(),handleAddToCart(null==e?void 0:e.id,1)},children:e.isCart?"Added to cart":"Buy Hardcopy"}),(0,a.jsx)(c.z,{className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-xs sm:text-sm/6 font-normal gap-x-1 ",onClick:()=>{e.bookPdf?window.open(e.bookPdf,"_blank"):alert("No PDF exists for this.")},children:"Download"})]})]}),(0,a.jsxs)(d.eW,{className:"flex flex-col items-start px-0 py-2 bg-transparent cursor-pointer",children:[(0,a.jsx)("h6",{className:"text-black font-medium text-sm sm:text-base/6  mb-0  ",children:e.title}),(0,a.jsxs)("p",{className:"text-black text-xs sm:text-sm font-light mb-0",children:["Release Date :"," ",e.releaseDate?(0,C.ZP)(new Date(e.releaseDate),"MMM yyyy"):"-"]}),(0,a.jsx)("div",{className:"flex flex-col items-center gap-2",children:(0,a.jsxs)("div",{className:"flex gap-x-5 mb-2",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"text-black text-xs sm:text-sm font-light mb-0",children:["Vol : ",e.bookVolume]})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"text-black text-xs sm:text-sm font-light mb-0",children:["No : ",e.bookNo]})})]})})]})]},t))})})]})}function CDDVDListing(e){var t;let{selectedPrice:s}=e,n=(0,l.useRouter)(),i=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.token}),r=(0,g.C)(e=>{var t,s;return null==e?void 0:null===(s=e.persistedReducers)||void 0===s?void 0:null===(t=s.authSlice)||void 0===t?void 0:t.data}),{data:u,isLoading:m,refetch:h}=(0,v.rE)({customerId:i?null==r?void 0:r.id:null},{refetchOnMountOrArgChange:!0}),[j]=(0,f.yv)(),{refetch:N}=(0,w.Ny)(void 0,{refetchOnMountOrArgChange:!0}),[C]=(0,w.UI)(),handleAddToWishlist=async e=>{i||n.push("/auth/login");try{let t=await C({productId:e}).unwrap();201===t.statusCode?(b.Am.success("Product added to wishlist"),N(),h()):200===t.statusCode?(b.Am.success("Product removed from wishlist"),N(),h()):b.Am.error(" ".concat(null==t?void 0:t.message))}catch(e){var t,s,a;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.authMessage)):b.Am.error("".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message))}},handleRoutePublicationDetail=e=>{n.push("/publication/details/".concat(e))},handleAddToCart=async(e,t)=>{i||n.push("/auth/login");try{let s=await j({productId:e,quantity:t}).unwrap();201===s.statusCode?(b.Am.success("\uD83C\uDF89 Item added to cart successfully!"),n.push("/cart")):b.Am.error("\uD83D\uDED1 ".concat(null==s?void 0:s.message))}catch(e){var s,a,l;(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.statusCode)===401?b.Am.info("".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.authMessage)):b.Am.error("".concat(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.message))}},k=(0,o.useMemo)(()=>(null==u?void 0:u.data)?u.data.filter(e=>{if(0===s.length)return!0;let t=null==e?void 0:e.price;return!!(s.includes("under-500")&&t<500||s.includes("under-1000")&&t<1e3||s.includes("under-2000")&&t<2e3)}):[],[null==u?void 0:u.data,s]);return m?(0,a.jsx)("div",{className:"col-span-4 text-center py-8",children:"Loading..."}):(null==k?void 0:k.length)?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 sm:gap-5 mt-5  sm:mt-12",children:null==u?void 0:null===(t=u.data)||void 0===t?void 0:t.map((e,t)=>(0,a.jsxs)(d.Zb,{className:"w-full h-fit group border-none rounded-none bg-transparent flex justify-between flex-col relative shadow-none",children:[(null==e?void 0:e.quantity)==="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-transparent bg-opacity-60 flex items-center justify-center "}),!(null==e?void 0:e.isAvaliable)&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-slate-300 bg-opacity-60 flex items-center justify-center text-red-600 font-normal text-lg",children:"No Available"}),(null==e?void 0:e.isPopular)&&(0,a.jsx)(p.C,{className:"-top-4 absolute rounded bg-PrimaryRed text-white font-normal left-4 text-sm sm:px-4 sm:py-2 pointer-events-none select-none z-10",children:"Popular"}),(0,a.jsx)(c.z,{className:"flex justify-end items-center absolute top-4 right-4 bg-white p-2 rounded-full h-9 w-9 z-10",children:(0,a.jsx)(x.Z,{fill:"".concat((null==e?void 0:e.isWishlist)?"Red":"white"),onClick:()=>handleAddToWishlist(null==e?void 0:e.id),className:"text-PrimaryRed cursor-pointer",size:19})}),(0,a.jsxs)(d.aY,{className:"relative overflow-hidden bg-white p-1 sm:p-3 shadow border",children:[(null==e?void 0:e.quantity)==="0"&&(0,a.jsx)("div",{className:"absolute z-50 inset-0 bg-black bg-opacity-60 flex items-center justify-center  text-PrimaryRed font-normal text-lg pointer-events-none hover:none",children:(0,a.jsx)(c.z,{className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-sm/6 font-normal gap-x-1 mt-2 pointer-events-none",children:"Out of Stock"})}),(0,a.jsx)(y(),{src:e.coverImage,alt:(null==e?void 0:e.title)||"CD/DVD",title:(null==e?void 0:e.title)||"CD/DVD",width:600,height:400,className:" w-full h-full transition-transform duration-300 group-hover:scale-110 "}),(0,a.jsx)("div",{className:"absolute h-full w-full bg-black/20 flex flex-col items-center justify-center left-0 -bottom-10 group-hover:bottom-0 opacity-0 group-hover:opacity-100 transition-all duration-300",children:(null==e?void 0:e.quantity)!==null&&(null==e?void 0:e.quantity)!==void 0&&(null==e?void 0:e.quantity)!=="0"&&(0,a.jsx)(c.z,{disabled:e.isCart,className:"capitalize text-white bg-PrimaryRed hover:bg-[#393939] hover:text-white text-xs sm:text-sm/6 font-normal gap-x-1 mt-2",onClick:t=>{t.stopPropagation(),handleAddToCart(null==e?void 0:e.id,1)},children:e.isCart?"Added":"Add to cart"})})]}),(0,a.jsxs)(d.eW,{className:"flex-col items-start px-0 py-2 bg-transparent cursor-pointer",onClick:()=>handleRoutePublicationDetail(e.id),children:[(0,a.jsx)("h6",{className:"text-black font-medium text-sm sm:text-base/6  mb-0 line-clamp-1",children:e.title}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("p",{className:"text-black text-sm font-semibold mb-0 sm:mb-2",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),(null==e?void 0:e.price)-(null==e?void 0:e.price)*((null==e?void 0:e.discount)/100)]}),(null==e?void 0:e.discount)>0&&(0,a.jsxs)("div",{className:"flex flex-row items-start sm:flex-row gap-x-2",children:[(0,a.jsxs)("p",{className:"text-gray-500 text-sm line-through mb-0 sm:mb-2",children:[(0,a.jsx)("span",{className:"rupee",children:"₹"}),null==e?void 0:e.price]}),(0,a.jsxs)("p",{className:"text-PrimaryRed text-sm font-medium mb-0 
1sm:mb-2",children:[null==e?void 0:e.discount,"% off"]})]})]})]})]},t))})}):(0,a.jsx)("div",{className:"col-span-4 text-center py-8",children:"No CD found matching your filters."})}var k=s(9483),A=s(3617),P=s(5601),publication=()=>{let e=(0,l.useRouter)(),{category:t}=e.query,[s,i]=(0,o.useState)("books"),[r,d]=(0,o.useState)([]),[u,m]=(0,o.useState)([]),{refetch:h}=(0,w.Ny)(void 0,{refetchOnMountOrArgChange:!0}),[x]=(0,w.UI)();return(0,o.useEffect)(()=>{"oracle"===t&&i("oracle")},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.Z,{title:"Publications"}),(0,a.jsx)("div",{className:"inner-banner-sec bg-[url('/images/nrb_inner_banner.svg')] bg-no-repeat bg-cover ",children:(0,a.jsx)("div",{className:"container h-24 min-h-0 sm:min-h-64 flex justify-start items-center",children:(0,a.jsxs)("div",{className:"flex flex-col sm:mb-3",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)("h1",{className:"text-white font-semibold sm:text-5xl mb-1",children:"Publications"})}),(0,a.jsx)("div",{className:"breadcrumb",children:(0,a.jsx)(n.aG,{className:"",children:(0,a.jsxs)(n.Jb,{children:[(0,a.jsx)(n.gN,{children:(0,a.jsx)(n.At,{href:"#",className:"text-red-700",children:"Home"})}),(0,a.jsx)(n.bg,{}),(0,a.jsx)(n.gN,{children:(0,a.jsx)(n.AG,{className:"text-[#8F8F8F]",children:"Publications"})})]})})})]})})}),(0,a.jsx)("div",{className:"container py-7 sm:py-16",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-4 sm:gap-x-9",children:[(0,a.jsx)("div",{className:"col col-span-1 block sm:hidden",children:(0,a.jsxs)("div",{className:"flex justify-start items-center gap-x-3 mb-3",children:[(0,a.jsx)("p",{className:"text-base text-black select-none sm:text-base font-medium mb-0 sm:mb-3",children:"Filter By"}),(0,a.jsxs)(A.Vq,{children:[(0,a.jsx)(A.hg,{asChild:!0,children:(0,a.jsx)(c.z,{className:"p-0 w-8 h-8",children:(0,a.jsx)(k.Z,{className:"w-5 h-5"})})}),(0,a.jsxs)(A.cZ,{className:"sm:max-w-[425px]",children:[(0,a.jsx)(A.fK,{children:(0,a.jsx)(A.$N,{className:"text-left text-xl text-black select-none sm:text-base font-medium mb-0 sm:mb-3",children:"Filter By Category"})}),(0,a.jsx)("div",{className:"",children:(0,a.jsx)(filter,{selectedCategory:s,setSelectedCategory:i,selectedLanguage:r,setSelectedLanguage:d,selectedPrice:u,setSelectedPrice:m})})]})]})]})}),(0,a.jsx)("div",{className:"contactdetails col col-span-1 hidden sm:block",children:(0,a.jsx)(filter,{selectedCategory:s,setSelectedCategory:i,selectedLanguage:r,setSelectedLanguage:d,selectedPrice:u,setSelectedPrice:m})}),(0,a.jsx)("div",{className:"shadow-card col col-span-3",children:(0,a.jsx)("div",{className:"w-full ",children:(()=>{switch(s){case"books":return(0,a.jsx)(BooksListing,{selectedLanguage:r,selectedPrice:u});case"audio":return(0,a.jsx)(AudioListing,{selectedPrice:u});case"film":return(0,a.jsx)(VideoListing,{selectedPrice:u});case"oracle":return(0,a.jsx)(OracleListing,{selectedPrice:u});case"cd":return(0,a.jsx)(CDDVDListing,{selectedPrice:u});default:return null}})()})})]})})]})}}},function(e){e.O(0,[2078,4228,8438,8657,9774,2888,179],function(){return e(e.s=6679)}),_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.