1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7602],{69741:function(e,t,n){var r=n(52676),l=n(75271),i=n(24480),s=n(33561),o=n(63309);t.Z=l.memo(e=>{let{titles:t,items:n,className:a,containerClassName:c,homeTitle:u="Home",homeHref:d="/"}=e,p=(0,s.useRouter)(),m=(0,l.useMemo)(()=>Array.isArray(t)?t.filter(Boolean):t?[t]:[],[t]),f=(0,l.useMemo)(()=>n?n.filter(e=>e.title):m.map(e=>({title:e})),[n,m]);if(0===f.length)return null;let x=(e,t,n)=>t?(0,r.jsx)("span",{role:"link",tabIndex:0,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())},className:(0,o.cn)(n,"cursor-pointer"),children:e}):e;return(0,r.jsx)("div",{className:(0,o.cn)("px-4 py-4 mx-auto maxContainer md:px-6",c),children:(0,r.jsx)(i.Z,{className:a,items:[{title:x(u,()=>p.push(d))},...f.map(e=>{var t;let n=e.href,r=null!==(t=e.onClick)&&void 0!==t?t:n?()=>p.push(n):void 0;return{title:x(e.title,r,e.className)}})]})})})},55151:function(e,t,n){var r=n(52676),l=n(75271),i=n(47639),s=n(92056),o=n(58612),a=n(46095);n(50960),n(31618),t.Z=l.memo(e=>{let{children:t,autoplayDelay:n=5e3,speed:c=2e3,loop:u=!0,spaceBetween:d=0,slidesPerView:p=1,className:m}=e,f=(0,l.useRef)(null),x=(0,l.useRef)(null);return(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsx)(i.tq,{className:m,autoplay:{delay:n},speed:c,loop:u,spaceBetween:d,slidesPerView:p,modules:[s.pt,s.W_],navigation:{prevEl:f.current,nextEl:x.current},onBeforeInit:e=>{if("boolean"==typeof e.params.navigation||!e.params.navigation)return;let t=e.params.navigation;t.prevEl=f.current,t.nextEl=x.current},children:t}),(0,r.jsx)("button",{ref:f,"aria-label":"Previous slide",className:"flex absolute left-4 top-1/2 z-10 justify-center items-center w-10 h-10 rounded-full border shadow-lg backdrop-blur-md transition-all -translate-y-1/2 cursor-pointer border-white/40 bg-white/30 text-neutral-800 hover:scale-105 hover:bg-white/50 hover:text-red-600 disabled:opacity-50",children:(0,r.jsx)(o.Z,{size:24})}),(0,r.jsx)("button",{ref:x,"aria-label":"Next slide",className:"flex absolute right-4 top-1/2 z-10 justify-center items-center w-10 h-10 rounded-full border shadow-lg backdrop-blur-md transition-all -translate-y-1/2 cursor-pointer border-white/40 bg-white/30 text-neutral-800 hover:scale-105 hover:bg-white/50 hover:text-red-600 disabled:opacity-50",children:(0,r.jsx)(a.Z,{size:24})})]})})},64910:function(e,t,n){n.d(t,{d:function(){return u}});var r=n(52676),l=n(21588),i=n(27026),s=n.n(i),o=n(75271),a=n(48588),c=n(89415);let u=e=>"RM".concat(e);t.Z=e=>{let{image:t,title:n,numberOfSales:i,discountPrice:d,originalPrice:p,hasOffer:m,outOfStock:f,discountPercentage:x,id:h,slug:v}=e,{addToWishlist:b,checkIsInWishlist:g,removeFromWishlist:N,loading:j}=(0,c.Ei)(),[w,y]=(0,o.useState)(g(h));return(0,r.jsxs)(s(),{href:(0,a.w)(h,v),className:"relative block h-full overflow-hidden no-underline transition-shadow duration-200 bg-white border rounded-md shadow-sm cursor-pointer hover:shadow-md border-neutral-200",children:[(0,r.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation(),j||(w?N(h,{onSuccess:()=>{y(!1)}}):b(h,{onSuccess:()=>{y(!0)}}))},"aria-pressed":w,className:"w-8 h-8 group absolute right-3 top-3 z-[2] flex items-center justify-center rounded-full border border-neutral-200 ".concat(w?"bg-[#FB233B]":"bg-white/90"," backdrop-blur transition-transform hover:bg-[#FB233B] cursor-pointer"),children:(0,r.jsx)(l.Z,{className:"w-5 h-5 transition-colors ".concat(w?"text-white":"text-neutral-700"," group-hover:text-white")})}),(()=>{let e=null!=x?Number(x):NaN;return m&&Number.isFinite(e)&&e>0?(0,r.jsxs)("div",{className:"absolute left-3 top-3 z-[1] rounded bg-[#FB233B] px-2 py-1 text-[12px] font-semibold text-white",children:[e,"% OFF"]}):null})(),f&&(0,r.jsx)("div",{className:"absolute left-3 top-10 z-[1] rounded bg-neutral-800 px-2 py-1 text-[12px] font-semibold text-white",children:"OUT OF STOCK"}),(0,r.jsx)("div",{className:"w-full overflow-hidden aspect-square bg-neutral-100",children:(0,r.jsx)("img",{src:t,alt:n,className:"object-cover w-full h-full"})}),(0,r.jsxs)("div",{className:"flex flex-col p-3 items-left",children:[(0,r.jsx)("p",{className:"text-[14px] text-[#111] line-clamp-2",children:n}),"number"==typeof i&&(0,r.jsxs)("p",{className:"mt-1 text-[12px] text-neutral-500",children:[i," Sold"]}),(()=>{let e=null!=p?Number(p):void 0,t=null!=d?Number(d):void 0,n="number"==typeof e&&!Number.isNaN(e)&&e>0,l="number"==typeof t&&!Number.isNaN(t)&&t>0;if(!n&&!l)return null;if(m&&l&&n)return(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,r.jsx)("span",{className:"text-[16px] font-semibold text-[#111]",children:u(t)}),(0,r.jsx)("span",{className:"text-[14px] text-[#9CA3AF] line-through",children:u(e)})]});let i=l?t:e;return(0,r.jsx)("div",{className:"flex items-center gap-2 mt-2",children:(0,r.jsx)("span",{className:"text-[16px] font-semibold text-[#111]",children:u(i)})})})()]})]})}},81762:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(52676),l=n(75271),i=n(10642),s=n(64910),o=e=>{let{products:t,isLoading:n=!1,isFetchingNextPage:i=!1,hasNextPage:o=!1,fetchNextPage:a}=e,c=(0,l.useRef)(null),u=!!o,d=(0,l.useCallback)(()=>{n||i||!u||a()},[n,i,u,a]);return(0,l.useEffect)(()=>
1{if(!u)return;let e=c.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&d()},{root:null,rootMargin:"200px 0px",threshold:.01});return t.observe(e),()=>t.disconnect()},[u,d]),(0,r.jsxs)("div",{className:"relative lg:col-span-9",children:[(0,r.jsx)("div",{className:"grid grid-cols-2 gap-4 lg:grid-cols-3 xl:grid-cols-4",children:t.map((e,t)=>(0,r.jsx)(s.Z,{...e},"".concat(e.id,"-").concat(t)))}),(0,r.jsx)("div",{ref:c,className:"w-full h-4"}),(0,r.jsxs)("div",{className:"flex justify-center py-6 text-sm text-neutral-500",children:[(n||i)&&u&&(0,r.jsx)("span",{children:"Loading more products..."}),!u&&t.length>0&&(0,r.jsx)("span",{children:"No more products"})]})]})},a=e=>{let{products:t,onSortChange:n,sortValue:l,onSortValueChange:s,isLoading:a=!1,isFetchingNextPage:c=!1,hasNextPage:u=!1,fetchNextPage:d}=e,p=null!=l?l:i.F[0].value;return(0,r.jsxs)("div",{className:"grid gap-6 px-4 mt-12 md:px-12 lg:grid-cols-12 maxContainer",children:[(0,r.jsx)(i.Z,{sortValue:p,onSortValueChange:null!=s?s:()=>{},onSortChange:n}),(0,r.jsx)(o,{products:t,isLoading:a,isFetchingNextPage:c,hasNextPage:u,fetchNextPage:d})]})}},10642:function(e,t,n){n.d(t,{F:function(){return s}});var r=n(52676);n(75271);var l=n(4948),i=n(94170);let s=[{value:"createdAt-desc",label:"Latest",sort:{key:"createdAt",order:i.As.DESC}},{value:"price-asc",label:"Price: Low to High",sort:{key:"price",order:i.As.ASC}},{value:"price-desc",label:"Price: High to Low",sort:{key:"price",order:i.As.DESC}}];t.Z=e=>{var t;let{sortValue:n,onSortValueChange:i,onSortChange:o}=e,a=(null===(t=s.find(e=>e.value===n))||void 0===t?void 0:t.value)||s[0].value;return(0,r.jsx)("div",{className:"hidden lg:block lg:col-span-3",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("p",{className:"text-2xl font-bold",children:"Filters"}),(0,r.jsxs)("div",{className:"flex gap-2 items-center mb-4",children:[(0,r.jsx)("span",{className:"pr-2 text-sm font-semibold text-nowrap",children:"Sort By:"}),(0,r.jsx)(l.default,{value:a,style:{width:"100%"},options:s.map(e=>{let{value:t,label:n}=e;return{value:t,label:n}}),onChange:e=>{let t=s.find(t=>t.value===e);null==i||i(e),t&&(null==o||o(t.sort))}})]})]})})}},24140:function(e,t,n){var r=n(52676),l=n(55151),i=n(47639),s=n(22903);let o=(e,t)=>e?(0,r.jsx)("a",{href:e,className:"block w-full",children:t}):t;t.Z=e=>{let{banners:t}=e;return t.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)(l.Z,{children:t.map(e=>(0,r.jsx)(i.o5,{children:o(e.link,(0,r.jsx)("img",{src:(0,s.I)(e.desktopImage.key),alt:"Banner",className:"object-contain w-full h-auto"}))},e.refId))})}),(0,r.jsx)("div",{className:"block p-4 md:hidden",children:(0,r.jsx)(l.Z,{spaceBetween:10,children:t.map(e=>(0,r.jsx)(i.o5,{children:o(e.link,(0,r.jsx)("img",{src:(0,s.I)(e.mobileImage.key),alt:"Banner",className:"object-contain w-full h-auto"}))},e.refId))})})]}):null}},3023:function(e,t,n){var r,l,i,s;n.d(t,{Bi:function(){return r},ZF:function(){return l},yD:function(){return o}}),(i=r||(r={})).HOME="HOME",i.COLLECTION="COLLECTION",(s=l||(l={})).HOME="HOME",s.WARRANTY_REGISTER="WARRANTY_REGISTER";let o={HOME:"Home Page",WARRANTY_REGISTER:"Warranty Register Success"}},32218:function(e,t,n){n.d(t,{IF:function(){return d},Ld:function(){return w},Up:function(){return x},Vj:function(){return N},WG:function(){return g},WK:function(){return h},ZS:function(){return f},du:function(){return i},fN:function(){return u},i6:function(){return c},it:function(){return a},n5:function(){return b},nA:function(){return l},o:function(){return p},r$:function(){return v},rR:function(){return o},ty:function(){return s},wl:function(){return m},xE:function(){return j}});var r=n(5409);let l=e=>r.Z.get("/admin/content/banners",{params:e?{page:e}:{}}),i=e=>r.Z.put("/admin/content/banners",e),s=()=>r.Z.get("/admin/content/popups"),o=e=>r.Z.put("/admin/content/popups",e),a=()=>r.Z.get("/admin/content/testimonials"),c=e=>r.Z.post("/admin/content/testimonials",e),u=(e,t)=>r.Z.put("/admin/content/testimonials/".concat(e),t),d=e=>r.Z.delete("/admin/content/testimonials/".concat(e)),p=e=>r.Z.put("/admin/content/testimonials/reorder",{refIds:e}),m=()=>r.Z.get("/admin/content/videos"),f=e=>r.Z.post("/admin/content/videos",e),x=(e,t)=>r.Z.put("/admin/content/videos/".concat(e),t),h=e=>r.Z.delete("/admin/content/videos/".concat(e)),v=e=>r.Z.put("/admin/content/videos/reorder",{refIds:e}),b=e=>r.Z.get("/public/content/banners",{params:{page:e}}),g=()=>r.Z.get("/public/content/testimonials"),N=()=>r.Z.get("/public/content/videos"),j=e=>r.Z.get("/public/content/popup",{params:{page:e}}),w=e=>r.Z.post("/public/content/popup/".concat(e,"/claim-voucher"))},5211:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(99764),l=n(22903);let i=e=>{if(null==e)return;let t=Number(e);return Number.isNaN(t)?void 0:t},s=e=>{if(e.type!==r.kv.VARIABLE||!e.variations||0===e.variations.length)return null;let t=e=>{var t;let n=null!==(t=i(e.price))&&void 0!==t?t:0,r=i(e.discountedPrice);return r&&r>0?r:n},n=e.variations.filter(e=>e.enabled&&t(e)>0);return 0===n.length?null:n.reduce((e,n)=>t(n)<t(e)?n:e)},o=e=>{var t,n;let o,a,c;let u=!1;if(e.type===r.kv.SIMPLE){let t=i(e.price),n=i(e.discountedPrice);o=t&&t>0?t:void 0,u=!!(a=n&&n>0?n:void 0)&&a>0}else if(e.type===r.kv.VARIABLE){let t=s(e);if(t){let e=i(t.price),n=i(t.discountedPrice);o=e&&e>0?e:void 0,u=!!(a=n&&n>0?n:void 0)&&a>0}else{let t=i(e.price),n=i(e.discountedPrice);o=t&&t>0?t:void 0,u=!!(a=n&&n>0?n:void 0)&&a>0}}if("number"==typeof o&&o>0&&"number"==typeof a&&a>0&&a<o){let e=Math.round((o-a)/o*100);e>0&&(c=String(e))}return{image:(0,l.I)(null===(t=e.image)||void 0===t?void 0:t.key),title:e.name,numberOfSales:null!==(n=e.totalSales)&&void 0!==n?n:0,discountPercentage:c,hasOffer:u,originalPrice
1:o,discountPrice:a,outOfStock:e.isOutOfStock,id:e.refId,slug:e.slug}}}}]);
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.