PageSourceSearch

https://samugiken.com/_next/static/chunks/pages/product/[productRefId]/[slug]-f0acf3968af4acbf.js

js samugiken.com collected 2026-10-07 01:51:31 UTC 33,192 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7140],{57326:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[productRefId]/[slug]",function(){return r(13512)}])},99195:function(e,t,r){"use strict";var n=r(52676);r(32195);var a=r(79884),i=r(42148),l=r(6474),s=r(82948);let o=(0,a.M)({features:i.bV});t.Z=e=>{let{src:t,className:r}=e;return(0,n.jsx)("div",{className:r,style:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden"},children:(0,n.jsx)("div",{style:{position:"absolute",inset:0},children:(0,n.jsx)(o.Provider,{children:(0,n.jsx)(l.U,{children:(0,n.jsx)(s.n,{src:t,playsInline:!0,crossOrigin:"anonymous"})})})})})}},62858:function(e,t,r){"use strict";r.d(t,{z:function(){return n}});let n="030508a8-5ac8-498f-9d9b-c0864efc0ae8"},13512:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return eb},default:function(){return eg}});var n=r(52676),a=r(46980),i=r(63309),l=r(32623),s=r.n(l),o=r(75271);function c(e){let{className:t,images:r,activeImageId:a}=e,[l,c]=(0,o.useState)(0),d=(0,o.useRef)(null),u=(0,o.useRef)(null),[m,f]=(0,o.useState)(void 0),[p,h]=(0,o.useState)(!1),[x,b]=(0,o.useState)(!1),[g,v]=(0,o.useState)(!0),[y,w]=(0,o.useState)(!1),[j,k]=(0,o.useState)(!1),N=(0,o.useRef)(!1),I=(0,o.useRef)(0),P=(0,o.useRef)(0),S=(0,o.useRef)(0),z=(0,o.useRef)(0);(0,o.useEffect)(()=>{let e=()=>{d.current&&f(d.current.getBoundingClientRect().height)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,o.useEffect)(()=>{let e=()=>{h(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let V=(0,o.useCallback)(()=>{let e=u.current;if(e){if(p){let{scrollTop:t,scrollHeight:r,clientHeight:n}=e,a=r>n+1;if(b(a),!a){v(!0),w(!0);return}v(t<=1),w(t+n>=r-1)}else{let{scrollLeft:t,scrollWidth:r,clientWidth:n}=e,a=r>n+1;if(b(a),!a){v(!0),w(!0);return}v(t<=1),w(t+n>=r-1)}}},[p]);(0,o.useEffect)(()=>{V()},[V,r.length,m]);let C=()=>{N.current&&(N.current=!1,k(!1))};return(0,o.useEffect)(()=>{if(!a)return;let e=r.findIndex(e=>e.id===a);e>=0&&c(e)},[a,r]),(0,n.jsx)("div",{className:t,children:(0,n.jsxs)("div",{className:"flex flex-col gap-3 md:grid md:grid-cols-[96px_1fr]",children:[(0,n.jsxs)("div",{className:"relative order-2 md:order-none",children:[x&&!g&&(p?(0,n.jsx)("div",{className:"absolute inset-x-0 top-0 z-10 h-10 pointer-events-none bg-gradient-to-b from-white to-white/0"}):(0,n.jsx)("div",{className:"absolute inset-y-0 left-0 z-10 w-10 pointer-events-none bg-gradient-to-r from-white to-white/0"})),x&&!y&&(p?(0,n.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-10 h-10 pointer-events-none bg-gradient-to-t from-white to-white/0"}):(0,n.jsx)("div",{className:"absolute inset-y-0 right-0 z-10 w-10 pointer-events-none bg-gradient-to-l from-white to-white/0"})),(0,n.jsx)("div",{ref:u,onScroll:()=>{V()},onMouseDown:e=>{let t=u.current;t&&(e.preventDefault(),N.current=!0,k(!0),I.current=e.clientX,P.current=e.clientY,S.current=t.scrollLeft,z.current=t.scrollTop)},onMouseMove:e=>{let t=u.current;if(!t||!N.current)return;e.preventDefault();let r=e.clientX-I.current,n=e.clientY-P.current;t.scrollLeft=S.current-r,t.scrollTop=z.current-n},onMouseUp:C,onMouseLeave:C,className:(0,i.cn)("flex gap-2 overflow-x-auto md:flex-col md:overflow-y-auto no-scrollbar select-none",j?"cursor-grabbing":"cursor-grab"),style:{maxHeight:m},children:r.map((e,t)=>(0,n.jsx)("button",{type:"button",onClick:()=>c(t),className:(0,i.cn)("relative flex-shrink-0 w-24 h-24 md:w-[88px] md:h-[88px] rounded border bg-white cursor-pointer",l===t?"border-2 border-red-500":"border-gray-200"),"aria-label":"View image ".concat(t+1),children:(0,n.jsx)("div",{className:"w-full h-full overflow-hidden bg-white rounded",children:(0,n.jsx)(s(),{src:e.url,alt:"Product thumbnail",width:96,height:96,draggable:!1,onDragStart:e=>e.preventDefault(),className:"object-contain w-full h-full pointer-events-none select-none"})})},"".concat(e.id,"-").concat(t)))})]}),(0,n.jsx)("div",{ref:d,className:"relative w-full overflow-hidden bg-white border border-gray-200 rounded aspect-square",children:(0,n.jsx)(s(),{src:r[l].url,alt:"Product image",f
1ill:!0,sizes:"(max-width: 768px) 100vw, 50vw",draggable:!1,onDragStart:e=>e.preventDefault(),className:"object-contain select-none"})})]})})}var d=r(84020),u=r(15036),m=r(99508),f=r(78051),p=r(58929),h=r(79406);function x(e){let{title:t,options:r,value:a,onChange:i}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("p",{className:"text-sm font-medium",children:t}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(e=>(0,n.jsx)(f.ZP,{type:a===e.value?"primary":"default",disabled:e.disabled,onClick:()=>i(a===e.value?null:e.value),children:e.label},e.value))})]})}var b=r(85761),g=r(98774),v=r(42720),y=r(99764),w=r(5317),j=r(85304),k=r(69834),N=r(49734),I=r(15530),P=r(54030),S=e=>{let{productRefId:t,isLoggedIn:r}=e,{isClaimed:a,isUsedUp:i,handleClaim:l,claimingRefId:s}=(0,I.b)(r),{data:o}=(0,k.a)({queryKey:["product-claimable-coupons",t],queryFn:()=>(0,N.tr)({productRefId:t,limit:12}).then(e=>e.data),enabled:!!t,staleTime:6e4}),c=null==o?void 0:o.filter(e=>!i(e.refId));return c&&0!==c.length?(0,n.jsx)("div",{className:"flex gap-3 overflow-x-auto pb-4",children:c.map(e=>(0,n.jsx)("div",{className:"shrink-0",style:{width:152,height:85.60000000000001},children:(0,n.jsx)("div",{style:{transform:"scale(".concat(.8,")"),transformOrigin:"top left"},children:(0,n.jsx)(P.Z,{coupon:e,claimed:a(e.refId),loading:s===e.refId,onClaim:()=>l(e.refId)})})},e.refId))}):null},z=r(33561),V=r(71030),C=r(33028),_=r(62581),Z=r(76517);let R=e=>{if(null==e)return;let t=Number(e);return Number.isNaN(t)?void 0:t};function M(e){let{className:t,title:r,productRefId:a,price:l,discountPrice:s,totalSales:c,rating:k,attributes:N,variations:I,type:P,onVariantSelected:M,onAddToCartSuccess:A}=e,{addToCartAsync:E,addingToCart:F}=(0,w.j)(),{user:L}=(0,j.a)(),O=(0,z.useRouter)(),[Y,D]=(0,o.useState)(1),[B,q]=(0,o.useState)(!1),[T,X]=(0,o.useState)({}),W=Object.keys(T).length===N.length,G=!W,U=(0,o.useCallback)(e=>{var t,r;if(P===y.kv.VARIABLE){if(!e)return 0;let r=R(e.discountedPrice);return r&&r>0?r:null!==(t=R(e.price))&&void 0!==t?t:0}let n=R(s);return n&&n>0?n:null!==(r=R(l))&&void 0!==r?r:0},[P,s,l]),H=(0,V.D)({mutationFn:C.M,onSuccess:e=>{O.push("/checkout?type=session&sessionId=".concat(e.data.sessionId))},onError:()=>{Z.Am.error("Unable to proceed. Please try again.")}}),Q=async()=>{if(!L){q(!0);return}if(!a)return;let e=null==I?void 0:I.find(e=>e.attributes.every(e=>T[e.attributeValue.key]===e.attributeValue.value));if(0>=U(e)){Z.Am.error("Something went wrong. Please contact admin.");return}try{var t;await H.mutateAsync({productRefId:a,variationRefId:null!==(t=null==e?void 0:e.refId)&&void 0!==t?t:null})}catch(e){}},K=e=>!e.isOutOfStock&&e.stockNumber>0&&e.enabled,J=(e,t)=>{let r=e.name;return T[r]===t||!I||0===I.length||I.some(e=>!!(K(e)&&e.attributes.some(e=>e.attributeValue.key===r&&e.attributeValue.value===t))&&e.attributes.every(e=>{if(e.attributeValue.key===r)return!0;let t=T[e.attributeValue.key];return!t||t===e.attributeValue.value}))},$=(e,t)=>{let r=e.name;if(null===t){if(!T[r])return;let e={...T};delete e[r],X(e),null==M||M(void 0);return}let n=e.values.find(e=>e.value===t);if(!n)return;let a={...T,[r]:n.value};if(X(a),Object.keys(a).length===N.length){let e=null==I?void 0:I.find(e=>e.attributes.every(e=>a[e.attributeValue.key]===e.attributeValue.value));null==M||M(e)}},ee=(0,o.useMemo)(()=>{var e;return P===y.kv.VARIABLE&&I&&0!==I.length&&W&&null!==(e=I.find(e=>e.attributes.every(e=>T[e.attributeValue.key]===e.attributeValue.value)))&&void 0!==e?e:null},[P,I,W,T]),et=(0,o.useMemo)(()=>{if(P!==y.kv.VARIABLE||!I||0===I.length||W)return null;let e=I.filter(e=>e.enabled&&U(e)>0);return 0===e.length?null:e.reduce((e,t)=>U(t)<U(e)?t:e)},[P,I,W,U]),er=(0,o.useMemo)(()=>{if(P===y.kv.VARIABLE&&I&&I.length>0){if(W){let e=R(null==ee?void 0:ee.price);return e&&e>0?e:U(null!=ee?ee:void 0)}if(!et)return l;let e=R(et.price);return e&&e>0?e:U(et)}return l},[l,P,W,I,ee,et,U]),en=(0,o.useMemo)(()=>{if(P===y.kv.VARIABLE&&I&&I.length>0){if(W){let e=R(null==ee?void 0:ee.discountedPrice);return e&&e>0&&e<er?e:null}if(!et)return null;let e=R(et.discountedPrice);return e&&e>0&&e<er?e:null}return null!=s?s:null},[s,P,W,I,er,ee,et]);return(0,n.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-4",t),children:[(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("h1",{className:"text-xl font-medium leading-snug md:text-2xl",children:r}),(0,n.jsx)("div",{className:"text-xl font-bold md:text-2xl",children:en?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"mr-2 text-red-500",children:["RM",null==en?void 0:en.toFixed(2)]}),(0,n.jsxs)("span",{className:"text-lg text-gray-300 line-through",children:["RM",null==er?void 0:er.toFixed(2)]})]}):(0,n.jsxs)("span",{children:["RM",null==er?void 0:er.toFixed(2)]})}),k&&k>0?(0,n.jsx)(d.Z,{value:k,allowHalf:!0,disabled:!0}):(0,n.jsx)("span",{className:"text-sm text-neutral-500",children:"No reviews yet"}),(0,n.jsxs)("span",{className:"text-sm text-neutral-500",children:[null!=c?c:0," Sold"]})]}),N.map(e=>{let t=e.name;return(0,n.jsx)(x,{title:e.name,options:e.values.map(t=>({label:t.value,value:t.value,disabled:!J(e,t.value)})),value:T[t]||null,onChange:t=>$(e,t)},e.refId)}),(0,n.jsx)(u.Z,{className:"!my-2"}),(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsxs)(m.Z.Compact,{children:[(0,n.jsx)(f.ZP,{icon:(0,n.jsx)(b.Z,{size:20,strokeWidth:2.5}),size:"large",onClick:()=>D(Math.max(1,Y-1)),disabled:Y<=1}),(0,n.jsx)(p.Z,{min:1,value:Y,onChange:e=>D("number"==typeof e?e:1),controls:!1,"aria-label":"Quantity",size:"large"}),(0,n.jsx)(f.ZP,{icon:(0,n.jsx)(g.Z,{size:20,strokeWidth:2.5}),size:"large",onClick:()=>D(Math.max(1,Y+1)),disabled:Y>=100})]})}),(0,n.jsx)(S,{productRefId:a,isLoggedIn:!!L}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsxs)(f.ZP,{type:"primary",size:"large",danger:!0,className:"!font-semibold",block:!0,disabled:G||F,loading:F,onClick:async()=>
1{if(!a)return;let e=null==I?void 0:I.find(e=>e.attributes.every(e=>T[e.attributeValue.key]===e.attributeValue.value));if(0>=U(e)){Z.Am.error("Something went wrong. Please contact admin.");return}try{var t;await E(a,null!==(t=null==e?void 0:e.refId)&&void 0!==t?t:null,Y),null==A||A();let n=N.map(e=>{var t;return"".concat(e.name,": ").concat(null!==(t=T[e.name])&&void 0!==t?t:"")}).filter(e=>!1===e.endsWith(": ")).join(" / ");Z.Am.success("Added ".concat(r).concat(n?" (".concat(n,")"):""," \xd7 ").concat(Y," to cart"),{position:"top-center"})}catch(e){Z.Am.error("Could not add to cart. Please try again.")}},children:[(0,n.jsx)(v.Z,{size:18,strokeWidth:2.5}),(0,n.jsx)("span",{children:"Add to cart"})]}),(0,n.jsx)(f.ZP,{size:"large",className:"!font-semibold",block:!0,disabled:G,loading:H.isPending,onClick:Q,children:"Buy Now"})]}),(0,n.jsx)(h.Z,{title:"Login Required",open:B,onCancel:()=>q(!1),footer:[(0,n.jsx)(f.ZP,{onClick:()=>q(!1),children:"Cancel"},"cancel"),(0,n.jsx)(f.ZP,{type:"primary",onClick:()=>{let e=encodeURIComponent(window.location.pathname);O.push("".concat(_.Z.LOGIN,"?redirect=").concat(e))},children:"Go to Login"},"login")],children:"Please login to use Buy Now."})]})}var A=r(22903),E=r(81890),F=r(39245),L=r(47645),O=r(47639),Y=r(92056);r(50960),r(31618);var D=r(18316),B=r(4475),q=r(9059),T=r(96516),X=r(97897),W=r(18374),G=r(52043),U=r.n(G),H=r(43027),Q=r(15831),K=r(99195),J=e=>{var t,r;let{productRefId:a}=e,[i,l]=(0,o.useState)(1),[s,c]=(0,o.useState)(null),u=(0,k.a)({queryKey:["public","product-reviews",a,i],queryFn:async()=>(await (0,Q.mk)({productId:a,page:i,pageSize:5,sortField:"reviewedAt",sortOrder:"desc"})).data,placeholderData:B.Wk,enabled:!!a});if(u.isPending)return(0,n.jsx)("div",{className:"flex justify-center py-10",children:(0,n.jsx)(q.Z,{})});let m=(null===(t=u.data)||void 0===t?void 0:t.rows)||[],f=(null===(r=u.data)||void 0===r?void 0:r.total)||0;return f?(0,n.jsxs)("div",{className:"flex flex-col gap-6",children:[m.map(e=>(0,n.jsxs)("div",{className:"flex flex-col gap-3 p-4 bg-white border rounded-xl border-neutral-200",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-semibold text-neutral-800",children:e.name}),(0,n.jsx)(d.Z,{value:e.rating,allowHalf:!0,disabled:!0,className:"!text-sm"})]}),(0,n.jsx)("p",{className:"text-xs text-neutral-500",children:U()(e.reviewedAt).format("YYYY-MM-DD")})]}),e.description&&(0,n.jsx)("p",{className:"leading-relaxed text-neutral-700",children:e.description}),(e.images.length>0||e.video)&&(0,n.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,n.jsx)(X.Z.PreviewGroup,{children:e.images.map(e=>(0,n.jsx)(X.Z,{src:(0,A.I)(e.key),alt:e.name,rootClassName:"!block !w-20 !h-20 sm:!w-24 sm:!h-24 md:!w-28 md:!h-28 overflow-hidden rounded-md",className:"!w-full !h-full object-cover",loading:"lazy"},e.refId))}),e.video&&(0,n.jsxs)("button",{type:"button",onClick:()=>c((0,A.I)(e.video.key)),className:"relative w-20 h-20 overflow-hidden rounded-md cursor-pointer bg-neutral-900 sm:w-24 sm:h-24 md:w-28 md:h-28","aria-label":"Play review video",children:[(0,n.jsx)("video",{src:(0,A.I)(e.video.key),muted:!0,playsInline:!0,preload:"metadata",className:"object-cover w-full h-full"}),(0,n.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)("span",{className:"flex items-center justify-center rounded-full bg-black/60 p-2",children:(0,n.jsx)(H.Z,{size:18,className:"text-white",fill:"currentColor"})})})]})]})]},e.refId)),(0,n.jsx)(h.Z,{open:!!s,onCancel:()=>c(null),footer:null,centered:!0,destroyOnClose:!0,width:720,title:null,children:s&&(0,n.jsx)(K.Z,{src:s,className:"w-full"})}),(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(W.Z,{current:i,pageSize:5,total:f,onChange:l,showSizeChanger:!1})})]}):(0,n.jsx)(T.Z,{description:"No reviews yet"})};let $=e=>{let{children:t}=e,r=(0,o.useRef)(null),[a,i]=(0,o.useState)(!1),[l,s]=(0,o.useState)(!1),[c,d]=(0,o.useState)(null);(0,o.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>{let t=8*(parseFloat(getComputedStyle(e).lineHeight)||24);d(t),s(e.scrollHeight>t+1)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let u=!a&&l;
1return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{ref:r,style:{maxHeight:u&&c?c:void 0},className:"relative overflow-hidden transition-[max-height] duration-300 ease-in-out",children:[t,(0,n.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-white to-transparent transition-opacity duration-300 ".concat(u?"opacity-100":"opacity-0")})]}),l&&(0,n.jsxs)("button",{type:"button",onClick:()=>i(e=>!e),"aria-expanded":a,className:"group mt-3 inline-flex items-center gap-1.5 rounded-full border border-neutral-200 bg-white px-4 py-1.5 text-sm font-medium text-neutral-700 shadow-sm transition-all hover:border-neutral-300 hover:bg-neutral-50 hover:text-neutral-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-neutral-300",children:[a?"Show less":"Show more",(0,n.jsx)(D.Z,{size:16,className:"transition-transform duration-300 ".concat(a?"rotate-180":"")})]})]})},ee=e=>{try{let t=new URL(e);if(t.hostname.includes("youtu.be")){let e=t.pathname.replace("/","");return"https://www.youtube.com/embed/".concat(e)}if(t.hostname.includes("youtube.com")){let e=t.searchParams.get("v");if(e)return"https://www.youtube.com/embed/".concat(e);t.pathname.startsWith("/embed/")}return e}catch(t){return e}},et=e=>{try{let t=new URL(e);if(!t.hostname.includes("tiktok.com"))return e;let r=t.pathname.split("/").filter(Boolean),n=r.findIndex(e=>"video"===e);if(-1!==n&&r[n+1])return r[n+1];return""}catch(e){return""}},er=e=>{let t=et(e);return t?"https://www.tiktok.com/embed/".concat(t):e},en=e=>{try{let t=new URL(e);if(!t.hostname.includes("instagram.com"))return e;let r=t.pathname.split("/").filter(Boolean),n=r.findIndex(e=>"reel"===e||"reels"===e||"p"===e),a=-1!==n?r[n+1]:void 0;if(a){let e=r[n];return"https://www.instagram.com/".concat(e,"/").concat(a,"/embed")}return e}catch(t){return e}};var ea=e=>{let{description:t,descriptionVideo:r,descriptionImages:a,warranty:i,faqs:l,youtubeVideos:c,instagramVideos:d,tiktokVideos:u,productRefId:m}=e,f=(0,o.useMemo)(()=>(l||[]).sort((e,t)=>e.sequence-t.sequence).map(e=>({key:e.refId,label:e.question,children:(0,n.jsx)("div",{className:"leading-relaxed text-neutral-700",children:e.answer?(0,E.ZP)(e.answer):null})})),[l]),p=(0,o.useMemo)(()=>{var e,t,r;return(null!==(e=null==c?void 0:c.length)&&void 0!==e?e:0)+(null!==(t=null==d?void 0:d.length)&&void 0!==t?t:0)+(null!==(r=null==u?void 0:u.length)&&void 0!==r?r:0)>0},[c,d,u]),h=(0,o.useMemo)(()=>{var e,t,r;return p?(0,n.jsxs)("div",{className:"flex flex-col gap-10",children:[(null!==(e=null==c?void 0:c.length)&&void 0!==e?e:0)>0?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-2xl font-semibold",children:"YouTube Videos"}),(0,n.jsx)(O.tq,{className:"mt-2",spaceBetween:12,navigation:!0,breakpoints:{0:{slidesPerView:1},640:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3},1280:{slidesPerView:4}},modules:[Y.W_],children:null==c?void 0:c.map(e=>{var t;return(0,n.jsx)(O.o5,{children:(0,n.jsxs)("div",{className:"flex flex-col p-3 mb-2 bg-white border rounded-xl border-neutral-200",children:[(0,n.jsx)("div",{className:"mb-2 ml-2 text-[15px] font-semibold text-neutral-800 truncate",children:e.title}),(0,n.jsx)("div",{className:"relative w-full overflow-hidden rounded-lg aspect-video",children:(0,n.jsx)("iframe",{className:"absolute top-0 left-0 w-full h-full rounded-lg",src:ee(null!==(t=null==e?void 0:e.url)&&void 0!==t?t:e.link),title:e.title,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})]})},e.refId)})})]}):null,(null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0)>0?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-2xl font-semibold",children:"TikTok Videos"}),(0,n.jsx)(O.tq,{className:"mt-2",spaceBetween:12,navigation:!0,breakpoints:{0:{slidesPerView:1},640:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3},1280:{slidesPerView:4}},modules:[Y.W_],children:null==u?void 0:u.map(e=>{var t;return(0,n.jsx)(O.o5,{children:(0,n.jsxs)("div",{className:"flex flex-col p-3 bg-white border rounded-xl border-neutral-200",children:[(0,n.jsx)("div",{className:"mb-2 ml-2 text-[15px] font-semibold text-neutral-800 truncate",children:e.title}),(0,n.jsx)("div",{className:"overflow-hidden relative w-full rounded-lg aspect-[9/15] sm:aspect-[9/13] md:aspect-[9/23] lg:aspect-[11/27] xl:aspect-[9/22]",children:(0,n.jsx)("iframe",{className:"absolute top-0 left-0 w-full h-full border-0",src:er(null!==(t=null==e?void 0:e.url)&&void 0!==t?t:e.link),title:e.title,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,scrolling:"no"})})]})},e.refId)})})]}):null,(null!==(r=null==d?void 0:d.length)&&void 0!==r?r:0)>0?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-2xl font-semibold",children:"Instagram Videos"}),(0,n.jsx)(O.tq,{className:"mt-2",spaceBetween:12,navigation:!0,breakpoints:{0:{slidesPerView:1},640:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3},1280:{slidesPerView:4}},modules:[Y.W_],children:null==d?void 0:d.map(e=>{var t;return(0,n.jsx)(O.o5,{children:(0,n.jsxs)("div",{className:"flex flex-col p-3 bg-white border rounded-xl border-neutral-200",children:[(0,n.jsx)("div",{className:"mb-2 ml-2 text-[15px] font-semibold text-neutral-800 truncate",children:e.title}),(0,n.jsx)("div",{className:"overflow-hidden relative w-full rounded-lg aspect-[9/16] sm:aspect-[9/15] md:aspect-[9/17] lg:aspect-[11/23]",children:(0,n.jsx)("iframe",{className:"absolute top-0 left-0 w-full h-full border-0",src:en(null!==(t=null==e?void 0:e.url)&&void 0!==t?t:e.link),title:e.title,loading:"lazy",scrolling:"no",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})]})},e.refId)})})]}):null]}):null},[p,c,u,d]),x=(0,o.useMemo)(()=>{let e=[{key:"description",label:"Description",children:(0,n.jsxs)("div",{className:"leading-relaxed text-neutral-700",children:[(0,n.jsx)($,{children:t}),a&&a.length>0&&(0,n.jsx)("div",{className:"flex flex-col mt-7",children:[...a].sort((e,t)=>
1e.sequence-t.sequence).map(e=>(0,n.jsx)(s(),{src:(0,A.I)(e.key),alt:e.title||"",width:0,height:0,sizes:"100vw",className:"block w-full h-auto"},e.refId))}),r&&(0,n.jsx)("div",{className:"flex items-center justify-center pt-5",children:(0,n.jsx)("div",{className:"w-[640px] max-w-[640px] h-[360px] max-h-[360px]",children:(0,n.jsx)("iframe",{className:"w-full h-full border-0 rounded-lg",src:ee(r),title:r,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})]})},{key:"warranty",label:"Warranty",children:(0,n.jsx)("div",{className:"leading-relaxed text-neutral-700",children:i})},{key:"faqs",label:"FAQ's",children:(0,n.jsx)("div",{children:(0,n.jsx)(F.Z,{accordion:!0,items:f})})}];return p&&e.push({key:"videos",label:"Videos",children:h}),e.push({key:"reviews",label:"Reviews",children:(0,n.jsx)(J,{productRefId:m})}),e},[t,r,a,i,f,p,h,m]);return(0,n.jsx)("div",{className:"md:col-span-2",children:(0,n.jsx)(L.Z,{items:x})})},ei=r(50303),el=r.n(ei),es=r(27026),eo=r.n(es),ec=r(57065),ed=()=>{let[e,t]=(0,o.useState)(!1),[r,a]=(0,o.useState)({x:0,y:0}),[i,l]=(0,o.useState)(!1),s=(0,o.useRef)({startX:0,startY:0,baseX:0,baseY:0,moved:!1});return e?null:(0,n.jsxs)("div",{style:{transform:"translate(".concat(r.x,"px, calc(-50% + ").concat(r.y,"px))")},className:"jsx-36586bb5f0c47d13 cherry-widget fixed right-4 top-1/2 z-[60] md:right-6",children:[(0,n.jsxs)(eo(),{href:"/games/cherry","aria-label":"Play Cherry Mix & Match",draggable:!1,onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId),s.current={startX:e.clientX,startY:e.clientY,baseX:r.x,baseY:r.y,moved:!1},l(!0)},onPointerMove:e=>{if(!i)return;let t=e.clientX-s.current.startX,r=e.clientY-s.current.startY;(Math.abs(t)>6||Math.abs(r)>6)&&(s.current.moved=!0),a({x:s.current.baseX+t,y:s.current.baseY+r})},onPointerUp:e=>{e.currentTarget.releasePointerCapture(e.pointerId),l(!1)},onClick:e=>{s.current.moved&&e.preventDefault()},style:{touchAction:"none",cursor:i?"grabbing":"grab"},className:"cherry-widget__card group relative flex select-none items-center gap-2 rounded-full border-2 border-[#F6C744] bg-white/95 py-1.5 pl-1.5 pr-3 no-underline shadow-[0_10px_24px_-8px_rgba(242,104,62,0.45)] backdrop-blur-sm transition-shadow hover:no-underline ".concat(i?"":"hover:shadow-[0_14px_30px_-8px_rgba(242,104,62,0.55)]"),children:[(0,n.jsx)("div",{className:"jsx-36586bb5f0c47d13 cherry-widget__bob shrink-0",children:(0,n.jsx)("img",{src:"/assets/games/cherry/mix and match/Cherry.png",alt:"Cherry",draggable:!1,className:"jsx-36586bb5f0c47d13 h-9 w-9 object-contain"})}),(0,n.jsxs)("span",{style:{fontFamily:"var(--font-super-bubble), system-ui"},className:"jsx-36586bb5f0c47d13 flex items-baseline gap-0.5 text-sm leading-none",children:[(0,n.jsx)("span",{className:"jsx-36586bb5f0c47d13 text-[#F0513E]",children:"Mix"}),(0,n.jsx)("span",{className:"jsx-36586bb5f0c47d13 text-[#F6C744]",children:"&"}),(0,n.jsx)("span",{className:"jsx-36586bb5f0c47d13 text-[#6FC7C0]",children:"Match"})]}),(0,n.jsx)("span",{className:"jsx-36586bb5f0c47d13 ml-0.5 inline-flex h-5 w-5 items-center justify-center rounded-full bg-[#F0513E] text-[11px] font-bold text-white transition-transform duration-300 group-hover:translate-x-0.5",children:"→"})]}),(0,n.jsx)("button",{type:"button",onPointerDown:e=>e.stopPropagation(),onClick:e=>{e.preventDefault(),t(!0)},"aria-label":"Dismiss",className:"jsx-36586bb5f0c47d13 absolute -right-1.5 -top-1.5 z-10 flex h-5 w-5 items-center justify-center rounded-full border border-neutral-200 bg-white text-neutral-400 shadow-sm transition-colors hover:text-neutral-700",children:(0,n.jsx)(ec.Z,{size:12})}),(0,n.jsx)(el(),{id:"36586bb5f0c47d13",children:".cherry-widget.jsx-36586bb5f0c47d13{-webkit-animation:cherry-widget-in.45s cubic-bezier(.34,1.56,.64,1)both;-moz-animation:cherry-widget-in.45s cubic-bezier(.34,1.56,.64,1)both;-o-animation:cherry-widget-in.45s cubic-bezier(.34,1.56,.64,1)both;animation:cherry-widget-in.45s cubic-bezier(.34,1.56,.64,1)both}.cherry-widget__card.jsx-36586bb5f0c47d13{-webkit-animation:cherry-pop.45s cubic-bezier(.34,1.56,.64,1)both;-moz-animation:cherry-pop.45s cubic-bezier(.34,1.56,.64,1)both;-o-animation:cherry-pop.45s cubic-bezier(.34,1.56,.64,1)both;animation:cherry-pop.45s cubic-bezier(.34,1.56,.64,1)both}.cherry-widget__bob.jsx-36586bb5f0c47d13{-webkit-animation:cherry-bob 3s ease-in-out infinite;-moz-animation:cherry-bob 3s ease-in-out infinite;-o-animation:cherry-bob 3s ease-in-out infinite;animation:cherry-bob 3s ease-in-out infinite}@-webkit-keyframes cherry-widget-in{from{opacity:0}
1to{opacity:1}}@-moz-keyframes cherry-widget-in{from{opacity:0}to{opacity:1}}@-o-keyframes cherry-widget-in{from{opacity:0}to{opacity:1}}@keyframes cherry-widget-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes cherry-pop{from{-webkit-transform:scale(.85);transform:scale(.85)}to{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes cherry-pop{from{-moz-transform:scale(.85);transform:scale(.85)}to{-moz-transform:scale(1);transform:scale(1)}}@-o-keyframes cherry-pop{from{-o-transform:scale(.85);transform:scale(.85)}to{-o-transform:scale(1);transform:scale(1)}}@keyframes cherry-pop{from{-webkit-transform:scale(.85);-moz-transform:scale(.85);-o-transform:scale(.85);transform:scale(.85)}to{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}@-webkit-keyframes cherry-bob{0%,100%{-webkit-transform:translatey(0)rotate(-3deg);transform:translatey(0)rotate(-3deg)}50%{-webkit-transform:translatey(-3px)rotate(3deg);transform:translatey(-3px)rotate(3deg)}}@-moz-keyframes cherry-bob{0%,100%{-moz-transform:translatey(0)rotate(-3deg);transform:translatey(0)rotate(-3deg)}50%{-moz-transform:translatey(-3px)rotate(3deg);transform:translatey(-3px)rotate(3deg)}}@-o-keyframes cherry-bob{0%,100%{-o-transform:translatey(0)rotate(-3deg);transform:translatey(0)rotate(-3deg)}50%{-o-transform:translatey(-3px)rotate(3deg);transform:translatey(-3px)rotate(3deg)}}@keyframes cherry-bob{0%,100%{-webkit-transform:translatey(0)rotate(-3deg);-moz-transform:translatey(0)rotate(-3deg);-o-transform:translatey(0)rotate(-3deg);transform:translatey(0)rotate(-3deg)}50%{-webkit-transform:translatey(-3px)rotate(3deg);-moz-transform:translatey(-3px)rotate(3deg);-o-transform:translatey(-3px)rotate(3deg);transform:translatey(-3px)rotate(3deg)}}@media(prefers-reduced-motion:reduce){.cherry-widget.jsx-36586bb5f0c47d13,.cherry-widget__card.jsx-36586bb5f0c47d13,.cherry-widget__bob.jsx-36586bb5f0c47d13{-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}}"})]})},eu=r(62858),em=r(46035),ef=r(48588);let ep=e=>e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim(),eh=e=>{let t=e.description?ep(e.description).substring(0,155):"Buy ".concat(e.name," at Samu Giken"),r=e.discountedPrice?"Now RM ".concat(e.discountedPrice," (was RM ").concat(e.price,")"):"Price: RM ".concat(e.price);return"".concat(t,"... ").concat(r,". ").concat(e.isOutOfStock?"Currently out of stock.":"In stock and ready to ship.")},ex=(e,t)=>{let r=Number(null!=t?t:0);return r>0?r:Number(null!=e?e:0)};var eb=!0;function eg(e){var t,i,l;let{user:s,product:d}=e,[u,m]=(0,o.useState)(void 0),[f,p]=(0,o.useState)(void 0),h=(0,o.useCallback)((e,t)=>{r.e(8579).then(r.t.bind(r,68579,23)).then(e=>e.default).then(r=>{r.track("ViewContent",{content_ids:[e],content_name:d.name,content_type:"product",value:t,currency:"MYR"})}).catch(()=>{})},[d.name]);(0,o.useEffect)(()=>{if(d.type===y.kv.VARIABLE){var e;let t=null===(e=d.variations)||void 0===e?void 0:e[0];if(t){h(t.sku,ex(t.price,t.discountedPrice));return}}h(d.sku,ex(d.price,d.discountedPrice))},[d,h]);let x=(0,o.useMemo)(()=>{if(d.type===y.kv.VARIABLE){var e;let t=null!=f?f:null===(e=d.variations)||void 0===e?void 0:e[0];if(t)return{sku:t.sku,value:ex(t.price,t.discountedPrice)}}return{sku:d.sku,value:ex(d.price,d.discountedPrice)}},[d,f]),b=[{id:d.image.refId,url:(0,A.I)(d.image.key),name:d.image.name},...((null==d?void 0:d.galleries)||[]).map(e=>({id:e.refId,url:(0,A.I)(e.key),name:e.name})),...((null==d?void 0:d.variations)||[]).map(e=>({id:e.image.refId,url:(0,A.I)(e.image.key),name:e.image.name}))],g=(0,o.useMemo)(()=>{let e=(null==d?void 0:d.description)||"";return e?(0,E.ZP)(e):null},[null==d?void 0:d.description]),v=(0,o.useMemo)(()=>{let e=(null==d?void 0:d.warranty)||"";return e?(0,E.ZP)(e):null},[null==d?void 0:d.warranty]),w=(0,ef.w)(d.refId,d.slug),j=(0,A.I)(d.image.key),k=eh(d),N="".concat(d.name).concat(d.discountedPrice?" - Special Offer":""),I=Number(d.rating)||0,P=I>0?1:0,S=d.refId===eu.z;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(em.PB,{title:N,description:k,canonical:w,openGraph:{type:"product",url:w,title:N,description:k,images:[{url:j,width:800,height:800,alt:d.name},...(null===(t=d.galleries)||void 0===t?void 0:t.slice(0,3).map(e=>({url:(0,A.I)(e.key),width:800,height:800,alt:d.name})))||[]],siteName:"Samu Giken"},twitter:{handle:"@samugiken",site:"@samugiken",cardType:"summary_large_image"},additionalMetaTags:[{name:"keywords",content:"".concat(d.name,", ").concat(null===(i=d.categories)||void 0===i?void 0:i.map(e=>e.name).join(", "),", Samu Giken, buy online")},{property:"product:price:amount",content:String(d.discountedPrice||d.price)},{property:"product:price:currency",content:"MYR"},{property:"product:availability",content:d.isOutOfStock?"out of stock":"in stock"},{property:"product:condition",content:"new"}]}),(0,n.jsx)(em.Qb,{productName:d.name,images:[j,...(null===(l=d.galleries)||void 0===l?void 0:l.map(e=>(0,A.I)(e.key)))||[]],description:ep(d.description||d.name),brand:"Samu Giken",sku:d.sku,offers:[{price:String(d.discountedPrice||d.price),priceCurrency:"MYR",priceValidUntil:new Date(new Date().setFullYear(new Date().getFullYear()+1)).toISOString(),itemCondition:"https://schema.org/NewCondition",availability:d.isOutOfStock?"https://schema.org/OutOfStock":"https://schema.org/InStock",url:w,seller:{name:"Samu Giken"}}],aggregateRating:P>
10?{ratingValue:String(I),reviewCount:String(P)}:void 0}),(0,n.jsx)(em.gR,{itemListElements:[{position:1,name:"Home",item:"https://samugiken.com"},{position:2,name:"Products",item:"".concat("https://samugiken.com","/products")},...d.categories&&d.categories.length>0?[{position:3,name:d.categories[0].name,item:"".concat("https://samugiken.com","/categories/").concat(d.categories[0].slug)}]:[],{position:d.categories&&d.categories.length>0?4:3,name:d.name,item:w}]}),(0,n.jsxs)(a.Z,{user:s,children:[(0,n.jsx)("div",{className:"px-4 maxContainer",children:(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-6 my-3 w-full md:grid-cols-2 md:gap-10 md:my-6",children:[(0,n.jsx)(c,{images:b,activeImageId:u}),(0,n.jsx)(M,{className:"px-2 md:px-0",productRefId:d.refId,title:d.name,price:Number(d.price),discountPrice:Number(d.discountedPrice),totalSales:d.totalSales,rating:d.rating,attributes:d.attributes,type:d.type,variations:d.variations,onVariantSelected:e=>{p(e),m(null==e?void 0:e.image.refId),e&&h(e.sku,ex(e.price,e.discountedPrice))},onAddToCartSuccess:()=>{r.e(8579).then(r.t.bind(r,68579,23)).then(e=>e.default).then(e=>{e.track("AddToCart",{content_ids:[x.sku],content_type:"product",value:x.value,currency:"MYR"})}).catch(()=>{})}}),(0,n.jsx)(ea,{description:g,descriptionVideo:d.descriptionVideo,descriptionImages:d.descriptionImages,warranty:v,faqs:d.faqs,youtubeVideos:d.youtubeVideos,instagramVideos:d.instagramVideos,tiktokVideos:d.tiktokVideos,productRefId:d.refId})]})}),S&&(0,n.jsx)(ed,{})]})]})}},33028:function(e,t,r){"use strict";r.d(t,{G:function(){return i},M:function(){return a}});var n=r(5409);async function a(e){return n.Z.post("/checkout-session",e)}async function i(e){return n.Z.get("/checkout-session/".concat(e))}},15831:function(e,t,r){"use strict";r.d(t,{Tn:function(){return i},XU:function(){return l},g8:function(){return s},i0:function(){return c},kn:function(){return o},mk:function(){return d},t_:function(){return a}});var n=r(5409);let a=e=>n.Z.get("/admin/review",{params:e}),i=e=>n.Z.get("/admin/review/".concat(e)),l=e=>n.Z.post("/admin/review",e),s=(e,t)=>n.Z.put("/admin/review/".concat(e),t),o=(e,t)=>n.Z.put("/admin/review/".concat(e,"/status"),t),c=e=>n.Z.delete("/admin/review/".concat(e)),d=e=>n.Z.get("/review/product",{params:e})}},function(e){e.O(0,[5989,4237,7610,8174,9834,8051,9513,4540,4298,4190,6631,7444,9406,9059,9830,8374,7645,5790,7476,8929,7897,1890,4037,6980,2888,9774,179],function(){return e(e.s=57326)}),_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.