(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2915],{26601:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var i=r(87462),n=r(67294),o=r(71068),l=r(75260),s=r(70444),a=r(48137),c=r(27278),d=o.Z,u=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:u},m=function(e,t,r){var i;if(t){var n=t.shouldForwardProp;i=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!==typeof i&&r&&(i=e.__emotion_forwardProp),i},h=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return(0,s.hC)(t,r,i),(0,c.L)((function(){return(0,s.My)(t,r,i)})),null},f=function e(t,r){var o,c,d=t.__emotion_real===t,u=d&&t.__emotion_base||t;void 0!==r&&(o=r.label,c=r.target);var f=m(t,r,d),v=f||p(u),x=!v("as");return function(){var g=arguments,b=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==g[0]||void 0===g[0].raw)b.push.apply(b,g);else{0,b.push(g[0][0]);for(var j=g.length,y=1;y<j;y++)b.push(g[y],g[0][y])}var _=(0,l.w)((function(e,t,r){var i=x&&e.as||u,o="",d=[],m=e;if(null==e.theme){for(var g in m={},e)m[g]=e[g];m.theme=n.useContext(l.T)}"string"===typeof e.className?o=(0,s.fp)(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var j=(0,a.O)(b.concat(d),t.registered,m);o+=t.key+"-"+j.name,void 0!==c&&(o+=" "+c);var y=x&&void 0===f?p(i):v,_={};for(var w in e)x&&"as"===w||y(w)&&(_[w]=e[w]);return _.className=o,_.ref=r,n.createElement(n.Fragment,null,n.createElement(h,{cache:t,serialized:j,isStringTag:"string"===typeof i}),n.createElement(i,_))}));return _.displayName=void 0!==o?o:"Styled("+("string"===typeof u?u:u.displayName||u.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=u,_.__emotion_styles=b,_.__emotion_forwardProp=f,Object.defineProperty(_,"toString",{value:function(){return"."+c}}),_.withComponent=function(t,n){return e(t,(0,i.Z)({},r,n,{shouldForwardProp:m(_,n,!0)})).apply(void 0,b)},_}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){f[e]=f(e)}))},80496:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var i=r(50066),n=r(16678),o=i.ZP.div.withConfig({displayName:"Chip",componentId:"sc-1ovzis5-0"})(["display:inline-flex;border-radius:3px;cursor:",";box-shadow:",";transition:all 150ms ease-in-out;"," "," ",""],(function(e){return e.cursor||"unset"}),(function(e){return e.boxShadow||"unset"}),n.Dh,n.$_,n.cp)},70763:function(e,t,r){"use strict";r.d(t,{Z:function(){return j}});var i=r(59499),n=r(86010),o=r(28777),l=(r(32341),r(67294)),s=r(25828),a=r(13764),c=r(4730),d=r(42586),u=r(50066),p=r(85893),m=["spacing","showDots","showArrowOnHover","dotGroupMarginTop","dotColor"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}var f=(0,u.ZP)((function(e){e.spacing,e.showDots,e.showArrowOnHover,e.dotGroupMarginTop,e.dotColor;var t=(0,c.Z)(e,m);return(0,p.jsx)(o.sj,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t))})).withConfig({displayName:"CarouselStyle__StyledCarousel",componentId:"sc-12v6uf1-0"})(["position:relative;min-width:0px;.custom-slider{margin-left:calc(-1 * "," / 2);margin-right:calc(-1 * "," / 2);}.carousel__inner-slide{margin:auto;width:calc(100% - ",");}.arrow-button{position:absolute;top:calc( 50% - "," );transform:translateY(-50%);box-shadow:0px 10px 30px rgba(0,0,0,0.1);}.right-arrow-class{right:-22px;}.left-arrow-class{left:-22px;}"," @media only screen and (max-width:1330px){.right-arrow-class{right:0px;}.left-arrow-class{left:0px;}}.custom-dot{display:flex;margin-left:85%;margin-top:-4%;}.dot{position:relative;height:8px;width:20px;border-radius:20px;margin:0.25rem;margin-bottom:30px;background-color:",';cursor:pointer;}.dot:after{position:absolute;content:" ";height:8px;width:20px;top:50%;left:50%;border-radius:20px;transform:translate(-50%,-50%) scaleX(0);background:#deb328;}.dot-active:after{transform:translate(-50%,-50%) scaleX(1);}@media only screen and (max-width:1330px){.custom-dot{margin-left:80%;margin-bottom:20px;margin-top:-5%;}.dot{margin:0.25rem;margin-bottom:30px;width:30px;}.dot:after{height:8px;width:30px;}}@media only screen and (max-width:800px){.custom-dot{margin-left:75%;margin-top:-8%;margin-bottom:20px;}.dot{margin:0.25rem;margin-bottom:30px;width:30px;}.dot:after{height:8px;width:20px;}}@media only screen and (max-width:400px){.custom-dot{margin-top:-14%;}}'],(function(e){return e.spacing||"0px"}),(function(e){return e.spacing||"0px"}),(function(e){return e.spacing||"0px"}),(function(e){return e.showDots?e.dotGroupMarginTop:"0px"}),(function(e){return e.showArrowOnHover?'\n  [class*="arrow-class"] {\n    display: none;\n  }\n\n  :hover {\n    [class*="arrow-class"] {\n      display: unset;\n    }\n  }\n\n  @media only screen and (max-width: '.concat(d.J.sm,'px) {\n    [class*="arrow-class"] {\n      display: block;\n    }\n  }\n  '):""}),(function(e){return e.dotColor||"#e0e0e0"}));function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(e){var t=e.children,r=e.naturalSlideWidth,i=e.naturalSlideHeight,n=e.totalSlides,c=e.visibleSlides,d=e.currentSlide,u=e.isIntrinsicHeight,m=e.hasMasterSpinner,h=e.infinite,v=e.autoPlay,g=e.step,j=e.interval,y=e.showDots,_=e.showArrow,w=e.showArrowOnHover,C=e.dotClass,Z=e.dotColor,O=e.dotGroupMarginTop,P=e.spacing,S=e.arrowButtonClass,k=e.arrowButtonColor,F=e.leftButtonClass,N=e.rightButtonClass,H=e.leftButtonStyle,E=e.rightButtonStyle;return(0,p.jsxs)(f,{naturalSlideWidth:r,naturalSlideHeight:i,totalSlides:n,visibleSlides:c,isIntrinsicHeight:u,hasMasterSpinner:m,infinite:h,isPlaying:v,step:g,interval:j,dotColor:Z,dotGroupMarginTop:O,spacing:P,showDots:y,currentSlide:d,showArrowOnHover:w,children:[(0,p.jsx)(o.iR,{className:"custom-slider",children:l.Children.map(t,(function(e,t){return(0,p.jsx)(o.Mi,{index:t,children:e},t)}))}),y&&(0,p.jsx)(o.I5,{className:"custom-dot ".concat(C),renderDots:function(e){return b(x(x({},e),{},{step:g}))}}),_&&(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)(s.Z,{className:"arrow-button left-arrow-class ".concat(S," ").concat(F),as:o.jp,color:k,style:H||{},children:(0,p.jsx)(a.Z,{variant:"small",defaultcolor:"currentColor",children:"arrow-left"})}),(0,p.jsx)(s.Z,{className:"arrow-button right-arrow-class ".concat(S," ").concat(N),as:o.P1,color:k,style:E||{},children:(0,p.jsx)(a.Z,{variant:"small",defaultcolor:"currentColor",children:"arrow-right"})})]})]})},b=function(e){for(var t=e.step,r=e.currentSlide,i=e.visibleSlides,o=e.totalSlides,l=e.carouselStore,s=[],a=o-i+1,c=function(e){s.push((0,p.jsx)("div",{className:(0,n.Z)({dot:!0,"dot-active":r===e}),onClick:function(){return l.setStoreState({currentSlide:e,autoPlay:!1})}},e)),a-e-1<t&&a-e-1!==0&&s.push((0,p.jsx)("div",{className:(0,n.Z)({dot:!0,"dot-active":r===o-i}),onClick:function(){return l.setStoreState({currentSlide:o-i,autoPlay:!1})}},e+a))},d=0;d<a;d+=t)c(d);return s};g.defaultProps={naturalSlideWidth:100,naturalSlideHeight:125,totalSlides:10,visibleSlides:5,isIntrinsicHeight:!0,hasMasterSpinner:!1,infinite:!1,autoPlay:!1,step:1,interval:2e3,showDots:!1,showArrow:!0,dotGroupMarginTop:"2rem",spacing:"1.5rem",arrowButtonColor:"secondary"};var j=g},69609:function(e,t,r){"use strict";r(67294);var i=r(52824),n=r(42582),o=r(21104),l=r(85893);t.Z=function(e){var t=e.children;return(0,l.jsx)(o.Z,{navbar:(0,l.jsx)(n.Z,{}),children:(0,l.jsx)(i.Z,{my:"2rem",children:t})})}},22603:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var i=r(67294),n=r(73935),o=r(62619),l=(0,r(50066).ZP)(o.Z).withConfig({displayName:"ModalStyle__StyledModal",componentId:"sc-12d1ctx-0"})(["position:fixed;top:0;left:0;right:0;bottom:0;height:100%;background:rgba(0,0,0,0.4);z-index:999;.container{position:relative;width:100%;top:50%;transform:translateY(-50%);overflow:auto;background:transparent;}"]),s=r(85893),a=function(e){var t=e.children,r=e.open,a=e.onClose;if(globalThis.document&&r){var c=document.querySelector("#modal-root");return c||((c=document.createElement("div")).setAttribute("id","modal-root"),document.body.appendChild(c)),(0,n.createPortal)((0,s.jsx)(l,{flexDirection:"column",alignItems:"center",onClick:function(){a&&a()},children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)(o.Z,{justifyContent:"center",m:"0.5rem",children:(0,i.cloneElement)(t,{onClick:function(e){e.stopPropagation()}})})})}),c)}return null};a.defaultProps={open:!1};var c=a},9659:function(e,t,r){"use strict";var i=r(41664),n=r.n(i),o=r(25675),l=r.n(o),s=r(50066),a=r(52365),c=r(13764),d=r(62619),u=r(67294),p=r(54710),m=r(10149),h=r(11163),f=r(9473),v=r(55678),x=r(86464),g=(r(69078),r(85893)),b=(0,s.ZP)(a.Z).withConfig({displayName:"ProductCard19__CardMainContainer",componentId:"sc-gsadn4-0"})({backgroundColor:"white",borderRadius:"5px",boxShadow:"rgba(3, 0, 71, 0.09) 0px 1px 3px",padding:"4px 0px 15px 0px",transition:"all 250ms ease-in-out 0s",cursor:"pointer",":hover":{boxShadow:"rgba(3, 0, 71, 0.09) 0px 8px 45px"}}),j=(0,s.ZP)(a.Z).withConfig({displayName:"ProductCard19__CardBox",componentId:"sc-gsadn4-1"})({borderRadius:"3px",backgroundColor:"white",padding:"0px 18px",":hover":{"& img":{transform:"scale(1.1)"}}}),y=(0,s.ZP)(a.Z).withConfig({displayName:"ProductCard19__CardMedia",componentId:"sc-gsadn4-2"})({width:"100%",maxHeight:300,cursor:"pointer",overflow:"hidden",position:"relative","& img":{transition:"0.3s"}}),_=(0,s.ZP)(p.h).withConfig({displayName:"ProductCard19__AddToCartButton",componentId:"sc-gsadn4-3"})({top:10,right:-40,position:"absolute",transition:"right 0.3s .1s",background:"transparent"}),w=(0,s.ZP)(p.h).withConfig({displayName:"ProductCard19__FavouriteButton",componentId:"sc-gsadn4-4"})({top:45,right:-40,position:"absolute",background:"transparent",transition:"right 0.3s .2s"});t.Z=function(e){var t,r,i,o=e.discount_amount,s=e.thumbnail,p=e.title,C=e.price,Z=e.offer_discount_price,O=e.offer_discount_price_type,P=(e.id,e.slug),S=e,k=(0,u.useState)(!1),F=k[0],N=k[1],H=(0,u.useState)(!1),E=(H[0],H[1]),A=((0,u.useCallback)((function(){E((function(e){return!e}))}),[]),(0,f.I0)()),D=Z&&"percentage"===O||Z&&"%"===O?(C-C*Z/100).toFixed(2):Z&&"flat"===O?C-Z:null===(t=S.price)||void 0===t?void 0:t.toFixed(2),I=(Number(D)-Number(o))/Number(D)*100,z=function(e){A((0,x.Mp)({name:(null===S||void 0===S?void 0:S.title)&&(null===S||void 0===S?void 0:S.title),qty:e&&e,price:(null===S||void 0===S?void 0:S.price)&&(null===S||void 0===S?void 0:S.price),imgUrl:(null===S||void 0===S?void 0:S.thumbnail)&&(null===S||void 0===S?void 0:S.thumbnail),availibility_upcoming_status:(null===S||void 0===S?void 0:S.availibility_upcoming_status)&&(null===S||void 0===S?void 0:S.availibility_upcoming_status),id:(null===S||void 0===S?void 0:S.id)&&(null===S||void 0===S?void 0:S.id),slug:(null===S||void 0===S?void 0:S.slug)&&(null===S||void 0===S?void 0:S.slug),total_quantity:(null===S||void 0===S?void 0:S.total_quantity)&&(null===S||void 0===S?void 0:S.total_quantity),discount_type:null!==S&&void 0!==S&&S.offer_discount_price_type?null===S||void 0===S?void 0:S.offer_discount_price_type:null,discount_amount:null!==S&&void 0!==S&&S.offer_discount_price?null===S||void 0===S?void 0:S.offer_discount_price:null,is_new:null!==S&&void 0!==S&&S.is_new?null===S||void 0===S?void 0:S.is_new:null})),(0,v.Am)("Added to wishlist",{position:"top-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})},B=(0,h.useRouter)();return(0,g.jsx)(u.Fragment,{children:(0,g.jsxs)(b,{height:"100%",shadow:5,style:{cursor:"pointer"},onClick:function(){return B.push("/product/".concat(P))},className:"card-hover",children:[(0,g.jsxs)(d.Z,{justifyContent:"space-between",alignItems:"center",children:[o?(0,g.jsx)("div",{style:{padding:"4px 12px",background:"#F73F00",borderRadius:"0px 28.363px 28.363px 0px"},children:(0,g.jsx)("span",{style:{color:"white",fontSize:10,fontWeight:"7000"},children:o?I+"% OFF":""})}):(0,g.jsx)("div",{style:{padding:"4px 12px"}}),(0,g.jsxs)(d.Z,{alignItems:"center",children:[(0,g.jsxs)("svg",{style:{cursor:"pointer"},onClick:function(){z(Number(D))},xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:[(0,g.jsx)("circle",{cx:"13.0844",cy:"12.9752",r:"12.7632",fill:"#F1F2F2"}),(0,g.jsx)("path",{d:"M17.2816 6.83C15.8885 6.83 14.6673 7.45118 13.7499 8.62642C13.6276 8.78316 13.5185 8.93997 13.4219 9.09184C13.3252 8.93994 13.2162 8.78316 13.0938 8.62642C12.1765 7.45118 10.9553 6.83 9.5622 6.83C6.93056 6.83 5.04834 9.03352 5.04834 11.6776C5.04834 14.701 7.52629 17.5505 13.0829 20.9167C13.1871 20.9798 13.3045 21.0113 13.4219 21.0113C13.5393 21.0113 13.6567 20.9798 13.7608 20.9167C19.3175 17.5505 21.7954 14.7011 21.7954 11.6777C21.7954 9.03493 19.9148 6.83 17.2816 6.83ZM18.7586 15.4423C17.6018 16.7331 15.8536 18.0922 13.4219 19.5906C10.9901 18.0922 9.24198 16.7331 8.08516 15.4423C6.92208 14.1446 6.35671 12.9131 6.35671 11.6777C6.35671 9.77386 7.64329 8.13837 9.5622 8.13837C10.5394 8.13837 11.3727 8.56326 12.0388 9.40127C12.5714 10.0714 12.7958 10.7635 12.7974 10.7684C12.8826 11.0417 13.1356 11.2278 13.4219 11.2278C13.7082 11.2278 13.9612 11.0417 14.0464 10.7684C14.0485 10.7618 14.2662 10.0914 14.7813 9.43143C15.451 8.5734 16.2922 8.13834 17.2816 8.13834C19.2025 8.13834 20.4871 9.7754 20.4871 11.6776C20.4871 12.9131 19.9217 14.1445 18.7586 15.4423Z",fill:"black"})]}),(0,g.jsxs)("svg",{onClick:function(){A((0,x.a$)(S&&(null===S||void 0===S?void 0:S.id))),(0,v.Am)("Added to compare",{position:"top-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})},style:{marginLeft:10,marginRight:18,cursor:"pointer"},xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:[(0,g.jsx)("circle",{cx:"13.0104",cy:"12.9752",r:"12.7632",fill:"#F1F2F2"}),(0,g.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.0229 7.06076C16.7152 7.36843 16.7152 7.86727 17.0229 8.17495L18.0415 9.19355H13.6407C11.9003 9.19355 10.4893 10.6045 10.4893 12.345V13.1328C10.4893 13.5679 10.842 13.9207 11.2771 13.9207C11.7123 13.9207 12.065 13.5679 12.065 13.1328V12.345C12.065 11.4747 12.7704 10.7693 13.6407 10.7693H18.0415L17.0229 11.7879C16.7152 12.0955 16.7152 12.5944 17.0229 12.902C17.3305 13.2097 17.8294 13.2097 18.137 12.902L20.5006 10.5385C20.8082 10.2308 20.8082 9.73199 20.5006 9.42431L18.137 7.06076C17.8294 6.75308 17.3305 6.75308 17.0229 7.06076ZM14.4285 12.345C13.9934 12.345 13.6407 12.6977 13.6407 13.1328V13.9207C13.6407 14.7909 12.9353 15.4964 12.065 15.4964H7.66422L8.68284 14.4777C8.99051 14.1701 8.99051 13.6712 8.68284 13.3636C8.37516 13.0559 7.87632 13.0559 7.56864 13.3636L5.20509 15.7271C4.89742 16.0348 4.89742 16.5336 5.20509 16.8413L7.56864 19.2049C7.87632 19.5125 8.37516 19.5125 8.68284 19.2049C8.99051 18.8972 8.99051 18.3983 8.68284 18.0907L7.66422 17.0721H12.065C13.8054 17.0721 15.2164 15.6611 15.2164 13.9207V13.1328C15.2164 12.6977 14.8637 12.345 14.4285 12.345Z",fill:"black"})]})]})]}),(0,g.jsx)(j,{mt:"5px",mb:"6px",children:(0,g.jsxs)(y,{children:[(0,g.jsx)(n(),{href:"/product/".concat(P),children:(0,g.jsx)(l(),{src:s,width:300,height:300,alt:"category",objectFit:"cover",layout:"responsive",className:"product-img"})}),(0,g.jsx)(_,{className:"product-actions",children:(0,g.jsx)(c.Z,{size:"18px",children:"eye"})}),(0,g.jsx)(w,{style:{cursor:"pointer"},className:"product-actions",onClick:function(){N((function(e){return!e})),z(Number(D))},children:F?(0,g.jsx)(c.Z,{size:"18px",children:"heart-filled"}):(0,g.jsx)(c.Z,{size:"18px",children:"heart"})})]})}),(0,g.jsx)("div",{style:{height:"3px",backgroundColor:"#F6F6FF"}}),(0,g.jsx)(j,{children:(0,g.jsxs)(a.Z,{p:2,className:"p-title",children:[(0,g.jsx)(m.nv,{height:"45px",fontSize:12,overflow:"hidden",color:"black",textAlign:"left",fontWeight:"600",lineHeight:"normal",children:p}),(0,g.jsxs)(d.Z,{justifyContent:"space-between",alignItems:"center",mb:"1rem",mt:"15px",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)(m.H4,{fontWeight:500,children:["AED ",(0,g.jsx)("span",{style:{fontWeight:"bold"},children:D})]}),D===(null===(r=S.price)||void 0===r?void 0:r.toFixed(2))?null:(0,g.jsxs)(m.H3,{style:{color:"#B7B7B7",fontSize:11.35,fontWeight:"700",textDecoration:"line-through",wordWrap:"break-word"},children:["AED ",null===(i=S.price)||void 0===i?void 0:i.toFixed(2)]})]}),S.is_new?(0,g.jsx)("button",{style:{backgroundColor:"#1E99F8",color:"#FFFFFF",borderRadius:"5px",padding:"6px 10px",fontSize:"9px",fontWeight:"600",outline:"none",border:"none"},children:"New"}):null]})]})})]})})}},51630:function(e,t,r){"use strict";var i=r(59499),n=r(4730),o=r(67294),l=r(50066),s=r(16678),a=r(85893),c=["id","label","labelPlacement","labelColor"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=l.ZP.input.withConfig({displayName:"Radio__SyledRadio",componentId:"sc-1hyu7q-0"})((function(e){return(0,l.iv)({outline:"none",cursor:"pointer",margin:0,width:20,height:20,borderRadius:20,border:"2px solid",borderColor:"text.hint",position:"relative","&:checked":{borderColor:"".concat(e.color,".main")},"&:after":{width:"calc(100% - 6px)",height:"calc(100% - 6px)",top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)",borderRadius:"50%",position:"absolute",bg:"transparent",content:'" "',visibility:"visible",transition:"all 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},"&:checked:after":{bg:"".concat(e.color,".main")},"&:disabled":{borderColor:"text.disabled"},"&:checked:disabled:after":{bg:"text.disabled"}})}),(0,s.qC)(s.$_)),m=l.ZP.div.withConfig({displayName:"Radio__Wrapper",componentId:"sc-1hyu7q-1"})(["display:flex;align-items:center;flex-direction:",";input{",";}label{cursor:pointer;}input[disabled] + label{color:text.disabled;cursor:unset;}"," ",""],(function(e){return"end"!==e.labelPlacement?"row":"row-reverse"}),(function(e){return"end"!==e.labelPlacement?"margin-right: 0.5rem":"margin-left: 0.5rem"}),s.$_,s.Dh),h=function(e){var t=e.id,r=e.label,i=e.labelPlacement,l=e.labelColor,s=(0,n.Z)(e,c),d=(0,o.useState)(t),h=d[0],f=d[1],v={};for(var x in s)(x.startsWith("m")||x.startsWith("p"))&&(v[x]=s[x]);return(0,o.useEffect)((function(){f(t||Math.random())}),[]),(0,a.jsxs)(m,u(u({labelPlacement:i,color:"".concat(l,".main")},v),{},{children:[(0,a.jsx)(p,u({id:h,type:"radio"},s)),(0,a.jsx)("label",{htmlFor:h,children:r})]}))};h.defaultProps={color:"secondary"},t.Z=h},12734:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return _e},default:function(){return we}});var i,n=r(59499),o=r(52365),l=r(62619),s=r(69609),a=r(36864),c=r(67294),d=r(10149),u=r(85893),p=function(e){var t=(0,a.Z)({},e);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(o.Z,{children:[(null===t||void 0===t?void 0:t.full_description)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.H3,{mb:"1rem",children:"Description:"}),(0,u.jsx)(d.ZP,{mb:"1rem",className:"description-section",children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===t||void 0===t?void 0:t.full_description)&&(null===t||void 0===t?void 0:t.full_description.trim())}})})]}),(null===t||void 0===t?void 0:t.video_link)&&(0,u.jsx)("iframe",{src:t.video_link,width:"100%",height:"500",allow:"autoplay; encrypted-media",title:"video"})]})})},m=r(9390),h=r(69078),f=r(41664),v=r.n(f),x=r(11163),g=r(96243),b=r(6337),j=r(57564),y=r(13764),_=r(24118),w=r(25420),C=r(80496),Z=r(51630),O=r(22603),P=function(e){var t=e.handle,r=e.children,i=(0,c.useState)(!1),n=i[0],o=i[1],l=function(){o(!n)};return(0,u.jsxs)(c.Fragment,{children:[(0,c.cloneElement)(t,{onClick:l}),(0,u.jsx)(O.Z,{open:n,onClose:l,children:r})]})},S=r(71383),k=r(67781),F=r(70763),N=r(51824),H=r(26601),E=function(e){e.id;var t=e.imgUrl,r=e.title;return(0,u.jsx)("div",{children:(0,u.jsx)("div",{className:"image-holder",children:(0,u.jsx)("a",{children:(0,u.jsx)(D,{style:{objectFit:"contain"},className:"style",src:t,alt:r,width:"100%"})})})})};E.defaultProps={id:"324321",imgUrl:"/assets/images/products/macbook.png"};var A,D=H.Z.img(i||(i=(0,S.Z)(["\n height:450px;\n\n @media screen and (max-width: 750px) {\n    height:250px;\n\n\n"]))),I=E,z=H.Z.div(A||(A=(0,S.Z)(["\n  width: 700px;\n  @media screen and (max-width: 750px) {\n    width: 300px;\n  }\n"]))),B=function(e){var t=(0,a.Z)({},e),r=(0,c.useState)(4),i=r[0],n=r[1],o=(0,k.Z)();return(0,c.useEffect)((function(){n(o<500?2:1)}),[o]),(0,u.jsx)("div",{children:(0,u.jsx)("div",{children:(0,u.jsx)(z,{children:(0,u.jsx)(F.Z,{totalSlides:t.product_images.length,visibleSlides:i,children:t.product_images.map((function(e){return(0,u.jsxs)(N.Z,{children:[(0,u.jsx)(N.Z,{padding:"10%",width:"100%",children:(0,u.jsx)(I,{imgUrl:e.file})}),(0,u.jsx)(l.Z,{justifyContent:" ",children:(0,u.jsx)(d.nv,{padding:"15px",width:"100%",color:"#ffff",bg:"#012147",children:t.title})})]})}))})})})})},R=r(50066),T=r(9473),q=r(55678),M=r(86464),W=r(15515);function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U=R.ZP.button.withConfig({displayName:"ProductIntro__CustomButton",componentId:"sc-1blfnfb-0"})(["border-radius:05px;background-color:",";color:",";margin:0.5rem;cursor:pointer;border:none;padding-left:15px;padding-right:15px;"],(function(e){return e.theme.colors.customColors.green}),(function(e){return e.theme.colors.secondary.text})),V=R.ZP.button.withConfig({displayName:"ProductIntro__OfferButton",componentId:"sc-1blfnfb-1"})(["border-radius:05px;background-color:",";color:",";margin:0.5rem;cursor:pointer;border:none;padding-left:15px;padding-right:15px;"],(function(e){return e.theme.colors.customColors.lightGreen}),(function(e){return e.theme.colors.secondary.dark})),X=R.ZP.span.withConfig({displayName:"ProductIntro__Customspan",componentId:"sc-1blfnfb-2"})(["font-weight:bold;font-size:16px"]),Y=function(e){var t,r,i,n,s,p,f,O,S,k,F,N=(0,a.Z)({},e),H=(0,c.useState)(0),E=H[0],A=H[1],D=(0,c.useState)(null),I=D[0],z=D[1],R=(0,c.useState)(0),L=R[0],Y=R[1],K=(0,c.useState)(""),$=K[0],J=K[1],Q=(0,x.useRouter)(),ee=null!==N&&void 0!==N&&N.offer_discount_price&&"percentage"===(null===N||void 0===N?void 0:N.offer_discount_price_type)||null!==N&&void 0!==N&&N.offer_discount_price&&"PERCENTAGE"===(null===N||void 0===N?void 0:N.offer_discount_price_type)||null!==N&&void 0!==N&&N.offer_discount_price&&"%"===(null===N||void 0===N?void 0:N.offer_discount_price_type)?(N.price-N.price*N.offer_discount_price/100).toFixed(2):null!==N&&void 0!==N&&N.offer_discount_price&&"flat"===(null===N||void 0===N?void 0:N.offer_discount_price_type)?(null===N||void 0===N?void 0:N.price)-(null===N||void 0===N?void 0:N.offer_discount_price):null===(t=N.price)||void 0===t?void 0:t.toFixed(2),te=Q.query.id,re=0!==L&&"PERCENTAGE"===$?Number(ee)+Number(ee)/100*L:0!==L&&"FLAT"===$?L*Number(ee):Number(ee),ie=(0,c.useState)(1),ne=ie[0],oe=ie[1],le=function(e){return function(){A(e)}},se=(0,T.I0)(),ae="".concat(W.FX,"/product/").concat(N.id,"/?slug=").concat(Q.query.slug),ce=[{iconName:"facebook",url:"http://www.facebook.com/sharer.php?u=".concat(ae)},{iconName:"whatsapp",url:"https://api.whatsapp.com/send?text=".concat(ae)}];return(0,c.useEffect)((function(){oe(1)}),[te]),(0,u.jsx)(u.Fragment,{children:N.id?(0,u.jsx)(o.Z,{overflow:"hidden",children:(0,u.jsxs)(j.Z,{container:!0,justifyContent:"center",spacing:12,children:[(0,u.jsx)(j.Z,{item:!0,md:6,xs:12,alignItems:"center",children:(0,u.jsxs)(o.Z,{children:[(0,u.jsx)(P,{handle:(0,u.jsx)(l.Z,{justifyContent:"center",mb:"50px",children:(0,u.jsx)(m.Z,{width:"100%",height:600,src:null===N||void 0===N||null===(r=N.product_images[E])||void 0===r?void 0:r.file,style:{objectFit:"contain",cursor:"pointer"}})}),children:(0,u.jsx)(o.Z,{children:(0,u.jsx)(B,G({},N))})}),(0,u.jsx)(l.Z,{overflow:"auto",children:N.product_images.map((function(e,t){return(0,u.jsx)(o.Z,{size:70,minWidth:70,bg:"white",borderRadius:"10px",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",border:"1px solid",ml:0===t&&"auto",mr:t===N.product_images.length-1?"auto":"10px",borderColor:E===t?"primary.main":"gray.400",onClick:le(t),children:(0,u.jsx)(g.Z,{src:e.file,borderRadius:"10px",size:40})},t)}))})]})}),(0,u.jsxs)(j.Z,{item:!0,md:6,xs:12,alignItems:"center",children:[(0,u.jsx)(w.Z,{bg:"gray.300",mb:"0.5rem"}),(0,u.jsx)(d.H1,{width:"85%",mb:"0.5rem",fontSize:"20px",children:null===N||void 0===N?void 0:N.short_description}),(0,u.jsxs)(l.Z,{justifyContent:"space-between",children:[(0,u.jsxs)(d.ZP,{fontSize:"16px",mt:"0.5rem",children:[(0,u.jsx)(X,{children:"Brand:"})," ",null===N||void 0===N||null===(i=N.brand)||void 0===i?void 0:i.title]}),(0,u.jsxs)(d.ZP,{fontSize:"16px",mt:"0.5rem",children:[(0,u.jsx)(X,{children:"SKU:"})," ",null===N||void 0===N?void 0:N.sku]}),(0,u.jsxs)(l.Z,{justifyContent:"flex-end",children:[(0,u.jsx)(U,{children:(0,u.jsx)(d.x4,{children:null!==N&&void 0!==N&&N.availibility_upcoming_status?"UPCOMING":null!==N&&void 0!==N&&N.availibility_pre_order_status?"Pre Order":(null===N||void 0===N?void 0:N.quantity)>0?"IN STOCK":"OUT OF STOCK"})}),(null===N||void 0===N?void 0:N.offer_discount_price)>0&&(0,u.jsx)(V,{children:(0,u.jsx)(d.x4,{children:"OFFER"})})]})]}),(0,u.jsx)(w.Z,{bg:"gray.300",mb:"0.5rem"}),(0,u.jsx)(d.H6,{mb:"0.1rem",fontSize:"20px",children:"Key Features"}),null===N||void 0===N||null===(n=N.product_specification)||void 0===n?void 0:n.map((function(e){return"Key Features"===(null===e||void 0===e?void 0:e.title_name)&&(null===e||void 0===e?void 0:e.specification_values.map((function(e,t){return(0,u.jsx)(d.ZP,{fontSize:"16px",mt:"0.5rem",children:(0,u.jsxs)("li",{children:[(0,u.jsxs)(X,{children:[e.key,":"]})," ",null===e||void 0===e?void 0:e.value]})},t)})))})),(0,u.jsx)(w.Z,{bg:"gray.300",mb:"0.5rem"}),(0,u.jsxs)(j.Z,{style:{marginTop:"10px"},container:!0,spacing:6,children:[(0,u.jsxs)(j.Z,{item:!0,md:7,xs:12,alignItems:"center",children:[(0,u.jsxs)(d.H2,{fontSize:"20px",color:"customColors.baseFont",lineHeight:"1",children:["AED:"," ",0!==L&&"PERCENTAGE"===$?(Number(ee)+Number(ee)/100*L).toFixed(2):0!==L&&"FLAT"===$?(L*Number(ee)).toFixed(2):Number(ee).toFixed(2)]}),(0,u.jsx)(l.Z,{justifyContent:"space-between",alignItems:"center",mb:2,children:null!==N&&void 0!==N&&N.price?(0,u.jsx)(d.kf,{mt:3,fontSize:14,fontWeight:600,children:ee===(null===N||void 0===N||null===(s=N.price)||void 0===s?void 0:s.toFixed(2))?(0,u.jsx)(u.Fragment,{}):(0,u.jsxs)("del",{children:["AED ",null===N||void 0===N||null===(p=N.price)||void 0===p?void 0:p.toFixed(2)]})}):(0,u.jsx)(d.kf,{fontWeight:600,children:(0,u.jsx)(u.Fragment,{})})}),(0,u.jsxs)(l.Z,{justifyContent:"space-between",children:[(0,u.jsxs)(d.ZP,{children:[(0,u.jsx)(l.Z,{mb:"0.5rem",children:(null===N||void 0===N?void 0:N.in_house_product)&&(0,u.jsx)(C.A,{bg:"customColors.baseFont",color:"primary.text",fontSize:"12px",p:"5px 10px",children:"In House Product"})}),(0,u.jsx)(l.Z,{mb:"0.5rem",children:(0,u.jsx)(C.A,{bg:"customColors.pest",color:"primary.text",fontSize:"12px",p:"4px",children:"Fulfilled by Blumenit"})}),(0,u.jsx)(l.Z,{mb:"0.5rem",children:null!==N&&void 0!==N&&N.offer_discount_price?(0,u.jsxs)(C.A,{bg:"customColors.green",color:"primary.text",fontSize:"10px",p:"5px 10px",mr:"0.5rem",children:["flat"===N.offer_discount_price_type&&N.offer_discount_price_type," ",null===N||void 0===N?void 0:N.offer_discount_price," ","flat"!==N.offer_discount_price_type&&N.offer_discount_price_type," ","OFF"]}):null}),(0,u.jsx)(l.Z,{mb:"0.5rem",children:null!==N&&void 0!==N&&N.vat_type&&null!==N&&void 0!==N&&N.vat_type?(0,u.jsxs)(d.ZP,{fontSize:"12px",mb:"0.5rem",mr:"1rem",children:["VAT: \xa0",null===N||void 0===N?void 0:N.vat," \xa0%\xa0\xa0 \xa0"]}):(0,u.jsx)(d.ZP,{fontSize:"12px",mb:"0.5rem",children:"Inclusive of VAT."})})]}),(0,u.jsxs)(d.ZP,{style:{marginTop:"-45px"},children:[(0,u.jsx)("img",{width:"76px",src:null===N||void 0===N||null===(f=N.brand)||void 0===f?void 0:f.logo,alt:"logo"}),(0,u.jsxs)(d.ZP,{mt:3,children:[(0,u.jsx)("a",{style:{cursor:"pointer"},children:(0,u.jsx)(y.Z,{style:{display:"flex",justifyContent:"center"},className:"favorite-icon",variant:"medium",onClick:function(){return se((0,M.a$)(null===N||void 0===N?void 0:N.id)),void(0,q.Am)("Added to compare",{position:"top-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})},children:"compare"})}),(0,u.jsx)(d.ZP,{fontSize:"10px",children:"Add to Compare"})]}),(0,u.jsxs)(d.ZP,{children:[(0,u.jsx)(y.Z,{style:{marginTop:"10px",cursor:"pointer",display:"flex",justifyContent:"center"},className:"favorite-icon outlined-icon",variant:"medium",onClick:function(){return function(e){se((0,M.Mp)({name:N.title,qty:e,price:N.price,imgUrl:N.product_images[0].file,id:N.id,slug:N.slug,total_quantity:(null===N||void 0===N?void 0:N.quantity)&&(null===N||void 0===N?void 0:N.quantity),discount_type:null!==N&&void 0!==N&&N.offer_discount_price_type?null===N||void 0===N?void 0:N.offer_discount_price_type:null,discount_amount:null!==N&&void 0!==N&&N.offer_discount_price?null===N||void 0===N?void 0:N.offer_discount_price:null,offer_product:null!==N&&void 0!==N&&N.offer_discount_id?null===N||void 0===N?void 0:N.offer_discount_id:null,is_new:(null===N||void 0===N?void 0:N.is_new)&&(null===N||void 0===N?void 0:N.is_new)})),(0,q.Am)("Added to wishlist",{position:"top-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})}(1)},children:"wish"}),(0,u.jsx)(d.ZP,{fontSize:"10px",children:"Add to WishList"})]})]})]}),(0,u.jsx)(l.Z,{mt:3,mb:"0.5rem",children:(0,u.jsx)(o.Z,{children:(0,u.jsx)(_.Z,{color:"warn",value:null!==N&&void 0!==N&&N.avg_rating?null===N||void 0===N?void 0:N.avg_rating:0,outof:5})})}),(0,u.jsx)(l.Z,{mb:"0.5rem",children:(0,u.jsxs)(d.ZP,{fontSize:"12px",mb:"0.5rem",children:[null===(O=N.product_reviews)||void 0===O?void 0:O.length," Review",(null===(S=N.product_reviews)||void 0===S?void 0:S.length)>1&&"s"]})}),(0,u.jsx)(l.Z,{className:"flex",mb:"1rem",children:ce.map((function(e){return(0,u.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer noopenner",children:(0,u.jsx)(y.Z,{size:"30px",defaultcolor:"auto",children:e.iconName})},e.iconName)}))})]}),(0,u.jsx)(j.Z,{item:!0,md:5,xs:12,mb:"1rem",alignItems:"center",style:{borderLeft:"1px solid lightgray"},children:(null===N||void 0===N||null===(k=N.product_warranties)||void 0===k?void 0:k.length)>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.ZP,{fontSize:"14px",fontWeight:"600",mb:"0.5rem",children:"Select Your Product Warranty"}),(null===N||void 0===N?void 0:N.product_warranties)&&(null===N||void 0===N||null===(F=N.product_warranties)||void 0===F?void 0:F.map((function(e){return(0,u.jsx)(Z.Z,{value:null===e||void 0===e?void 0:e.id,onChange:function(t){return z(parseInt(t.target.value)),Y(null===e||void 0===e?void 0:e.warranty_value),J(null===e||void 0===e?void 0:e.warranty_value_type)},mb:".5rem",color:"secondary",name:"warranty",defaultChecked:0===(null===e||void 0===e?void 0:e.warranty_value),label:(0,u.jsxs)(d.ZP,{ml:"6px",fontWeight:"300",fontSize:"12px",children:[null===e||void 0===e?void 0:e.warranty_title," :"," ",0===(null===e||void 0===e?void 0:e.warranty_value)?"Free":null===e||void 0===e?void 0:e.warranty_value," ","PERCENTAGE"===(null===e||void 0===e?void 0:e.warranty_value_type)&&0!==(null===e||void 0===e?void 0:e.warranty_value)?"%":"FLAT"===(null===e||void 0===e?void 0:e.warranty_value_type)&&0!==(null===e||void 0===e?void 0:e.warranty_value)?"Flat":""]})})})))]})})]}),(0,u.jsx)(w.Z,{mt:4,bg:"gray.300",mb:"0.5rem"}),(0,u.jsxs)("div",{style:{display:"flex",marginBottom:"15px"},children:[(0,u.jsx)("input",{type:"number",value:ne,onChange:function(e){return oe(parseInt(e.target.value))},style:{width:"50px",height:"40px",textAlign:"center",borderRadius:"5px",border:"0.5px solid #e0e0e0",marginRight:"15px"}}),(0,u.jsxs)(l.Z,{children:[(0,u.jsxs)(b.Z,{variant:"contained",size:"small",style:{color:"white"},bg:"customColors.green",color:"primary","max-value":null===N||void 0===N?void 0:N.quantity,"min-value":1,onClick:function(){return function(e){try{se((0,h.gY)({qty:e,name:N.title,price:ee,real_price:null!==N&&void 0!==N&&N.offer_discount_id?null===N||void 0===N?void 0:N.price:null,vat:(null===N||void 0===N?void 0:N.vat)&&(null===N||void 0===N?void 0:N.vat),imgUrl:N.product_images[0].file,id:N.id||te,total_quantity:N.quantity,product_warranty:I,warranty_real_price:re,offer_product:null!==N&&void 0!==N&&N.offer_discount_id?null===N||void 0===N?void 0:N.offer_discount_id:null})),(0,q.Am)("Added to cart",{position:"top-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})}catch(t){console.log(t)}}(ne)},disabled:null===(null===N||void 0===N?void 0:N.quantity)||0===(null===N||void 0===N?void 0:N.quantity)||ne<1||ne>(null===N||void 0===N?void 0:N.quantity)||(null===N||void 0===N?void 0:N.availibility_upcoming_status),children:[(0,u.jsx)(y.Z,{className:"favorite-icon outlined-icon",variant:"small",mr:".5rem",children:"cartLogo"}),"Add to Cart"]}),"null"===N.product_condition&&(0,u.jsxs)(l.Z,{alignItems:"center",ml:"20px",mt:"-0.5rem",children:[(0,u.jsx)(y.Z,{className:"favorite-icon outlined-icon",variant:"small",mr:".5rem",color:"primary-muted",children:"condition"}),(0,u.jsx)(d.kf,{children:"Condition:"}),(0,u.jsx)(v(),{href:"/shop/fdfdsa",children:(0,u.jsx)("a",{children:(0,u.jsx)(d.H6,{lineHeight:"1",ml:"8px",children:N.product_condition})})})]})]})]})]})]})}):null})},K=r(50029),$=r(87794),J=r.n($),Q=r(98938),ee=r(84314),te=function(e){var t,r=(0,a.Z)({},e);return(0,u.jsxs)(o.Z,{mb:"20px",maxWidth:"600px",children:[(0,u.jsx)(l.Z,{alignItems:"center",children:(0,u.jsxs)(o.Z,{ml:"1rem",children:[(0,u.jsx)(d.H5,{mb:"4px",children:r.user.name}),(0,u.jsxs)(l.Z,{alignItems:"center",children:[(0,u.jsx)(_.Z,{value:r.rating_number,color:"warn",readonly:!0}),(0,u.jsx)(d.H6,{mx:"10px",children:r.rating_number}),(0,u.jsx)(d.kf,{children:(0,ee.hM)(r.created_at)})]}),(0,u.jsx)(d.nv,{color:"gray.700",children:r.review_text}),(0,u.jsx)("br",{})]})}),(null===r||void 0===r?void 0:r.replies)&&(0,u.jsx)(u.Fragment,{children:null===r||void 0===r||null===(t=r.replies)||void 0===t?void 0:t.map((function(e,t){return(0,u.jsx)(l.Z,{borderRadius:3,py:2,mt:3,style:{backgroundColor:"#f8f8f8"},ml:"10%",alignItems:"center",children:(0,u.jsxs)(o.Z,{ml:"1rem",children:[(0,u.jsx)(d.H5,{mb:"4px",children:"Blumenit"}),(0,u.jsx)(l.Z,{alignItems:"center",children:(0,u.jsx)(d.nv,{color:"gray.700",children:null===e||void 0===e?void 0:e.review_text})}),(0,u.jsx)(d.kf,{fontSize:10,children:(0,ee.hM)(null===e||void 0===e?void 0:e.created_at)}),(0,u.jsx)("br",{})]})},t)}))})]})},re=r(82175),ie=r(74231),ne=r(17918);function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var se,ae={rating_number:"",review_text:"",date:(new Date).toISOString()},ce=ie.Ry().shape({rating_number:ie.Rx().required("required"),review_text:ie.Z_().required("required")}),de=function(e){var t,r,i=(0,a.Z)({},e),n=(0,ne.C)((function(e){return e.auth.userInfo})),s=null===n||void 0===n?void 0:n.access_token;null!==n&&void 0!==n&&n.access_token||(s=null===n||void 0===n||null===(r=n.data)||void 0===r?void 0:r.access_token);var p=function(){var e=(0,K.Z)(J().mark((function e(t,r){return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,r.resetForm)(),t.product=i.id,e.next=5,fetch("".concat(W.CT,"/create-product-review/"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(s)},body:JSON.stringify(t)});case 5:201==e.sent.status?((0,q.Am)("Review added successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0}),setTimeout((function(){window.location.reload()}),1e3)):(0,q.Am)("Review add Failed",{style:{color:"#F85633"},position:"top-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0});case 7:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),m=(0,re.TA)({initialValues:ae,validationSchema:ce,onSubmit:p}),h=m.values,f=m.errors,v=m.touched,x=m.dirty,g=m.isValid,j=m.handleChange,y=m.handleBlur,w=m.handleSubmit,C=m.setFieldValue;return(0,u.jsxs)(o.Z,{children:[null===i||void 0===i||null===(t=i.product_reviews)||void 0===t?void 0:t.map((function(e,t){return(0,c.createElement)(te,le(le({},e),{},{key:t}))})),null!==n&&void 0!==n&&n.status?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.H2,{fontWeight:"600",mt:"30px",mb:"20",children:"Write a Review for this product"}),(0,u.jsxs)("form",{onSubmit:w,children:[(0,u.jsxs)(o.Z,{mb:"20px",children:[(0,u.jsxs)(l.Z,{mb:"12px",children:[(0,u.jsx)(d.H5,{color:"gray.700",mr:"6px",children:"Your Rating"}),(0,u.jsx)(d.H5,{color:"error.main",children:"*"})]}),(0,u.jsx)(_.Z,{outof:5,color:"warn",size:"medium",readonly:!1,value:h.rating_number||0,onChange:function(e){return C("rating_number",e)}})]}),(0,u.jsxs)(o.Z,{mb:"24px",children:[(0,u.jsxs)(l.Z,{mb:"12px",children:[(0,u.jsx)(d.H5,{color:"gray.700",mr:"6px",children:"Your Review"}),(0,u.jsx)(d.H5,{color:"error.main",children:"*"})]}),(0,u.jsx)(Q.Z,{name:"review_text",placeholder:"Write a review here...",fullwidth:!0,rows:8,onBlur:y,onChange:j,value:h.review_text||"",errorText:v.review_text&&f.review_text})]}),(0,u.jsx)(b.Z,{variant:"contained",color:"primary",size:"small",type:"submit",disabled:!(x&&g),children:"Submit"})]})]}):null]})},ue=H.Z.div(se||(se=(0,S.Z)(["\n  font-size: 14px;\n    @media only screen and (max-width: 400px) {\n    width: 50%;\n   }\n\n"]))),pe=function(e){var t,r=(0,a.Z)({},e);return(0,u.jsxs)(o.Z,{children:[(0,u.jsx)(d.H3,{mb:"1rem",fontSize:"22px",children:"Specifications:"}),(0,u.jsx)(N.Z,{p:"20px 30px",mb:"1.5rem",children:null!==r&&void 0!==r&&r.product_specification?(0,u.jsx)(u.Fragment,{children:null===r||void 0===r||null===(t=r.product_specification)||void 0===t?void 0:t.map((function(e,t){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.Z,{bg:"customColors.blueHead",borderRadius:"2px",p:"2px",my:"2px",children:(0,u.jsx)(d.H5,{fontSize:"22px",fontWeight:"200",color:"customColors.blueFont",children:e.title_name})},t),null===e||void 0===e?void 0:e.specification_values.map((function(e,t){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(j.Z,{mb:"0.5rem",container:!0,spacing:3,children:[(0,u.jsx)(j.Z,{item:!0,xs:12,md:3,lg:3,children:(0,u.jsx)(ue,{color:"text.dark",children:e.key})}),(0,u.jsx)(j.Z,{item:!0,xs:12,md:9,lg:9,children:(0,u.jsx)(ue,{style:{float:"left"},color:"text.dark",children:e.value})})]},t),(0,u.jsx)(w.Z,{mb:"0.5rem"})]})}))]})}))}):(0,u.jsx)(d.ZP,{fontSize:"14px",color:"text.dark",children:"No specification found"})})]})},me=r(9659);function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ve=function(e){var t;return(0,u.jsxs)(o.Z,{mb:"3.75rem",children:[(0,u.jsx)(d.H3,{mb:"1.5rem",children:"Related Products"}),(0,u.jsx)(j.Z,{container:!0,spacing:8,children:null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.slice(0,8).map((function(e,t){return(0,u.jsx)(j.Z,{item:!0,lg:3,md:4,sm:6,xs:12,children:(0,u.jsx)(me.Z,fe({},e))},t)}))})]})},xe=r(9008),ge=r.n(xe);function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ye=function(e){var t,r=e.product,i=(0,c.useState)("specifications"),n=i[0],s=i[1],a=function(e){return function(){s(e)}},m=(0,x.useRouter)(),h="".concat(W.FX,"/product/").concat(m.query.slug);return(0,u.jsxs)("div",{children:[(0,u.jsxs)(ge(),{children:[(0,u.jsx)("title",{children:r.title}),(0,u.jsx)("meta",{name:"description",content:r.meta_description}),(0,u.jsx)("meta",{name:"keywords",content:r.meta_keyword?r.meta_keyword:""}),(0,u.jsx)("meta",{property:"og:url",content:h}),(0,u.jsx)("meta",{property:"og:title",content:r.meta_title}),(0,u.jsx)("meta",{property:"og:description",content:r.meta_description}),(0,u.jsx)("meta",{property:"og:image",content:"/og-image.jpg"}),(0,u.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,u.jsx)("meta",{property:"og:image:height",content:"630"})]}),(0,u.jsx)(Y,je({},r)),(0,u.jsxs)(l.Z,{borderBottom:"1px solid",borderColor:"gray.400",mt:"80px",mb:"26px",children:[(0,u.jsx)(d.H5,{className:"cursor-pointer",mr:"25px",p:"4px 10px",color:"specifications"===n?"customColors.base":"text.muted",borderBottom:"specifications"===n&&"2px solid",borderColor:"customColors.base",onClick:a("specifications"),children:"Specifications"}),(0,u.jsx)(d.H5,{className:"cursor-pointer",mr:"25px",p:"4px 10px",color:"description"===n?"primary.main":"text.muted",borderBottom:"description"===n&&"2px solid",borderColor:"primary.main",onClick:a("description"),children:"Description"}),(0,u.jsxs)(d.H5,{className:"cursor-pointer",p:"4px 10px",color:"review"===n?"primary.main":"text.muted",onClick:a("review"),borderBottom:"review"===n&&"2px solid",borderColor:"primary.main",children:["Review"," ",(null===r||void 0===r?void 0:r.product_reviews)&&"(".concat(null===r||void 0===r||null===(t=r.product_reviews)||void 0===t?void 0:t.length,")")]})]}),(0,u.jsxs)(o.Z,{mb:"50px",children:["description"===n&&(0,u.jsx)(p,je({},r)),"review"===n&&(0,u.jsx)(de,je({},r)),"specifications"===n&&(0,u.jsx)(pe,je({},r))]}),(0,u.jsx)(ve,{data:(null===r||void 0===r?void 0:r.related_products)&&(null===r||void 0===r?void 0:r.related_products)})]})};ye.layout=s.Z;var _e=!0,we=ye},62502:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[slug]",function(){return r(12734)}])},71383:function(e,t,r){"use strict";function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{Z:function(){return i}})}},function(e){e.O(0,[3662,5445,6678,1664,1217,7275,5260,8948,6380,8431,838,9212,905,2582,4997,9774,2888,179],(function(){return t=62502,e(e.s=t);var t}));var t=e.O();_N_E=t}]);