1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{68046:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return l(492)}])},12278:function(e,t,l){"use strict";l.d(t,{Z:function(){return i}});var n=l(45929),r=l(75271),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=l(52095),i=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:s}))})},27151:function(e,t,l){"use strict";l.d(t,{Z:function(){return n}});let n=(0,l(35082).Z)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},69741:function(e,t,l){"use strict";var n=l(52676),r=l(75271),s=l(24480),a=l(33561),i=l(63309);t.Z=r.memo(e=>{let{titles:t,items:l,className:c,containerClassName:o,homeTitle:d="Home",homeHref:u="/"}=e,m=(0,a.useRouter)(),x=(0,r.useMemo)(()=>Array.isArray(t)?t.filter(Boolean):t?[t]:[],[t]),p=(0,r.useMemo)(()=>l?l.filter(e=>e.title):x.map(e=>({title:e})),[l,x]);if(0===p.length)return null;let h=(e,t,l)=>t?(0,n.jsx)("span",{role:"link",tabIndex:0,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())},className:(0,i.cn)(l,"cursor-pointer"),children:e}):e;return(0,n.jsx)("div",{className:(0,i.cn)("px-4 py-4 mx-auto maxContainer md:px-6",o),children:(0,n.jsx)(s.Z,{className:c,items:[{title:h(d,()=>m.push(u))},...p.map(e=>{var t;let l=e.href,n=null!==(t=e.onClick)&&void 0!==t?t:l?()=>m.push(l):void 0;return{title:h(e.title,n,e.className)}})]})})})},55151:function(e,t,l){"use strict";var n=l(52676),r=l(75271),s=l(47639),a=l(92056),i=l(58612),c=l(46095);l(50960),l(31618),t.Z=r.memo(e=>{let{children:t,autoplayDelay:l=5e3,speed:o=2e3,loop:d=!0,spaceBetween:u=0,slidesPerView:m=1,className:x}=e,p=(0,r.useRef)(null),h=(0,r.useRef)(null);return(0,n.jsxs)("div",{style:{position:"relative"},children:[(0,n.jsx)(s.tq,{className:x,autoplay:{delay:l},speed:o,loop:d,spaceBetween:u,slidesPerView:m,modules:[a.pt,a.W_],navigation:{prevEl:p.current,nextEl:h.current},onBeforeInit:e=>{if("boolean"==typeof e.params.navigation||!e.params.navigation)return;let t=e.params.navigation;t.prevEl=p.current,t.nextEl=h.current},children:t}),(0,n.jsx)("button",{ref:p,"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,n.jsx)(i.Z,{size:24})}),(0,n.jsx)("button",{ref:h,"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,n.jsx)(c.Z,{size:24})})]})})},64910:function(e,t,l){"use strict";l.d(t,{d:function(){return d}});var n=l(52676),r=l(21588),s=l(27026),a=l.n(s),i=l(75271),c=l(48588),o=l(89415);let d=e=>"RM".concat(e);t.Z=e=>{let{image:t,title:l,numberOfSales:s,discountPrice:u,originalPrice:m,hasOffer:x,outOfStock:p,discountPercentage:h,id:f,slug:b}=e,{addToWishlist:g,checkIsInWishlist:v,removeFromWishlist:j,loading:w}=(0,o.Ei)(),[N,y]=(0,i.useState)(v(f));return(0,n.jsxs)(a(),{href:(0,c.w)(f,b),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,n.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation(),w||(N?j(f,{onSuccess:()=>{y(!1)}}):g(f,{onSuccess:()=>{y(!0)}}))},"aria-pressed":N,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(N?"bg-[#FB233B]":"bg-white/90"," backdrop-blur transition-transform hover:bg-[#FB233B] cursor-pointer"),children:(0,n.jsx)(r.Z,{className:"w-5 h-5 transition-colors ".concat(N?"text-white":"text-neutral-700"," group-hover:text-white")})}),(()=>
1{let e=null!=h?Number(h):NaN;return x&&Number.isFinite(e)&&e>0?(0,n.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})(),p&&(0,n.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,n.jsx)("div",{className:"w-full overflow-hidden aspect-square bg-neutral-100",children:(0,n.jsx)("img",{src:t,alt:l,className:"object-cover w-full h-full"})}),(0,n.jsxs)("div",{className:"flex flex-col p-3 items-left",children:[(0,n.jsx)("p",{className:"text-[14px] text-[#111] line-clamp-2",children:l}),"number"==typeof s&&(0,n.jsxs)("p",{className:"mt-1 text-[12px] text-neutral-500",children:[s," Sold"]}),(()=>{let e=null!=m?Number(m):void 0,t=null!=u?Number(u):void 0,l="number"==typeof e&&!Number.isNaN(e)&&e>0,r="number"==typeof t&&!Number.isNaN(t)&&t>0;if(!l&&!r)return null;if(x&&r&&l)return(0,n.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,n.jsx)("span",{className:"text-[16px] font-semibold text-[#111]",children:d(t)}),(0,n.jsx)("span",{className:"text-[14px] text-[#9CA3AF] line-through",children:d(e)})]});let s=r?t:e;return(0,n.jsx)("div",{className:"flex items-center gap-2 mt-2",children:(0,n.jsx)("span",{className:"text-[16px] font-semibold text-[#111]",children:d(s)})})})()]})]})}},24140:function(e,t,l){"use strict";var n=l(52676),r=l(55151),s=l(47639),a=l(22903);let i=(e,t)=>e?(0,n.jsx)("a",{href:e,className:"block w-full",children:t}):t;t.Z=e=>{let{banners:t}=e;return t.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(r.Z,{children:t.map(e=>(0,n.jsx)(s.o5,{children:i(e.link,(0,n.jsx)("img",{src:(0,a.I)(e.desktopImage.key),alt:"Banner",className:"object-contain w-full h-auto"}))},e.refId))})}),(0,n.jsx)("div",{className:"block p-4 md:hidden",children:(0,n.jsx)(r.Z,{spaceBetween:10,children:t.map(e=>(0,n.jsx)(s.o5,{children:i(e.link,(0,n.jsx)("img",{src:(0,a.I)(e.mobileImage.key),alt:"Banner",className:"object-contain w-full h-auto"}))},e.refId))})})]}):null}},29802:function(e,t,l){"use strict";var n=l(52676);l(75271);var r=l(79406),s=l(27151),a=l(22903);t.Z=e=>{let{open:t,onClose:l,popup:i,onClaim:c,claiming:o,claimed:d}=e,u=(0,a.I)(i.desktopImage.key),m=(0,a.I)(i.mobileImage.key),x=!!i.coupon&&!!c,p=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{src:u,alt:"Popup",className:"hidden w-full h-auto md:block"}),(0,n.jsx)("img",{src:m,alt:"Popup",className:"block w-full h-auto md:hidden"})]});return(0,n.jsx)(r.Z,{open:t,onCancel:l,footer:null,width:1050,centered:!0,closeIcon:null,styles:{content:{padding:0,background:"transparent",boxShadow:"none"}},children:(0,n.jsxs)("div",{className:"relative w-full overflow-hidden rounded-[24px]",children:[i.link&&!i.ctaText?(0,n.jsx)("a",{href:i.link,className:"block w-full",children:p}):p,i.ctaText&&(0,n.jsx)("button",{type:"button",disabled:x&&(o||d),onClick:()=>{if(x){o||d||null==c||c();return}i.link&&(window.location.href=i.link)},className:"absolute left-1/2 top-[41%] z-20 -translate-x-1/2 -translate-y-1/2 rounded-full border-none bg-[#E31B4D] px-8 py-2.5 text-[15px] font-medium text-white shadow-md shadow-red-200/60 transition-colors cursor-pointer hover:bg-[#c4163f] disabled:cursor-default disabled:opacity-80 md:left-[28%] md:top-[68%] md:px-10",children:x?d?"Claimed â":o?"Claimingâ¦":i.ctaText:i.ctaText}),(0,n.jsx)(s.Z,{className:"absolute top-3 right-3 z-20 w-8 h-8 text-lg text-white rounded-full border-none duration-200 transform cursor-pointer pointer-events-auto md:right-4 md:top-4 md:w-10 md:h-10 md:text-xl",onClick:l})]})})}},3023:function(e,t,l){"use strict";var n,r,s,a;l.d(t,{Bi:function(){return n},ZF:function(){return r},yD:function(){return i}}),(s=n||(n={})).HOME="HOME",s.COLLECTION="COLLECTION",(a=r||(r={})).HOME="HOME",a.WARRANTY_REGISTER="WARRANTY_REGISTER";let i={HOME:"Home Page",WARRANTY_REGISTER:"Warranty Register Success"}},492:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return B},default:function(){return T}});var n=l(52676),r=l(75271),s=l(33561),a=l(32623),i=l.n(a),c=l(27026),o=l.n(c),d=l(94170),u=l(46980),m=l(69741),x=l(64910),p=e=>{var t;let{content:l,author:r,avatarSrc:s,rating:a=5}=e,c=Math.max(0,Math.min(5,Math.round(a)));return(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between h-full p-3 bg-white border rounded-xl shadow-base md:p-6 border-neutral-200",children:[(0,n.jsx)("div",{className:"flex items-center gap-1 text-[#FB233B]",children:Array.from({length:5}).map((e,t)=>(0,n.jsx)("span",{className:"text-[8px] md:text-base ".concat(t<c?"text-[#FB233B]":"text-neutral-300"),children:"â
"},t))}),(0,n.jsx)("p",{className:"md:mt-3 text-[8px] md:text-[14px] text-neutral-700 leading-relaxed text-center",children:l}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-3 md:mt-6",children:[(0,n.jsx)("div",{className:"flex items-center justify-center w-12 h-12 overflow-hidden rounded-full md:w-24 md:h-24 bg-neutral-100",children:s?(0,n.jsx)(i(),{src:s,alt:r,width:48,height:48,className:"object-cover w-full h-full"}):(0,n.jsx)("span",{className:"text-lg font-semibold md:text-3xl text-neutral-400",children:(null==r?void 0:null===(t=r.charAt(0))||void 0===t?void 0:t.toUpperCase())||"?"})}),(0,n.jsx)("div",{className:"text-[8px] md:text-sm font-medium text-neutral-800",children:r})]})]})},h=l(24140),f=l(69834),b=l(4475),g=l(5211),v=l(99764),j=l(39936),w=l(32218),N=l(3023);let y=e=>{if(!e)return null;try{let t=new URL(e),l=t.hostname.replace(/^www\./,"");if("youtu.be"===l)return t.pathname.slice(1)||null;if("youtube.com"===l||"m.youtube.com"===l){if(t.searchParams.get("v"))return t.searchParams.get("v");
1let e=t.pathname.split("/").filter(Boolean),l=e.findIndex(e=>"embed"===e||"shorts"===e);if(-1!==l&&e[l+1])return e[l+1]}}catch(e){}return null};var k=l(22903),C=l(58612),I=l(46095),S=l(48588),Z=l(29802),E=l(49734),M=l(15530),R=l(54030),A=e=>{let{isLoggedIn:t}=e,{isClaimed:l,isUsedUp:r,handleClaim:s,claimingRefId:a}=(0,M.b)(t),{data:i}=(0,f.a)({queryKey:["claimable-coupons"],queryFn:()=>(0,E.tr)({limit:8}).then(e=>e.data),staleTime:6e4}),c=null==i?void 0:i.filter(e=>!r(e.refId));return c&&0!==c.length?(0,n.jsx)("div",{className:"w-full bg-white",children:(0,n.jsx)("div",{className:"flex w-full flex-nowrap gap-4 overflow-x-auto px-4 py-8 maxContainer [justify-content:safe_center]",children:c.map(e=>(0,n.jsx)(R.Z,{coupon:e,claimed:l(e.refId),loading:a===e.refId,onClaim:()=>s(e.refId)},e.refId))})}):null};function P(e){let{index:t,maxIndex:l,setIndex:n,getStepPx:s=e=>e,startDragThresholdPx:a=6,swipeDistanceThresholdPx:i,swipeVelocityThresholdPxPerMs:c=.55}=e,o=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useRef)({x:0,y:0,t:0}),m=(0,r.useRef)(!1),x=(0,r.useRef)(!1),p=(0,r.useRef)(0),h=(0,r.useRef)(null),[f,b]=(0,r.useState)(0),[g,v]=(0,r.useState)(!1),j=(0,r.useCallback)(()=>{null==h.current&&(h.current=window.requestAnimationFrame(()=>{h.current=null,b(p.current)}))},[]),w=(0,r.useCallback)(()=>{p.current=0,b(0),m.current=!1,v(!1)},[]);(0,r.useEffect)(()=>()=>{null!=h.current&&window.cancelAnimationFrame(h.current)},[]);let N=(0,r.useCallback)(e=>{if(("mouse"!==e.pointerType||0===e.button)&&null==d.current){d.current=e.pointerId,u.current={x:e.clientX,y:e.clientY,t:performance.now()},x.current=!1,w();try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}}},[w]),y=(0,r.useCallback)(e=>{var n,r;if(d.current!==e.pointerId)return;let i=e.clientX-u.current.x,c=e.clientY-u.current.y;if(!m.current){if(Math.abs(i)<a||Math.abs(i)<Math.abs(c))return;m.current=!0,v(!0),x.current=!0}e.preventDefault();let h=Math.max(1,s(null!==(r=null===(n=o.current)||void 0===n?void 0:n.clientWidth)&&void 0!==r?r:0)),f=t*h,b=(l-t)*h,g=i;g>f&&(g=f+(g-f)*.25),-g>b&&(g=-b-(-g-b)*.25),p.current=g,j()},[j,s,t,l,a]),k=(0,r.useCallback)(e=>{var r,a;if(d.current!==e.pointerId)return;try{e.currentTarget.releasePointerCapture(e.pointerId)}catch(e){}let x=p.current,h=x/Math.max(1,performance.now()-u.current.t),f=null!==(a=null===(r=o.current)||void 0===r?void 0:r.clientWidth)&&void 0!==a?a:0,b=Math.max(1,s(f)),g=null!=i?i:Math.min(70,Math.max(40,.18*f));m.current&&(Math.abs(x)>=g||Math.abs(h)>=c)&&l>0&&n(Math.min(Math.max(t+Math.round(-(x+220*h)/b),0),l)),d.current=null,w()},[s,t,l,w,n,i,c]);return{containerRef:o,dragX:f,isDragging:g,bind:{onPointerDown:N,onPointerMove:y,onPointerUp:k,onPointerCancel:(0,r.useCallback)(e=>{d.current===e.pointerId&&(d.current=null,w())},[w]),onClickCapture:(0,r.useCallback)(e=>{x.current&&(e.preventDefault(),e.stopPropagation(),x.current=!1)},[])}}}var B=!0,T=e=>{var t,l,a,c,E,M,R;let{user:B,initialHomeBanners:T}=e,[D,F]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!B){let e=setTimeout(()=>{F(!0)},3e3);return()=>clearTimeout(e)}},[B]);let _=(0,f.a)({queryKey:["products","public","best-seller"],queryFn:()=>(0,j.Bz)({page:1,pageSize:10,sortField:"createdAt",sortOrder:d.As.DESC,search:"",collection:v.xw.BEST_SELLER}),select:e=>e.data.rows,placeholderData:b.Wk}),O=(0,f.a)({queryKey:["products","public","new-arrival"],queryFn:()=>(0,j.Bz)({page:1,pageSize:10,sortField:"createdAt",sortOrder:d.As.DESC,search:"",collection:v.xw.NEW_ARRIVAL}),select:e=>e.data.rows,placeholderData:b.Wk}),W=(0,f.a)({queryKey:["content","banners","HOME","public"],queryFn:()=>(0,w.n5)(N.Bi.HOME),select:e=>e.data}),z=null!==(c=(0,f.a)({queryKey:["content","popup","HOME","public"],queryFn:()=>(0,w.xE)(N.ZF.HOME),select:e=>e.data,enabled:!B}).data)&&void 0!==c?c:null,q=(0,f.a)({queryKey:["content","testimonials","public"],queryFn:()=>(0,w.WG)(),select:e=>e.data}),H=(0,f.a)({queryKey:["content","videos","public"],queryFn:()=>(0,w.Vj)(),select:e=>e.data}),G=null!==(E=W.data)&&void 0!==E?E:T,L=(0,s.useRouter)(),K={best_seller:"Best Seller",new_arrival:"New Arrivals",baby:"Baby & Mummy",kitchen:"Kitchen Appliances",home:"Home Appliances",beauty:"Beauty & Health"},V=L.query.product,U=Array.isArray(V)?V[0]:V,X=U&&K[U]?K[U]:"",Y=[{title:"Home Appliances",mobileTitle:"Home",img:"/assets/categories/Samu Giken Web Design_231225-03.jpg",mobileImg:"/assets/categories/Samu Giken Web Design_231225-03.jpg",href:{pathname:"/categories/home-appliances",query:{product:"home-appliances"}}},{title:"Kitchen Appliances",mobileTitle:"Kitchen",img:"/assets/categories/Samu Giken Web Design_231225-04.jpg",mobileImg:"/assets/categories/Samu Giken Web Design_231225-04.jpg",href:{pathname:"/categories/kitchen-appliances",query:{product:"kitchen-appliances"}}},{title:"Beauty & Health",mobileTitle:"Beauty",img:"/assets/categories/Samu Giken Web Design_231225-05.jpg",mobileImg:"/assets/categories/Samu Giken Web Design_231225-05.jpg",href:{pathname:"/categories/beauty-and-health",query:{product:"beauty-and-health"}}},{title:"Baby & Mummy",mobileTitle:"Baby &\nMummy",img:"/assets/categories/Samu Giken Web Design_231225-06.jpg",mobileImg:"/assets/categories/Samu Giken Web Design_231225-06.jpg",href:{pathname:"/categories/baby-and-mummy",query:{product:"baby-and-mummy"}}}],$=(null!==(M=q.data)&&void 0!==M?M:[]).map(e=>({content:e.description,author:e.name,avatarSrc:e.image?(0,k.I)(e.image.key):void 0,rating:e.rating})),J=(null!==(R=H.data)&&void 0!==R?R:[]).map(e=>({title:e.title,id:y(e.url)})).filter(e=>!!e.id),[Q,ee]=(0,r.useState)(0),et=Math.max(0,$.length-2),el=e=>ee(t=>Math.min(Math.max(t+e,0),et));(0,r.useEffect)(()=>{ee(e=>Math.min(e,et))},[et]);let en=(null===(t=_.data)||void 0===t?void 0:t.map(e=>(0,g.f)(e)))||[],[er,es]=(0,r.useState)(0),ea=Math.max(0,en.length-2),ei=e=>es(t=>Math.min(Math.max(t+e,0),ea));(0,r.useEffect)(()=>{es(e=>Math.min(e,ea))},[ea]);let[ec,eo]=(0,r.useState)(0),ed=Math.max(0,J.length-1),eu=e=>eo(t=>Math.min(Math.max(t+e,0),ed));(0,r.useEffect)(()=>{eo(e=>Math.min(e,ed))},[ed]);let em=P({index:er,maxIndex:ea,setIndex:es,getStepPx:e=>e/2}),ex=P({index:ec,maxIndex:ed,setIndex:eo,getStepPx:e=>e/1}),ep=P({index:Q,maxIndex:et,setIndex:ee,getStepPx:e=>e/2});return(0,n.jsxs)(u.Z,{user:B,children:[(0,n.jsxs)("div",{children:[X&&(0,n.jsx)(m.Z,{titles:X}),(0,n.jsx)(h.Z,{banners:G}),(0,n.jsx)("div",{className:"mt-[-8px] flex w-full items-center justify-center bg-[#F3F3F3]",children:(0,n.jsxs)("div",{className:"grid w-full grid-cols-2 py-2 sm:py-3 lg:grid-cols-4 maxContainer",children:[(0,n.jsxs)("div",{className:"flex min-w-0 items-center border-[#D9D9D9] px-3 py-3 sm:px-6",children:[(0,n.jsx)(i(),{src:"/assets/icons/Icon-01.svg",alt:"Warranty",width:40,height:40,className:"w-8 h-8 shrink-0 sm:h-10 sm:w-10"}),(0,n.jsxs)("div",{className:"min-w-0 ml-2 sm:ml-3",children:[(0,n.jsx)("p",{className:"text-sm font-bold text-primary sm:text-[15px]",children:"Warranty"}),(0,n.jsx)("p",{className:"text-[10px] leading-tight text-[#666666]",children:"For Certain Products"})]})]}),(0,n.jsxs)("div",{className:"flex min-w-0 items-center border-[#D9D9D9] px-3 py-3 sm:px-6",children:[(0,n.jsx)(i(),{src:"/assets/icons/Icon-03.svg",alt:"Free Shipping",width:40,height:40,className:"w-8 h-8 shrink-0 sm:h-10 sm:w-10"}),(0,n.jsxs)("div",{className:"min-w-0 ml-2 sm:ml-3",children:[(0,n.jsx)("p",{className:"text-sm font-bold text-primary sm:text-[15px]",children:"Free Shipping"}),(0,n.jsx)("p",{className:"text-[10px] leading-tight text-[#666666]",children:"Spend More Than RM150 & Above"})]})]}),(0,n.jsxs)("div",{className:"flex min-w-0 items-center border-[#D9D9D9] px-3 py-3 sm:px-6",children:[(0,n.jsx)(i(),{src:"/assets/icons/award-winning.png",alt:"Award Winning",width:40,height:40,className:"w-8 h-8 shrink-0 sm:h-10 sm:w-10"}),(0,n.jsxs)("div",{className:"min-w-0 ml-2 sm:ml-3",children:[(0,n.jsx)("p",{className:"text-sm font-bold text-primary sm:text-[15px]",children:"Award Winning"}),(0,n.jsx)("p",{className:"text-[10px] leading-tight text-[#666666]",children:"Asia Pacific Top Brand"})]})]}),(0,n.jsxs)("div",{className:"flex items-center min-w-0 px-3 py-3 sm:px-6",children:[(0,n.jsx)(i(),{src:"/assets/icons/trusted-brand.png",alt:"Trusted Brand",width:40,height:40,className:"w-8 h-8 shrink-0 sm:h-10 sm:w-10"}),(0,n.jsxs)("div",{className:"min-w-0 ml-2 sm:ml-3",children:[(0,n.jsx)("p",{className:"text-sm font-bold text-primary sm:text-[15px]",children:"Trusted Brand"}),(0,n.jsx)("p",{className:"text-[10px] leading-tight text-[#666666]",children:"Choose by 500,000+ parents"})]})]})]})}),(0,n.jsx)(A,{isLoggedIn:!!B}),(0,n.jsx)("div",{className:"items-center justify-center hidden w-full md:flex",children:(0,n.jsxs)("div",{className:"flex flex-col w-full px-12 mt-10 maxContainer",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,n.jsx)("p",{className:"text-[28px] font-extrabold",children:"Best Seller"}),(0,n.jsx)("p",{className:"text-[14px] font-medium text-end tracking-[0.05em] hover:underline hover:cursor-pointer",children:"More Products >"})]}),(0,n.jsx)("hr",{className:"w-full my-4"}),(0,n.jsx)("div",{className:"grid gap-5 sm:grid-cols-1 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:null===(l=_.data)||void 0===l?void 0:l.map((e,t)=>(0,n.jsx)(x.Z,{...(0,g.f)(e)},t))})]})}),(0,n.jsx)("div",{className:"items-center justify-center hidden w-full mt-14 md:flex",children:(0,n.jsxs)("div",{className:"flex flex-col w-full px-12 maxContainer",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,n.jsx)("p",{className:"text-[28px] font-extrabold",children:"New Arrivals"}),(0,n.jsx)("p",{className:"text-[14px] font-medium text-end tracking-[0.05em] hover:underline hover:cursor-pointer",children:"More Products >"})]}),(0,n.jsx)("hr",{className:"w-full my-4"}),(0,n.jsx)("div",{className:"grid gap-5 sm:grid-cols-1 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:null===(a=O.data)||void 0===a?void 0:a.map((e,t)=>(0,n.jsx)(x.Z,{...(0,g.f)(e)},t))})]})}),(0,n.jsx)("div",{className:"items-center justify-center hidden w-full mt-20 md:flex",children:(0,n.jsxs)("div",{className:"flex flex-col w-full px-12 maxContainer",children:[(0,n.jsx)("p",{className:"text-center text-black tracking-[0.2em] font-extrabold text-[34px]",children:"CATEGORIES"}),(0,n.jsx)("div",{className:"grid grid-cols-2 gap-3 mt-4 lg:grid-cols-4",children:Y.map(e=>(0,n.jsxs)(o(),{href:e.href,className:"flex flex-col items-start no-underline group",children:[(0,n.jsx)("div",{className:"w-full overflow-hidden shadow-md",children:(0,n.jsx)("img",{src:e.img,alt:e.title,className:"object-cover w-full h-full",loading:"lazy"})}),(0,n.jsx)("p",{className:"mt-3 text-[21px] font-semibold text-black transition-colors duration-200 group-hover:text-primary",children:e.title})]},e.title))})]})}),(0,n.jsx)("div",{className:"flex items-center justify-center w-full mt-10 md:hidden",children:(0,n.jsxs)("div",{className:"flex flex-col items-center w-full px-2",children:[(0,n.jsx)("p",{className:"text-[25px] font-bold text-black",children:"Categories"}),(0,n.jsx)("div",{className:"flex items-start justify-between w-full gap-3 mt-5",children:Y.map(e=>(0,n.jsxs)(o(),{href:e.href,className:"flex flex-col items-center flex-1 no-underline group",children:[(0,n.jsx)("div",{className:"overflow-hidden rounded-full shadow-sm w-18 h-18",children:(0,n.jsx)("img",{src:e.mobileImg,alt:e.mobileTitle,className:"object-cover w-full h-auto",loading:"lazy"})}),(0,n.jsx)("p",{className:"mt-3 text-[12px] font-semibold text-primary text-center leading-tight whitespace-pre-line",children:e.mobileTitle})]},e.mobileTitle))})]})}),(0,n.jsx)("div",{className:"flex items-center justify-center w-full mt-12 md:hidden maxContainer",children:(0,n.jsxs)("div",{className:"flex flex-col items-center w-full",children:[(0,n.jsx)("p",{className:"text-[25px] font-semibold text-black",children:"Best Sellers"}),(0,n.jsxs)("div",{className:"relative flex justify-center w-full mt-4 overflow-hidden",children:[(0,n.jsx)("div",{className:"overflow-hidden w-[85%]",ref:em.containerRef,style:{touchAction:"pan-y"},...em.bind,children:(0,n.jsx)("div",{className:"flex items-stretch transition-transform duration-300 ease-out",style:{transform:"translate3d(calc(-".concat(50*er,"% + ").concat(em.dragX,"px), 0, 0)"),transitionDuration:em.isDragging?"0ms":void 0},children:en.map((e,t)=>(0,n.jsx)(o(),{href:(0,S.w)(e.id,e.slug),className:"box-border flex-shrink-0 w-1/2 pb-2 pr-6 no-underline",children:(0,n.jsxs)("div",{className:"flex flex-col p-[6px] pb-0 w-full bg-white rounded-xl border shadow-sm border-neutral-200 h-full",children:[(0,n.jsx)("img",{src:e.image,alt:e.title,className:"object-cover w-full h-auto rounded-2xl",loading:"lazy"}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("p",{className:"text-[12px] text-black line-clamp-2 mt-1",children:e.title}),(0,n.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,n.jsx)("span",{className:"text-[13px] font-extrabold text-primary",children:null!=e.discountPrice?(0,x.d)(e.discountPrice):null!=e.originalPrice?(0,x.d)(e.originalPrice):""}),null!=e.discountPrice&&null!=e.originalPrice&&(0,n.jsx)("span",{className:"text-[8px] text-neutral-400 line-through",children:(0,x.d)(e.originalPrice)})]})]})]})},t))})}),(0,n.jsx)("button",{type:"button","aria-label":"Previous best seller",className:"absolute p-2 text-lg -translate-y-1/2 bg-transparent border-none left-1 top-1/2 disabled:opacity-40",onClick:()=>ei(-1),disabled:0===er,children:(0,n.jsx)(C.Z,{size:20})}),(0,n.jsx)("button",{type:"button","aria-label":"Next best seller",className:"absolute p-2 text-lg -translate-y-1/2 bg-transparent border-none right-1 top-1/2 disabled:opacity-40",onClick:()=>ei(1),disabled:er===ea,children:(0,n.jsx)(I.Z,{size:20})})]})]})}),$.length>0&&(0,n.jsx)("div",{className:"flex items-center justify-center w-full mt-14 md:hidden",children:(0,n.jsxs)("div",{className:"flex flex-col w-full maxContainer",children:[(0,n.jsx)("p",{className:"text-[25px] font-semibold text-center text-black",children:"Reviews"}),(0,n.jsxs)("div",{className:"relative px-4 mt-6",children:[(0,n.jsx)("div",{className:"pb-8 overflow-hidden",ref:ep.containerRef,style:{touchAction:"pan-y"},...ep.bind,children:(0,n.jsx)("div",{className:"flex items-stretch transition-transform duration-300 ease-out",style:{transform:"translate3d(calc(-".concat(50*Q,"% + ").concat(ep.dragX,"px), 0, 0)"),transitionDuration:ep.isDragging?"0ms":void 0},children:$.map((e,t)=>(0,n.jsx)("div",{className:"box-border flex-shrink-0 w-1/2 px-1",children:(0,n.jsx)(p,{...e})},t))})}),(0,n.jsx)("button",{type:"button","aria-label":"Previous review",className:"absolute p-2 text-lg -translate-y-1/2 bg-transparent border-none left-3 top-1/2 disabled:opacity-40",onClick:()=>el(-1),disabled:0===Q,children:(0,n.jsx)(C.Z,{size:24})}),(0,n.jsx)("button",{type:"button","aria-label":"Next review",className:"absolute p-2 text-lg -translate-y-1/2 bg-transparent border-none right-3 top-1/2 disabled:opacity-40",onClick:()=>el(1),disabled:Q===et,children:(0,n.jsx)(I.Z,{size:24})})]})]})}),J.length>0&&(0,n.jsx)("div",{className:"flex items-center justify-center w-full mt-8 md:hidden",children:(0,n.jsxs)("div",{className:"flex flex-col w-full maxContainer",children:[(0,n.jsx)("p",{className:"text-[25px] font-semibold text-center text-black",children:"Videos"}),(0,n.jsxs)("div",{className:"relative px-4 mt-6",children:[(0,n.jsx)("div",{className:"overflow-hidden",ref:ex.containerRef,style:{touchAction:"pan-y"},...ex.bind,children:(0,n.jsx)("div",{className:"flex transition-transform duration-300 ease-out",style:{transform:"translate3d(calc(-".concat(100*ec,"% + ").concat(ex.dragX,"px), 0, 0)"),transitionDuration:ex.isDragging?"0ms":void 0},children:J.map((e,t)=>(0,n.jsx)("div",{className:"box-border flex-shrink-0 w-full px-2",children:(0,n.jsx)("div",{className:"flex flex-col h-full shadow-sm rounded-3xl",children:(0,n.jsx)("div",{className:"relative pt-[56.25%] overflow-hidden rounded-3xl",children:(0,n.jsx)("iframe",{className:"absolute top-0 left-0 w-full h-full border-none",src:"https://www.youtube.com/embed/".concat(e.id),title:e.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})},t))})}),(0,n.jsx)("button"
1,{type:"button","aria-label":"Previous video",className:"absolute p-2 text-lg -translate-y-1/2 bg-transparent border-none left-4 top-1/2 disabled:opacity-40",onClick:()=>eu(-1),disabled:0===ec,children:(0,n.jsx)(C.Z,{size:24})}),(0,n.jsx)("button",{type:"button","aria-label":"Next video",className:"absolute p-2 text-lg -translate-y-1/2 bg-transparent border-none right-4 top-1/2 disabled:opacity-40",onClick:()=>eu(1),disabled:ec===ed,children:(0,n.jsx)(I.Z,{size:24})})]})]})}),$.length>0&&(0,n.jsx)("div",{className:"items-center justify-center hidden w-full mt-28 md:flex",children:(0,n.jsxs)("div",{className:"flex flex-col w-full px-12 maxContainer",children:[(0,n.jsx)("p",{className:"text-center text-black tracking-[0.2em] font-extrabold text-[25px]",children:"CUSTOMER REVIEWS"}),(0,n.jsx)("div",{className:"grid grid-cols-1 gap-6 mt-6 md:grid-cols-2 xl:grid-cols-3",children:$.map((e,t)=>(0,n.jsx)(p,{...e},t))})]})}),J.length>0&&(0,n.jsx)("div",{className:"items-center justify-center hidden w-full mt-28 md:flex",children:(0,n.jsxs)("div",{className:"flex flex-col w-full px-12 maxContainer",children:[(0,n.jsx)("p",{className:"text-center text-black tracking-[0.2em] font-extrabold text-[25px]",children:"PRODUCT VIDEOS"}),(0,n.jsx)("div",{className:"grid grid-cols-1 gap-6 mt-6 md:grid-cols-2 xl:grid-cols-3",children:J.map((e,t)=>(0,n.jsxs)("div",{className:"bg-white border rounded-lg border-neutral-300",children:[(0,n.jsx)("div",{className:"relative pt-[56.25%] overflow-hidden rounded-t-lg",children:(0,n.jsx)("iframe",{className:"absolute top-0 left-0 w-full h-full border-0",src:"https://www.youtube.com/embed/".concat(e.id),title:e.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})}),(0,n.jsx)("p",{className:"p-3 mt-3 text-sm text-neutral-700",children:e.title})]},t))})]})})]}),z&&(0,n.jsx)(Z.Z,{open:D,onClose:()=>F(!1),popup:z})]})}},32218:function(e,t,l){"use strict";l.d(t,{IF:function(){return u},Ld:function(){return N},Up:function(){return h},Vj:function(){return j},WG:function(){return v},WK:function(){return f},ZS:function(){return p},du:function(){return s},fN:function(){return d},i6:function(){return o},it:function(){return c},n5:function(){return g},nA:function(){return r},o:function(){return m},r$:function(){return b},rR:function(){return i},ty:function(){return a},wl:function(){return x},xE:function(){return w}});var n=l(5409);let r=e=>n.Z.get("/admin/content/banners",{params:e?{page:e}:{}}),s=e=>n.Z.put("/admin/content/banners",e),a=()=>n.Z.get("/admin/content/popups"),i=e=>n.Z.put("/admin/content/popups",e),c=()=>n.Z.get("/admin/content/testimonials"),o=e=>n.Z.post("/admin/content/testimonials",e),d=(e,t)=>n.Z.put("/admin/content/testimonials/".concat(e),t),u=e=>n.Z.delete("/admin/content/testimonials/".concat(e)),m=e=>n.Z.put("/admin/content/testimonials/reorder",{refIds:e}),x=()=>n.Z.get("/admin/content/videos"),p=e=>n.Z.post("/admin/content/videos",e),h=(e,t)=>n.Z.put("/admin/content/videos/".concat(e),t),f=e=>n.Z.delete("/admin/content/videos/".concat(e)),b=e=>n.Z.put("/admin/content/videos/reorder",{refIds:e}),g=e=>n.Z.get("/public/content/banners",{params:{page:e}}),v=()=>n.Z.get("/public/content/testimonials"),j=()=>n.Z.get("/public/content/videos"),w=e=>n.Z.get("/public/content/popup",{params:{page:e}}),N=e=>n.Z.post("/public/content/popup/".concat(e,"/claim-voucher"))},5211:function(e,t,l){"use strict";l.d(t,{f:function(){return i}});var n=l(99764),r=l(22903);let s=e=>{if(null==e)return;let t=Number(e);return Number.isNaN(t)?void 0:t},a=e=>{if(e.type!==n.kv.VARIABLE||!e.variations||0===e.variations.length)return null;let t=e=>{var t;let l=null!==(t=s(e.price))&&void 0!==t?t:0,n=s(e.discountedPrice);return n&&n>0?n:l},l=e.variations.filter(e=>e.enabled&&t(e)>0);return 0===l.length?null:l.reduce((e,l)=>t(l)<t(e)?l:e)},i=e=>{var t,l;let i,c,o;let d=!1;if(e.type===n.kv.SIMPLE){let t=s(e.price),l=s(e.discountedPrice);i=t&&t>0?t:void 0,d=!!(c=l&&l>0?l:void 0)&&c>0}else if(e.type===n.kv.VARIABLE){let t=a(e);if(t){let e=s(t.price),l=s(t.discountedPrice);i=e&&e>0?e:void 0,d=!!(c=l&&l>0?l:void 0)&&c>0}else{let t=s(e.price),l=s(e.discountedPrice);i=t&&t>0?t:void 0,d=!!(c=l&&l>0?l:void 0)&&c>0}}if("number"==typeof i&&i>0&&"number"==typeof c&&c>0&&c<i){let e=Math.round((i-c)/i*100);e>0&&(o=String(e))}return{image:(0,r.I)(null===(t=e.image)||void 0===t?void 0:t.key),title:e.name,numberOfSales:null!==(l=e.totalSales)&&void 0!==l?l:0,discountPercentage:o,hasOffer:d,originalPrice
1:i,discountPrice:c,outOfStock:e.isOutOfStock,id:e.refId,slug:e.slug}}}},function(e){e.O(0,[5989,4237,7610,8174,9834,8051,9513,4540,928,4298,9406,9830,5790,8754,6980,2888,9774,179],function(){return e(e.s=68046)}),_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.