PageSourceSearch

https://www.magrudy.com/_next/static/chunks/pages/product/[productId]-7d6520abf5f49a33.js

js magrudy.com collected 2026-10-02 07:45:41 UTC 21,997 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2780],{7415:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[productId]",function(){return l(14400)}])},76983:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var s=l(85893),a=l(41664),r=l.n(a),n=l(11163),i=l(66542);function o(){let e=(0,n.useRouter)(),[t,l]=(0,i.ZP)(e=>{var t,l,s,a;return[null!==(s=null===(t=e.cart)||void 0===t?void 0:t.length)&&void 0!==s?s:0,null!==(a=null===(l=e.wishlist)||void 0===l?void 0:l.length)&&void 0!==a?a:0]});return(0,s.jsxs)("header",{className:"sticky top-0 z-30 bg-white flex items-center gap-2 px-4 py-3 border-b border-[#EDEDED]",style:{paddingTop:"calc(env(safe-area-inset-top) + 4px)"},children:[(0,s.jsx)("button",{type:"button",onClick:()=>e.back(),"aria-label":"Back",className:"h-9 w-9 rounded-full bg-[#F7F7F7] flex items-center justify-center shrink-0",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",stroke:"#444444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"m15 18-6-6 6-6"})})}),(0,s.jsx)(r(),{href:"/app-home","aria-label":"Home",className:"h-9 w-9 rounded-full bg-[#F7F7F7] flex items-center justify-center shrink-0",children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"#444444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"}),(0,s.jsx)("path",{d:"M9 22V12h6v10"})]})}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsxs)(r(),{href:"/wishlist",className:"relative h-9 w-9 rounded-full bg-[#F7F7F7] flex items-center justify-center shrink-0","aria-label":"Wishlist",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"#444444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})}),l>0&&(0,s.jsx)("span",{className:"absolute -top-1 -right-1 bg-[#11849D] text-white text-[9px] font-semibold rounded-full h-4 w-4 flex items-center justify-center",children:l>9?"9+":l})]}),(0,s.jsxs)(r(),{href:"/cart",className:"relative h-9 w-9 rounded-full bg-[#F7F7F7] flex items-center justify-center shrink-0","aria-label":"Cart",children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"#444444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"}),(0,s.jsx)("path",{d:"M3 6h18"}),(0,s.jsx)("path",{d:"M16 10a4 4 0 0 1-8 0"})]}),t>0&&(0,s.jsx)("span",{className:"absolute -top-1 -right-1 bg-[#11849D] text-white text-[9px] font-semibold rounded-full h-4 w-4 flex items-center justify-center",children:t>9?"9+":t})]})]})}},23494:function(e,t,l){"use strict";l.d(t,{Z:function(){return r}});var s=l(85893);l(67294);var a=l(1073);function r(e){let{review:t}=e;return(0,s.jsxs)("div",{className:"md:ml-10",children:[(0,s.jsxs)("div",{className:"flex mt-5 gap-3",children:[(0,s.jsx)("img",{src:"".concat((null==t?void 0:t.gender)==="male"?"https://ik.imagekit.io/magrudy/Boy.jpg":(null==t?void 0:t.gender)==="female"?"https://ik.imagekit.io/magrudy/Girls.jpg":null==t?void 0:t.uploadImg,"?v=").concat((null==t?void 0:t.imageUpdatedAt)||Date.now()),alt:(null==t?void 0:t.gender)==="male"?"male avatar":(null==t?void 0:t.gender)==="female"?"female avatar":"user avatar",className:"w-16 h-16 object-cover rounded-full"}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("h4",{className:"text-base text-slate-800",children:null==t?void 0:t.userName}),(0,s.jsxs)("p",{className:"text-sm text-slate-600",children:[null==t?void 0:t.date," ",(0,s.jsx)("span",{className:"text-[#0A7728]",children:"Verified Purchase"})]}),(0,s.jsx)("div",{className:"rating space-x-2 mt-1",children:(0,s.jsx)(a.Z,{rate:null==t?void 0:t.rating})},"reviewrate")]})]}),(0,s.jsx)("h4",{className:"md:ml-[90px] text-sm text-slate-800 mb-1",children:null==t?void 0:t.t
1itle}),(0,s.jsx)("p",{className:"text-sm text-slate-600 text-justify mr-5 md:ml-[90px]",children:null==t?void 0:t.description})]})}},76793:function(e,t,l){"use strict";l(85893),l(67294)},14815:function(e,t,l){"use strict";l.d(t,{Z:function(){return c}});var s=l(85893),a=l(67294),r=l(41664),n=l.n(r),i=l(28967),o=l(65694);function c(e){var t,l,r,c,d,m,x,u,h,g,p,v,f;let j=null==e?void 0:e.helpPageInfo,w=(0,i.Z)(),[y,b]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{b(!0)},[]),y)?w?(0,s.jsxs)("div",{className:"px-4 pb-10",style:{paddingTop:"calc(env(safe-area-inset-top) + 16px)"},children:[(0,s.jsxs)(n(),{href:"/app-home",className:"inline-flex items-center gap-1.5 text-[13px] font-semibold text-[#11849D] mb-4",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"m15 18-6-6 6-6"})}),"Home"]}),(0,s.jsx)("p",{className:"text-[16px] font-bold text-[#1A1A1A] text-center",children:(null==j?void 0:j.heading)||"Need Help?"}),(0,s.jsxs)("p",{className:"text-[13px] text-[#787878] text-center leading-relaxed mt-2",children:[null==j?void 0:j.content," ",(0,s.jsx)(n(),{href:"/contact",className:"text-[#11849D] font-semibold",children:"Contact Customer Care"})]}),(0,s.jsx)("p",{className:"text-center text-[13px] font-bold text-[#1A1A1A] mt-6 mb-3 tracking-wide",children:"SHOP BY DEPARTMENT"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3",children:(null!==(h=null==j?void 0:j.image)&&void 0!==h?h:[]).slice(0,4).map((e,t)=>(0,s.jsx)(n(),{href:(0,o.Z)(null==e?void 0:e.navUrl),className:"block rounded-xl overflow-hidden bg-[#F7F7F7]",children:(0,s.jsx)("img",{src:null==e?void 0:e.imgUrl,alt:"",className:"w-full h-auto"})},t))})]}):(0,s.jsxs)("div",{className:"lg:px-[calc((100%-1400px)/2)]",children:[(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("p",{className:"text-[20px] text-[#444444] font-medium mt-10",children:null==j?void 0:j.heading})}),(0,s.jsx)("div",{className:"flex justify-center py-2 lg:mx-[120px]  mx-5 md:text-lg text-[16px] text-justify",children:(0,s.jsxs)("p",{className:"text-[14px] text-[#787878] ",children:[null==j?void 0:j.content,(0,s.jsx)(n(),{href:"/contact",children:(0,s.jsx)("span",{className:"text-[#11849D]",children:" Contact Customer Care"})})]})}),(0,s.jsxs)("div",{className:"lg:mx-[120px] md:mx-[80px] mx-5",children:[(0,s.jsx)("p",{className:"py-2 text-center text-[18px] text-[#444444] font-medium",children:"SHOP BY DEPARTMENT"}),(0,s.jsx)("hr",{className:""})]}),(0,s.jsxs)("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-2 justify-around lg:mx-[120px] xl:mx-[300px] justify-items-center",children:[(0,s.jsx)(n(),{href:null!==(g=null==j?void 0:null===(t=j.image[0])||void 0===t?void 0:t.navUrl)&&void 0!==g?g:"#",children:(0,s.jsx)("img",{src:null==j?void 0:null===(l=j.image[0])||void 0===l?void 0:l.imgUrl,alt:"",className:"md:w-[350px] w-[250px] mb-10 md:mb-0"})}),(0,s.jsx)(n(),{href:null!==(p=null==j?void 0:null===(r=j.image[1])||void 0===r?void 0:r.navUrl)&&void 0!==p?p:"#",children:(0,s.jsx)("img",{src:null==j?void 0:null===(c=j.image[1])||void 0===c?void 0:c.imgUrl,alt:"",className:"md:w-[350px] w-[250px] mt-5 md:mt-0"})}),(0,s.jsx)(n(),{href:null!==(v=null==j?void 0:null===(d=j.image[2])||void 0===d?void 0:d.navUrl)&&void 0!==v?v:"#",children:(0,s.jsx)("img",{src:null==j?void 0:null===(m=j.image[2])||void 0===m?void 0:m.imgUrl,alt:"",className:"md:w-[350px] w-[250px] mt-5"})}),(0,s.jsx)(n(),{href:null!==(f=null==j?void 0:null===(x=j.image[3])||void 0===x?void 0:x.navUrl)&&void 0!==f?f:"#",children:(0,s.jsx)("img",{src:null==j?void 0:null===(u=j.image[3])||void 0===u?void 0:u.imgUrl,alt:"",className:"md:w-[350px] w-[250px] rounded-[20px] mt-5"})})]})]}):null}},14400:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return b},default:function(){return N}});var s=l(85893),a=l(59156),r=l(9008),n=l.n(r),i=l(11163),o=l(67294);l(76793);var c=l(66542),d=l(41664),m=l.n(d),x=l(23494),u=l(28112),h=l(94938),g=l(17616),p=l(14815),v=e=>{let{rating:t,reviewcount:l}=e,a=e=>l&&0!==l?Math.round(t[e]/l*100):0,r=(()=>
1{if(!l||0===l)return 0;let e=0;for(let l=0;l<5;l++)e+=t[l]*(l+1);return(e/l).toFixed(1)})(),n=e=>{let{filled:t=!0,size:l=20}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:t?"#FF9800":"none",stroke:"#FF9800",strokeWidth:"1",children:(0,s.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})};return(0,s.jsxs)("div",{className:"max-w-md mx-auto mt-4",children:[(0,s.jsx)("div",{className:"space-y-3",children:[5,4,3,2,1].map((e,t)=>{let l=a(e-1);return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-2 text-right font-medium text-slate-700",children:e}),(0,s.jsx)(n,{size:18}),(0,s.jsx)("div",{className:"relative flex-1 h-3 bg-gray-200 rounded-full overflow-hidden",children:(0,s.jsx)("div",{className:"absolute top-0 left-0 h-full bg-orange-400 rounded-full transition-all duration-500 ease-out",style:{width:"".concat(l,"%")}})}),(0,s.jsxs)("div",{className:"w-12 text-sm font-medium text-slate-600",children:[l,"%"]})]},e)})}),(0,s.jsxs)("div",{className:"mt-5 flex items-center",children:[(0,s.jsx)(e=>{let{value:t,size:l=20}=e,a=Math.floor(t),r=t-a>=.5;return(0,s.jsx)("div",{className:"flex",children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,s.jsx)(n,{filled:t<a||t===a&&r,size:l},t))})},{value:parseFloat(r)}),(0,s.jsxs)("span",{className:"ml-2 text-sm text-slate-600",children:["Out of 5 (",l," Reviews)"]})]})]})};function f(e){var t,l,a,r;let n=null==e?void 0:e.helpPageInfo,d=null==e?void 0:e.eBookInfo;console.log(d,"ebokk"),(0,o.useRef)(null);let f=(0,o.useRef)(null),[j,w]=(0,o.useState)({isAtStart:!0,isAtEnd:!1}),[y,b]=(0,c.Cw)(e=>[e.isUniform,e.category]);console.log(y,"uniforms",b);let N=()=>{if(f.current){let e=f.current;w({isAtStart:e.scrollLeft<=0,isAtEnd:e.scrollLeft+e.clientWidth>=e.scrollWidth-1})}},k=e=>{if(f.current){let t=f.current,l="back"===e?-t.offsetWidth:t.offsetWidth;t.scrollBy({left:l,behavior:"smooth"}),setTimeout(N,300)}},[F,S]=(0,o.useState)(""),[C,A]=(0,o.useState)({}),[E,I]=(0,o.useState)(""),[Z,B]=(0,o.useState)({}),[D,P]=(0,o.useState)([]),[U,R]=(0,o.useState)(!1),[L,M]=(0,o.useState)({}),[_,T]=(0,o.useState)(!0),O=(0,i.useRouter)(),[W,H]=(0,o.useState)(!1),[V,q,z,G]=(0,c.ZP)(e=>[e.cart,e.wishlist,e.isloggedin,e.userName]),{initiatecart:J,syncSession:X}=(0,c.ZP)();(0,o.useEffect)(()=>{W||(X(),J(),H(!0)),Y(E)},[]);let Y=e=>{fetch("/api/item/review/".concat(e)).then(e=>e.json()).then(e=>{M({reviews:e})}).catch(e=>{console.log(e.message)})};(0,o.useEffect)(()=>{Y(E)},[]);let $=e=>{let t=e.lastIndexOf("--");return -1===t?null:e.substring(t+2)};if((0,o.useEffect)(()=>{let{productId:e}=O.query;if(!e)return;let t=$(e);I(t),e&&(fetch("/api/item/get/".concat(t)).then(e=>e.json()).then(e=>{console.log(e,"product details"),B(e),e&&R(!0)}).catch(e=>{console.log(e.message)}).finally(()=>{T(!1)}),fetch("/api/item/similar/".concat(t,"?limit=8")).then(e=>e.json()).then(e=>{P(e)}).catch(e=>{console.log(e.message)}),Y(t))},[O.query.productId,C]),_)return(0,s.jsx)(g.Z,{});if(!Z||(null==Z?void 0:Z.isbn)==null||(null==Z?void 0:Z.isbn)==void 0)return(0,s.jsx)(p.Z,{helpPageInfo:n});let Q=e=>t=>{A({...C,[e]:t.target.value})},K=async e=>{var t,l;e.preventDefault();let s=null!=C?C:{};if(null==s.rating&&(s.rating=5),0!=(null!==(t=s.title)&&void 0!==t?t:"").trim().length&&(s.title=s.title.trim(),0!=(null!==(l=s.description)&&void 0!==l?l:"").trim().length)){s.description=s.description.trim();try{fetch("/api/review/add-reviews/".concat(E),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s})}).then(e=>e.json()).then(e=>{A({title:"",description:"",ratings:5}),Y(E)})}catch(e){console.error("Error saving form data:",e)}}};return U?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"invisible md:visible ml-5 text-xs sm:text-base lg:text-lg md:ml-0 md:pl-[calc((100%-740px)/2)] md:pr-[calc((100%-768px)/2)] lg:pl-[calc((100%-1200px)/2)] lg:pr-[calc((100%-1200px)/2)] pt-5",children:null==Z.category||0==Z.category.length?(0,s.jsxs)("h1",{className:"!text-[#787878] text-[14px]",children:[" ",(0,s.jsx)("span",{className:"text-[#11849D]",children:Z.title})]}):(0,s.jsxs)("h1",{className:"!text-[#787878] text-[14px] flex",children:[(0,s.jsx)(m(),{href:"/",children:"Home "})," / All Categories",Z.category[0].category1&&(0,s.jsxs)(s.Fragment,{children:["/  ",(0,s.jsxs)(m(),{href:"/product/all?category1=".concat(Z.category[0].category1),children:[" ",Z.category[0].category1," "]})]}),(0,s.jsxs)("p",{className:"hidden md:block",children:[(null==Z?void 0:null===(l=Z.category)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.category1)&&(0,s.jsx)(s.Fragment,{children:Z.category[0].category2&&!y?(0,s.jsxs)(s.Fragment,{children:["/ ",(0,s.jsx)(m(),{href:"/product/all?category1=".concat(Z.category[0].category1,"&category2=").concat(Z.category[0].category2)})]}):Z.category.some(e=>e.category2===b)&&y?(0,s.jsxs)(s.Fragment,{children:["/ ",(0,s.jsx)(m(),{href:"/product/all?category1=".concat(Z.category[0].category1,"&category2=").concat(b),children:b})]}):Z.category.length>=1&&y?(0,s.jsxs)(s.Fragment,{children:["/ ",(0,s.jsx)(m(),{href:"/product/all?category1=".concat(Z.category[0].category1,"&category2=").concat(Z.category[0].category2),children:Z.category[0].category2})]}):null}),Z.category[0].category1&&Z.category[0].category2&&Z.category[0].category3&&(0,s.jsxs)(s.Fragment,{children:[" / ",(0,s.jsxs)(m(),{href:"/product/all?category1=".concat(Z.category[0].category1,"&category2=").concat(Z.category[0].category2,"&category3=").concat(Z.category[0].category3),children:[Z.category[0].category3," "]})," "," "]})," / ",(0,s.jsxs)("span",{className:"text-[#11849D]",children:[" ",Z.title]})]})]})}),(0,s.jsx)(u.Z,{product:Z,isBotm:!1,sideFilters:!1,eBookInfo:d}),D&&D.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"m-5 md:ml-0 text-slate-800 text-base md:pl-[calc((100%-740px)/2)] md:pr-[calc((100%-768px)/2)] lg:pl-[calc((100%-1200px)/2)] lg:pr-[calc((100%-1200px)/2)]",children:"SIMILAR ITEMS"}),(0,s.jsxs)("div",{className:"carousel mx-5 lg:mx-0 max-w-[1220px] md:ml-[calc((100%-740px)/2)] md:mr-[calc((100%-768px)/2)] lg:ml-[calc((100%-1000px)/2)] lg:mr-[calc((100%-1000px)/2)] xl:ml-[calc((100%-1200px)/2)] xl:mr-[calc((100%-1200px)/2)]",children:[(0,s.jsx)("button",{onClick:()=>k("back"),disabled:j.isAtStart,className:j.isAtStart?"opacity-50 cursor-not-allowed hidden lg:block":"hidden lg:block",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"30px",viewBox:"0 -960 960 960",width:"30px",fill:"#11849D",className:"xl:mr-[10px]",children:(0,s.jsx)("path",{d:"M400-80 0-480l400-400 71 71-329 329 329 329-71 71Z"})})}),(0,s.jsx)("div",{className:"carousel max-w-[1220px]",ref:f,onScroll:N,children:D.map((e,t)=>(0,s.jsx)(h.Z,{item:e},t))}),(0,s.jsx)("button",{onClick:()=>k("forward"),disabled:j.isAtEnd,className:j.isAtEnd?"opacity-50 cursor-not-allowed hidden lg:block":" hidden lg:block",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"30px",viewBox:"0 -960 960 960",width:"30px",fill:"#11849D",className:"xl:ml-[10px]",children:(0,s.jsx)("path",{d:"m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"})})})]})]}),(0,s.jsxs)("div",{className:"block ml-5 md:flex md:ml-0 md:pl-[calc((100%-740px)/2)] md:pr-[calc((100%-768px)/2)] lg:pl-[calc((100%-1200px)/2)] lg:pr-[calc((100%-1200px)/2)]",children:[(0,s.jsxs)("div",{className:"block mt-10",children:[(0,s.jsx)("h1",{className:"text-slate-800 text-base",children:"Customer Review"}),(0,s.jsx)(v,{rating:null==Z?void 0:Z.rating,reviewcount:null==Z?void 0:Z.reviewcount}),z&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:"text-slate-800 text-base mt-5",children:"Create Review"}),(0,s.jsx)("div",{className:"block",children:(0,s.jsxs)("form",{onSubmit:K,className:"mr-5",children:[(0,s.jsx)("h4",{className:"text-sm text-slate-600 mt-1",children:"Overall Rating"}),(0,s.jsxs)("div",{className:"rating w-36 space-x-2 mt-1",children:[(0,s.jsx)("input",{type:"radio",name:"rating-1",className:"mask mask-star bg-orange-400 w-
15",value:1,onChange:Q("rating")}),(0,s.jsx)("input",{type:"radio",name:"rating-1",className:"mask mask-star bg-orange-400 w-5",value:2,onChange:Q("rating")}),(0,s.jsx)("input",{type:"radio",name:"rating-1",className:"mask mask-star bg-orange-400 w-5",value:3,onChange:Q("rating")}),(0,s.jsx)("input",{type:"radio",name:"rating-1",className:"mask mask-star bg-orange-400 w-5",value:4,onChange:Q("rating")}),(0,s.jsx)("input",{type:"radio",name:"rating-1",className:"mask mask-star bg-orange-400 w-5",value:5,onChange:Q("rating")})]}),(0,s.jsx)("br",{}),(0,s.jsx)("label",{htmlFor:"",className:"text-sm text-[#787878]",children:"Title"}),(0,s.jsx)("br",{}),(0,s.jsx)("input",{type:"text",placeholder:"Enter Headline here ",className:"placeholder:text-[#787878] w-full h-10 md:w-[230px] text-xs indent-3 rounded-md border border-[#11849D]",value:null==C?void 0:C.title,onChange:Q("title")})," ",(0,s.jsx)("br",{}),!1,(0,s.jsx)("label",{htmlFor:"",className:"text-[#787878] text-sm",children:"Write a Review"})," ",(0,s.jsx)("br",{}),(0,s.jsx)("textarea",{type:"text",placeholder:"What did you like or dislike?",className:"placeholder:text-[#787878] w-full h-32 md:w-[230px] pt-2 text-xs indent-3 rounded-md border border-[#11849D]",value:null==C?void 0:C.description,onChange:Q("description")}),(0,s.jsx)("br",{}),(0,s.jsx)("button",{onSubmit:K,type:"submit",className:"w-full h-10 md:w-[230px] text-sm text-white bg-[#11849D] rounded-md mt-5",children:"Submit Review"})]})})]})]}),(0,s.jsxs)("div",{className:" md:ml-10 mt-10 w-full",children:[(0,s.jsx)("h1",{className:"text-slate-800 text-base",children:"REVIEWS"}),(null==L?void 0:null===(a=L.reviews)||void 0===a?void 0:a.length)>0?null==L?void 0:null===(r=L.reviews)||void 0===r?void 0:r.map(e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Z,{review:e}),(0,s.jsx)("hr",{className:"hidden md:block border-slate-600 ml-6 mt-4"})]})):(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center mt-20",children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-message-square-heart-icon lucide-message-square-heart",children:[(0,s.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}),(0,s.jsx)("path",{d:"M14.8 7.5a1.84 1.84 0 0 0-2.6 0l-.2.3-.3-.3a1.84 1.84 0 1 0-2.4 2.8L12 13l2.7-2.7c.9-.9.8-2.1.1-2.8"})]}),(0,s.jsx)("p",{className:"mt-2 text-[14px] text-[#444444]",children:"No reviews yet. Be the first to share your thoughts!"})]})]})]})]}):(0,s.jsx)(p.Z,{helpPageInfo:n})}var j=l(28967),w=l(76983);function y(e,t){let l=String(e||"").replace(/<[^>]*>/g," ").replace(/&nbsp;/gi," ").replace(/\s+/g," ").trim();return l.length<=t?l:l.substring(0,t-1).trim()+"…"}var b=!0;function N(e){let t=(0,i.useRouter)(),l=(0,j.Z)(),r=(null==e?void 0:e.product)||null,o=null,c=null,d=null,m=null;if(r&&r.title){let e=r.author?" by ".concat(r.author):"";o="".concat(r.title).concat(e," | Buy Online in UAE | Magrudy's"),c=y(r.description,158)||"Buy ".concat(r.title).concat(e," online at Magrudy's UAE. Free and same day shipping on orders above AED 150."),d="https://www.magrudy.com"+function(e,t){let l=encodeURIComponent(String(e||"").replace(/ /g,"-").replace(/\//g,"-"));return"/product/".concat(l,"--").concat(t)}(r.title,r.isbn),m=function(e,t){var l,s;let a=String(e.isbn||""),r={"@context":"https://schema.org","@type":"Product",name:e.title||"",image:e.imgUrl?[e.imgUrl]:void 0,description:y(e.description,500)||void 0,sku:a||void 0,brand:e.brand||e.publisher?{"@type":"Brand",name:e.brand||e.publisher}:void 0,offers:{"@type":"Offer",url:t,priceCurrency:"AED",price:e.unitPriceInclVAT||e.unitPrice||"0.00",itemCondition:"https://schema.org/NewCondition",availability:Number(null!==(s=null!==(l=e.availableQty)&&void 0!==l?l:e.inventory)&&void 0!==s?s:1)>0?"https://schema.org/InStock":"https://schema.org/OutOfStock"}};/^\d{13}$/.test(a)&&(r.gtin13=a),e.author&&(r.author={"@type":"Person",name:e.author});let n=Number(e.reviewcount||0),i=Number(e.totalrating||0);return n>0&&i>0&&Number.isFinite(i)&&(r.aggregateRating={"@type":"AggregateRating",ratingValue:i.toFixed(1),reviewCount:n}),r}(r,d)}return t.isFallback?(0,s.jsx)("div",{children:"Loading..."}):(0,s.jsxs)(a.Z,{layoutInfo:e.layoutInfo,pageTitle:o,pageDescription:c,hasOwnAppHeader:l,children:[r&&r.title?(0,s.jsxs)(n(),{children:[(0,s.jsx)("link",{rel:"canonical",href:d}),(0,s.jsx)("meta",{property:"og:type",content:"product"}),(0,s.jsx)("meta",{property:"og:title",content:o}),(0,s.jsx)("meta",{property:"og:description",content:c}),(0,s.jsx)("meta",{property:"og:url",content:d}),r.imgUrl?(0,s.jsx)("meta",{property:"og:image",content:r.imgUrl}):null,(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m)}})]}):null,l&&(0,s.jsx)(w.Z,{}),(0,s.jsx)(f,{helpPageInfo:e.helpPageInfo,eBookInfo:e.ebookImageInfo})]})}},65694:function(e,t,l){"use strict";function s(e){if(!e||"string"!=typeof e)return"#";if(e.startsWith("/"))return e;try{let t=new URL(e);if(/(^|\.)magrudy\.com$/i.test(t.hostname))return t.pathname+t.search+t.hash;return e}catch(t){return e}}l.d(t,{Z:function(){return s}})}},function(e){e.O(0,[3662,3996,8764,8547,9806,6542,9156,4938,6024,2888,9774,179],function(){return e(e.s=7415)}),_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.