PageSourceSearch

https://www.eufy.com/_next/static/chunks/pages/kol/[handle]-f21af03b9afceaca.js

js eufy.com collected 2026-09-24 09:34:00 UTC 55,387 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="4a67fff6-07cc-4535-8e6a-e333fb08f31e",e._sentryDebugIdIdentifier="sentry-dbid-4a67fff6-07cc-4535-8e6a-e333fb08f31e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54990,17238,66761,91248,71253,54190,93530,79222,79970],{63465:function(e,l,n){var t;t=function(e){return e.enc.Hex},e.exports=t(n(78249))},24143:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kol/[handle]",function(){return n(15932)}])},79970:function(e,l,n){"use strict";n.d(l,{Cg:function(){return s},E4:function(){return d},T4:function(){return o},ZP:function(){return r},w7:function(){return a}});var t=n(67294),i=n(55891);let d=e=>({us:"US",uk:"GB",ca:"CA",fr:"FR",au:"AU",my:"MY",vn:"VN",it:"IT","eu-de":"DE","eu-en":"DE"})[e]||"US",s=e=>({us:"en-US",uk:"en-GB",ca:"en-CA",au:"en-US","eu-es":"de-DE","eu-fr":"de-DE","eu-it":"de-DE","eu-de":"de-DE","eu-en":"de-DE","cz-en":"de-DE",nl:"de-DE"})[e]||"en-US";function o(e){var l;let{amount:n,currencyCode:t,locale:i,maximumFractionDigits:d,minimumFractionDigits:o,isDigits:a=!0}=e;if(!t)return n;let r=new Intl.NumberFormat(s(i),{style:"currency",currency:t,minimumFractionDigits:0===d?0:o,maximumFractionDigits:d}).format(n),c=a&&"vn-vi"!==i?r:(e=>{if(e.includes(",")){let l="";return["eu-de","nl","eu-en","eu-fr","eu-it","eu-es","cz-en"].includes(i)?l="".concat(e.toString().split(",")[0],"€"):"vn-vi"===i&&(l="".concat(e.toString().split(",")[0],"₫")),l}return e.includes(".")?e.toString().split(".")[0]:e})(r);return"ca"===i?"CA".concat(c):null==c?void 0:null===(l=c.toString())||void 0===l?void 0:l.replace(/[\s]/g,"")}function a(e){let{amount:l,baseAmount:n,currencyCode:t,locale:i}=e,d=n>l,a=new Intl.NumberFormat(s(i),{style:"percent"}),r=d?a.format((n-l)/n):null;return{price:o({amount:l,currencyCode:t,locale:i}),basePrice:d?o({amount:n,currencyCode:t,locale:i}):null,discount:r}}function r(e){let{amount:l,baseAmount:n,currencyCode:d,soldOutDescription:s}=null!=e?e:{},{locale:r}=(0,i.aF)(),c=(0,t.useMemo)(()=>"number"==typeof l&&d?s&&l>=9999999.99?s:n?a({amount:l,baseAmount:n,currencyCode:d,locale:r}):o({amount:l,currencyCode:d,locale:r}):"",[l,n,d,r,s]),u=l&&l<=0;return"string"==typeof c||"number"==typeof c?{price:c,free:u}:{...c,free:u}}},42240:function(e,l,n){"use strict";var t=n(32231),i=n(61806);let d=async function(e,l,n,d){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0,a="/api/multipass/shopifyservices/coupons/by_skus",r={"skus[]":l,shopify_domain:i.I18N_STORE_DOMAIN[e],include_wsuc:s,...o&&{sales_channel:o}};i.o&&(r.platform="app");let c=await (0,t.default)({url:d?"".concat(a,"?channel=").concat(d):a,locale:e,method:"GET",repeatKey:"skus[]",body:r});if((null==c?void 0:c.errors)||null==c||!c.data)return!1;{let e=null==c?void 0:c.data;return n?n(e):e}};l.Z=d},77605:function(e,l,n){"use strict";var t=n(42240),i=n(11163),d=n(67294);l.Z=function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[n,s]=(0,d.useState)({}),[o,a]=(0,d.useState)(!1),{locale:r}=(0,i.useRouter)();return(0,d.useEffect)(()=>{(async()=>{e&&e.length>0&&!l&&(a(!0),s(await (0,t.Z)(r,e,void 0,void 0)),a(!1))})()},[r,null==e?void 0:e.join()]),{coupons:n,loading:o}}},79222:function(e,l,n){"use strict";n.d(l,{D:function(){return t}});let t=e=>{var l,n,t;window.dataLayer=(null===(l=window)||void 0===l?void 0:l.dataLayer)||[];try{null===(t=window)||void 0===t||null===(n=t.dataLayer)||void 0===n||n.push(e)}catch(e){console.log("gaTrack error",e)}}},65080:function(e,l,n){"use strict";n.d(l,{O:function(){return t}});let t=(e,l)=>{if(void 0!==window.fbq)try{l?window.fbq("track",e,l):window.fbq("track",e)}catch(e){console.log("fbqTrack error",e)}}},15932:function(e,l,n){"use strict";n.r(l),n.d(l,{__N_SSG:function(){return z},default:function(){return V}});var t=n(85893),i=n(11163),d=n(63823),s=n(60600),o=n.n(s),a=n(93967),r=n.n(a),c=n(67294),u=n(19536),x=n(9329),p=e=>{let{icon:l,link:n}=e;return(0,t.jsx)("div",{className:r()("cursor-pointer"),children:(0,t.jsx)(u.Z,{href:n,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(x.Z,{source:l,className:r()("w-[38px]")})})})},m=e=>{let{metafields:l,responseData:n}=e;(0,c.useRef)(null);let[i,d]=(0,c.useState)(!1),{switcher:s,hello:o,media:a,upIcon:u,downIcon:m}=l,{avatar:v,introduction:h,name:f,social_media_links:w}=n,j=w.map((e,l)=>{let n="";for(let l=0;l<a.length;l++){var t,i;if((null==e?void 0:e.media_name)==(null===(t=a[l])||void 0===t?void 0:t.name)){n=null===(i=a[l])||void 0===i?void 0:i.platFormIcon;break}}return{link:null==e?void 0:e.media_url,icon:n}});(0,c.useEffect)(()=>{var e=document.getElementById("multi-line");e&&e.scrollHeight>e.clientHeight&&d(!0)}
1,[h]);let[b,g]=(0,c.useState)(!1);return(0,t.jsx)("div",{className:r()("mb-[24.78px] flex w-full justify-center pt-[140px] md:pt-[36px]",s?"":"hidden"),children:(0,t.jsxs)("div",{className:r()("flex h-auto w-full max-w-[1078px] md:flex-col md:items-center "),children:[(0,t.jsx)("style",{scoped:!0,children:".avatorPic{\n                    box-shadow: 0px -3.43px 25.71px 3.43px #00000014;\n                    border: 3.43px solid #FFFFFF;\n                    border-radius: 50%;\n                    width: 200px;   \n                    height: 200px;\n                }\n                \n                @media (max-width: 768px) {\n                  .avatorPic {\n                    border: 2px solid #FFFFFF;\n                    box-shadow: 0px -4px 30px 0px #00000014;\n                    width: 100px;   \n                    height: 100px;\n                  }\n                }\n                \n                "}),(0,t.jsx)("div",{className:"avatorPic overflow-hidden bg-[#999]",children:(0,t.jsx)(x.Z,{className:"relative h-full w-full",source:v,imgClassName:"absolute top-1/2 left-1/2 -translate-y-1/2  -translate-x-1/2  h-full w-auto object-cover max-w-[none]"})}),(0,t.jsxs)("div",{className:r()("intoduce mt-[22px] max-w-[805px]  md:!w-full md:text-center"),children:[(0,t.jsx)("style",{scoped:!0,children:"\n              @media (min-width: 1079px) {\n                .intoduce{\n                    width:calc(100% - 280px);\n                    margin-left:80px;\n                }\n              }\n              @media (min-width: 768px) and (max-width: 1078px) {\n                .intoduce{\n                  width:calc(100% - 200px - 3vw);\n                  margin-left:3vw;\n                }\n              }\n              @media (min-width: 768px) {\n              .introductionMyself{\n                overflow:hidden;\n                text-overflow: ellipsis;\n                -webkit-line-clamp: 3;\n                display: -webkit-box;\n                -webkit-box-orient: vertical;\n              }}\n              "}),(0,t.jsx)("div",{className:r()("mb-[15px] text-[28px] font-semibold leading-[33.4px] text-[#000] md:text-[20px] md:leading-[24px]","w-full overflow-hidden text-ellipsis whitespace-nowrap md:m-auto md:w-[calc(100%_-_20px)]"),children:o+f}),(0,t.jsx)("style",{children:"\n            @media (max-width: 768px) { \n              .header-intoduction{\n              overflow:hidden;\n              text-overflow: ellipsis;\n              -webkit-line-clamp: 2;\n              display: -webkit-box;\n              -webkit-box-orient: vertical;\n            }}\n             \n              "}),(0,t.jsx)("p",{className:r()("mb-[37px] break-words text-[14px] font-[500] leading-[19.6px] text-[#666666] md:m-auto md:w-[300px]",b?"":"header-intoduction overflow-hidden md:h-[40px]","introductionMyself min-md:h-[60px]"),id:"multi-line",children:h}),i&&(0,t.jsx)("div",{className:r()("min-md:hidden"),children:(0,t.jsx)(x.Z,{source:b?m:u,className:r()("m-auto mb-[32px] mt-[12px] h-[18px] w-[10px]"),onClick:()=>{g(!b)}})}),(0,t.jsx)("div",{className:r()("md:flex md:w-full md:justify-center"),children:(0,t.jsx)("div",{className:r()("flex"),children:null==j?void 0:j.map((e,l)=>(0,t.jsx)("div",{className:r()(j.length>1?"mr-[12px]":""),children:(0,t.jsx)(p,{link:null==e?void 0:e.link,icon:null==e?void 0:e.icon})},l))})})]})]})})},v=n(39781),h=n(31897),f=n(24297),w=n(67908),j=n(9977),b=n(78641),g=n(96928),N=n(68410),_=e=>{var l,n,d,s,o,a,p;let{data:m,shopCommon:_,metafields:y,skuInformation:k,product:C,locale:E,coupon:S}=e,{asPath:Z,query:D}=(0,i.useRouter)(),{buyNow:F,addToCart:I}=(0,h.Z)(),{data:L}=(0,g.Z)(),T=L?"member":"non-member",{discountPriceFormatted:A}=(0,w.Z)({product:C,coupon:S});function B(e){let l=e.split("/kol/")[1].split(""),n=[];for(let e=l.length-1;e>0;e--)if(/^[0-9]$/.test(l[e]))n.unshift(l[e]),l.pop();else break;return l.pop(),l.join("")+"_"+n.join("")}(0,c.useEffect)(()=>{},[C]);let{buyButtonText:P,cartButtonText:M}=m,{buyNow:R,add_to_Cart:q,code:O,copy:z,copied:V}=_,{referrals:U}=y,W=(0,c.useMemo)(()=>(0,N.De)({referrals:U}),[U]);function G(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}let Y=(null==S?void 0:S.title)||"",H=async()=>{try{await navigator.clipboard.writeText(Y),console.log("Text copied to clipboard"),K(!$)}catch(e){console.error("Failed to copy: ",e)}},[$,K]=(0,c.useState)(!1);(0,c.useEffect)(()=>
1{if($){let e=setTimeout(()=>{K(!1)},3e3);return()=>{clearTimeout(e)}}},[$]);let X="";C&&((X="/products".concat(C.path,"?variant=").concat((0,j.Ll)((null==C?void 0:null===(a=C.variants)||void 0===a?void 0:null===(o=a[0])||void 0===o?void 0:o.id)||(null==C?void 0:null===(p=C.variants[0])||void 0===p?void 0:p.id)))).indexOf("?")>0?X+="&ref=".concat("kol_"+B(Z)):X+="?ref=".concat("kol_"+B(Z)));let[J,Q]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=document.getElementById((null==C?void 0:C.handle)||""),l=()=>{e&&(e.scrollWidth>e.offsetWidth?Q(!0):Q(!1))};if(l(),window)return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]),(0,t.jsx)("div",{className:r()("relative "),children:(0,t.jsxs)("div",{className:r()("md:w-[calc(100%_-_40px))] goodsCard h-full w-full pb-[27px] pt-[14px] min-md:px-[26px]"),children:[(0,t.jsx)("div",{className:r()("flex w-full justify-center"),children:(0,t.jsx)(u.Z,{href:X,children:(0,t.jsx)(x.Z,{source:null==C?void 0:null===(n=C.images)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.url,className:r()("h-[178px] w-[178px] object-contain md:h-[212px] md:w-[212px]")})})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)(u.Z,{href:X,children:[(0,t.jsx)("div",{className:r()("w-[175px] whitespace-nowrap text-[13px] font-bold leading-[24px] md:!mt-[8px] md:!text-[11.47px] md:!leading-[13.76px] xl:mt-[5px]  xl:w-full xl:text-[1.2vw] xl:leading-[1.2]","!h-0 !overflow-y-hidden"),id:null==C?void 0:C.handle,children:null==C?void 0:C.name}),(0,t.jsxs)("div",{className:r()("product-name overflow-hidden break-words text-[20px] font-bold leading-[24px] md:m-auto md:mt-[15px] md:h-[40px] md:w-[242px] md:text-center md:text-[18px] md:leading-[20px] min-md:flex min-md:h-[48px] min-md:items-center min-md:overflow-ellipsis min-md:leading-[24px]",J?"":"!leading-[48px] md:!leading-[40px] min-md:!leading-[48px]"),children:[(0,t.jsx)("style",{children:"\n              .product-name{\n                overflow:hidden;\n                text-overflow: ellipsis;\n                -webkit-line-clamp: 2;\n                display: -webkit-box;\n                -webkit-box-orient: vertical;\n              }\n              "}),null==C?void 0:C.name]})]}),(0,t.jsxs)("div",{className:r()("mt-[20px] flex items-baseline md:justify-center"),children:[(0,t.jsxs)("div",{className:r()("text-[20px] font-semibold leading-[1.2] md:text-[28px]"),children:[A||(0,f.T4)({locale:E,amount:(null==C?void 0:null===(d=C.price)||void 0===d?void 0:d.value)||0}),"\xa0"]}),A&&(0,t.jsx)("div",{className:r()("flex items-center text-[14px] font-semibold leading-[1.2] text-[#999] line-through md:text-[18px]"),children:(0,f.T4)({locale:E,amount:(null==C?void 0:null===(s=C.price)||void 0===s?void 0:s.value)||0})})]}),(0,t.jsxs)("div",{className:r()("mt-[18px] md:flex md:justify-center min-md:h-[18px]"),children:[Y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:r()("text-[14px] font-semibold leading-[16.6px] text-[#666666]"),children:[O,":",Y]}),(0,t.jsx)("span",{className:r()("ml-[13px]")}),(0,t.jsx)("span",{className:r()("cursor-pointer text-[14px] font-semibold text-[#026085] underline md:leading-[18px]"),onClick:()=>{H()},onMouseEnter:e=>{let l=e.target;l&&(l.innerText=G(z))},onMouseLeave:e=>{if($){let l=e.target;l&&(l.innerText=G(V))}else{let e=document.getElementById("copy");e&&(e.innerText=G(z))}},children:$?G(V):G(z)})]}),!Y&&(0,t.jsx)("span",{className:r()("text-[14px] font-semibold leading-[16.6px] text-[#fff] opacity-0"),children:"1"})]})]}),(0,t.jsxs)("div",{className:r()("flex md:m-auto md:w-[calc(100%_-_74px)]"),children:[(0,t.jsx)(v.Z,{className:r()("mt-[20px] w-[calc(50%_-_3.5px)] !min-w-0 !bg-[#000] !px-0 !py-0 md:w-[calc(100%_-_43.5px)]"),onClick:()=>{F({products:[C],coupons:{[(null==S?void 0:S.sku)||""]:S?[S]:[]},customAttributes:W,callBack:()=>{(0,b.j)({event:"buynow",product:[C],page_group:"Activity Page kol_"+(null==D?void 0:D.handle),sku:null==k?void 0:k.sku,login_status:T,position:null==m?void 0:m.title,locale:E})}})},variant:"primary",children:P||R}),(0,t.jsx)("div",{className:r()("h-[10px] w-[7px] md:w-[13px]")}),(0,t.jsx)(v.Z,{className:r()("mt-[20px] w-[calc(50%_-_3.5px)] !min-w-0 !px-0 !py-[11.55px] md:w-[calc(100%_-_43.5px)]"),onClick:()=>{I({products:[C],coupons:{[(null==S?void 0:S.sku)||""]:S?[S]:[]},customAttributes:W,callBack:()=>{(0,b.j)({event:"add2cart",product:[C],page_group:"Activity Page kol_"+(null==D?void 0:D.handle),sku:null==k?void 0:k.sku,login_status:T,position:null==m?void 0:m.title,locale:E})}})},variant:"secondary",children:M||q})]}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 flex h-full w-full items-center justify-center bg-[#fff] text-[20px] font-semibold",(null==C?void 0:C.availableForSale)?"hidden":"opacity-100"),children:"Sold Out"})]})})},y=n(30719);n(66761),n(60853);let k=e=>{let l=e.match(/^.*(youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#\&\?]*).*/);return l&&11===l[2].length?"https://www.youtube.com/embed/".concat(l[2]):e};function C(e){let{shopCommon:l,metafields:n,skuList:d,products:s,locale:o,coupons:a,data:u}=e,{mob_rightIcon:p,mob_leftIcon:m,dimmedLeftIcon:v,dimmedRightIcon:h,switcher:f}=u,[w,j]=(0,c.useState)(0),b=(0,c.useRef)(null),g=d.length,[N,C]=(0,c.useState)([]),E=document.querySelectorAll(".vid2s");(0,c.useEffect)(()=>{C(Array(g).fill(!1))},[g]);let{asPath:S,query:Z}=(0,i.useRouter)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:r()("pb-[79px]",f?"":"hidden"),children:(0,t.jsxs)("div",{className:r()("relative"),children:[(0,t.jsx)(y.tq,{onInit:function(e){b.current=e},slidesPerView:1,spaceBetween:12,modules:[],onSlideChange:e=>{j(e.activeIndex)},className:r()("mySwiper swiperBar m-auto w-[calc(100%_-_40px)]"),children:d.map((e,i)=>{var c,p,m,v,h;let f=null==s?void 0:s.find(l=>(null==l?void 0:l.handle)===e.handle),w=null==f?void 0:null===(c=f.variants)||void 0===c?void 0:c.find(l=>(null==l?void 0:l.sku)===e.sku),j=null==a?void 0:null===(p=a[null==w?void 0:w.sku])||void 0===p?void 0:p[0];return(0,t.jsx)(y.o5,{className:r()("w-full overflow-hidden rounded-[20px] xl:w-[25%]"),children:(0,t.jsxs)("div",{className:r()("h-[687px] w-[291px] rounded-[20px] xl:!
1h-auto xl:w-full"),children:[(0,t.jsxs)("div",{className:r()("relative h-[333px]  w-[218px] l1:w-[100%]  xl:h-[calc(66.7vw_-_26.6px)] xl:w-full"),children:[(null==e?void 0:null===(m=e.video_url)||void 0===m?void 0:m.includes("youtu"))?(0,t.jsx)("iframe",{title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",width:742.5,height:418,src:k(null==e?void 0:e.video_url),className:r()("h-full  w-full object-cover","vid2s")}):(0,t.jsx)("video",{src:null==e?void 0:e.video_url,className:r()("h-full  w-full object-cover","vid2s"),onClick:e=>{var l;null===(l=e.target)||void 0===l||l.pause();let n=[...N];n[i]=!1,C(n)},onEnded:e=>{let l=[...N];l[i]=!1,C(l)}}),!(null==e?void 0:null===(v=e.video_url)||void 0===v?void 0:v.includes("youtu"))&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",(null==e?void 0:e.video_url)?"hidden":""),children:(0,t.jsx)(x.Z,{source:null==f?void 0:null===(h=f.images[0])||void 0===h?void 0:h.url,className:r()("h-full w-full object-cover",i%2!=0?"rounded-r-[20px]":"rounded-l-[20px]"),imgClassName:r()("h-full w-full object-contain")})}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",N[i]?"hidden":"",(null==e?void 0:e.video_url)?"":"hidden"),children:(0,t.jsx)(x.Z,{source:null==u?void 0:u.startIcon,className:r()("absolute left-[calc(50%_-_25px)] top-[calc(50%_-_25px)] h-[50px] w-[50px]",N[i]?"hidden":""),onClick:()=>{E[i].play();let e=[...N];e[i]=!0,C(e),window&&(window.dataLayer.push({event_parameters:null}),window.dataLayer.push({event:"ga4Event",event_name:"video_start",event_parameters:{video_title:(null==f?void 0:f.name)+"video",page_group:"Activity Page_kol_"+(null==Z?void 0:Z.handle)}}))}})})]})]}),(0,t.jsx)("div",{className:r()("goodsCard relative h-full bg-[#fff] xl:w-full"),children:(0,t.jsx)(_,{data:u,shopCommon:l,metafields:n,skuInformation:d[i],product:f,locale:o,coupon:j})})]})},i)})}),(0,t.jsxs)("div",{className:r()("absolute left-[calc(50%_-_720px)] top-[calc(100%_+_44px)] flex w-[1440px] translate-y-[-50%]  justify-center  xl:left-0 xl:ml-[0px] xl:w-full",g<2?"hidden":""),children:[(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] scale-[0.56] cursor-pointer items-center justify-center rounded-[50%] border-[3px]",0!=w?"border-[#000]":"border-[#D9D9D9]"),onClick:()=>{var e;null==b||null===(e=b.current)||void 0===e||e.slidePrev()},children:(0,t.jsx)(x.Z,{source:0!=w?m:v,className:r()("w-[15px]")})}),(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] scale-[0.56] cursor-pointer items-center justify-center rounded-[50%] border-[3px]",w!=Math.ceil(g/1)-1?"border-[#000]":"border-[#D9D9D9]"),onClick:()=>{var e;null==b||null===(e=b.current)||void 0===e||e.slideNext()},children:(0,t.jsx)(x.Z,{source:w!=Math.ceil(g/1)-1?p:h,className:r()("w-[15px]")})})]})]})})})}var E=e=>{let{data:l,metafields:n,shopCommon:d,skuList:s,products:o,locale:a,coupons:u}=e,p=s.length,{switcher:m,title:v}=l,[h,f]=(0,c.useState)([]),w=document.querySelectorAll(".vid3s");(0,c.useEffect)(()=>{f(Array(p).fill(!1))},[p]);let{asPath:j,query:b}=(0,i.useRouter)();return(0,t.jsx)("div",{className:r()("w-full",m?"":"hidden"),children:(0,t.jsxs)("div",{className:r()("m-auto w-[1200px] justify-center md:w-[301px] l1:w-full"),children:[(0,t.jsx)("h1",{className:r()("mb-[80px] mt-[95px] text-center text-[48px] font-bold leading-[56px] text-[#000] md:mb-[38px] md:mt-[60px] md:text-[30px]"),children:v}),(0,t.jsx)("div",{className:r()("md:hidden"),children:null==s?void 0:s.map((e,i)=>{var s,c,p,m,v;let j=null==o?void 0:o.find(l=>(null==l?void 0:l.handle)===e.handle),g=null==j?void 0:null===(s=j.variants)||void 0===s?void 0:s.find(l=>(null==l?void 0:l.sku)===e.sku),N=null==u?void 0:null===(c=u[null==g?void 0:g.sku])||void 0===c?void 0:c[0];return(0,t.jsxs)("div",{className:r()("m-auto flex justify-center pb-[20px] md:flex-col",i%2!=0?"flex-row-reverse justify-end":""),children:[(0,t.jsxs)("div",{className:r()("relative w-[742.5px] md:!w-[calc(100%_-_40px)]  l:w-[66.66%]"),children:[(null==e?void 0:null===(p=e.video_url)||void 0===p?void 0:p.includes("youtu"))?(0,t.jsx)("iframe",{title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",width:742.5,height:418,src:k(null==e?void 0:e.video_url),className:r()("h-full w-full object-cover",i%2!=0?"rounded-r-[20px]":"rounded-l-[20px]","vid3s")}):(0,t.jsx)("video",{width:742.5,height:418,src:null==e?void 0:e.video_url,className:r()("h-full w-full object-cover",i%2!=0?"rounded-r-[20px]":"rounded-l-[20px]","vid3s"),onClick:e=>{var l;null===(l=e.target)||void 0===l||l.pause();let n=[...h];n[i]=!1,f(n)},onEnded:e=>{let l=[...h];l[i]=!1,f(l)}}),!(null==e?void 0:null===(m=e.video_url)||void 0===m?void 0:m.includes("youtu"))&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",(null==e?void 0:e.video_url)?"hidden":""),children:(0,t.jsx)(x.Z,{source:null==j?void 0:null===(v=j.images[0])||void 0===v?void 0:v.url,className:r()("h-full w-full object-cover",i%2!=0?"rounded-r-[20px]":"rounded-l-[20px]"),imgClassName:r()("h-full w-full object-contain")})}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",h[i]?"hidden":"",(null==e?void 0:e.video_url)?"":"hidden"),children:(0,t.jsx)(x.Z,{source:null==l?void 0:l.startIcon,className:r()("absolute left-[calc(50%_-_25px)] top-[calc(50%_-_25px)] h-[50px] w-[50px]",h[i]?"hidden":""),onClick:()=>{w[i].play();let e=[...h];e[i]=!0,f(e),window&&(window.dataLayer.push({event_parameters:null}),window.dataLayer.push({event:"ga4Event",event_name:"video_start",event_parameters:{video_title:(null==j?void 0:j.name)+"video",page_group:"Activity Page kol_"+(null==b?void 0:b.handle)}}))}})})]})]}),(0,t.jsx)("div",{className:r()("h-[418px] !w-[320px] bg-white l:w-[33.33%]"),children:(0,t.jsx)(_,{data:l,shopCommon:d,metafields:n,skuInformation:e,product:j,locale:a,coupon:N})})]},i)})}),(0,t.jsx)("div",{className:r()("min-md:hidden"),children:(0,t.jsx)(C,{data:l,shopCommon:d,metafields:n,skuList:s,products:o,locale:a,coupons:u})})]})})},S=e=>{var l,n,d,s,o,a,p;let{data:m,metafields:_,shopCommon:y,skuInformation:k,product:C,coupon:E,locale:S}=e,{buyNow:Z,add_to_Cart:D,code:F,copy:I,copied:L}=y,{referrals:T}=_,{buyNow:A,addToCart:B}=(0,h.Z)(),{asPath:P,query:M}=(0,i.useRouter)(),R=(0,c.useMemo)(()=>(0,N.De)({referrals:T}),[T]);function q(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}let{buyButtonText:O,cartButtonText:z}=m,V=(null==E?void 0:E.title)||"",U=async()=>{try{await navigator.clipboard.writeText(V),console.log("Text copied to clipboard"),Y(!G)}catch(e){console.error("Failed to copy: ",e)}},{discountPriceFormatted:W}=(0,w.Z)({product:C,coupon:E}),[G,Y]=(0,c.useState)(!1),[H,$]=(0,c.useState)(0);function K(e){let l=e.split("/kol/")[1].split(""),n=[];for(let e=l.length-1;e>0;e--)if(/^[0-9]$/.test(l[e]))n.unshift(l[e]),l.pop();else break;return l.pop(),l.join("")+"_"+n.join("")}(0,c.useEffect)(()=>{window&&($(window.innerWidth),window.addEventListener("resize",()=>{$(window.innerWidth)}))},[]),(0,c.useEffect)(()=>
1{if(G){let e=setTimeout(()=>{Y(!1)},3e3);return()=>{clearTimeout(e)}}},[G]);let X="";C&&((X="/".concat(S,"/products").concat(C.path,"?variant=").concat((0,j.Ll)((null==C?void 0:null===(a=C.variants)||void 0===a?void 0:null===(o=a[0])||void 0===o?void 0:o.id)||(null==C?void 0:null===(p=C.variants[0])||void 0===p?void 0:p.id)))).indexOf("?")>0?X+="&ref=".concat("kol_"+K(P)):X+="?ref=".concat("kol_"+K(P)));let{data:J}=(0,g.Z)(),Q=J?"member":"non-member",[ee,el]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=document.getElementById((null==C?void 0:C.handle)||""),l=()=>{e&&(e.scrollWidth>e.offsetWidth?(el(!0),console.log("chaochu")):(el(!1),console.log("meichaochu")))};if(l(),window)return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:r()("relative flex h-full w-full overflow-hidden md:bg-[#fff]",(null==C?void 0:C.availableForSale)?"":"opacity-0"),children:[(0,t.jsx)("div",{className:r()("flex h-[8vw] w-[8vw] justify-center py-[21px] md:!h-[95px] md:!w-[95px] xl:mr-[15px] min-x:h-[111px] min-x:w-[111px]"),children:(0,t.jsx)(u.Z,{href:X,children:(0,t.jsx)(x.Z,{source:null==C?void 0:null===(n=C.images)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.url,className:r()("h-full md:mr-[10px] xl:w-full min-md:mx-[10px]"),imgClassName:r()("!h-full w-full object-contain")})})}),(0,t.jsxs)("div",{className:r()("w-[calc(100%_-_8vw_-_20px)] md:!w-[calc(100%_-_95px_
1-_15px)] xl:w-[60%] xl:pb-[15px] min-x:w-[calc(100%_-_111px_-_20px)]"),children:[(0,t.jsxs)("div",{className:r()("w-full"),children:[(0,t.jsx)("style",{scoped:!0,children:"\n              .product-name{\n                overflow:hidden;\n                text-overflow: ellipsis;\n                -webkit-line-clamp: 2;\n                display: -webkit-box;\n                -webkit-box-orient: vertical;\n              }\n              "}),(0,t.jsxs)(u.Z,{href:X,children:[(0,t.jsx)("div",{className:r()("w-[175px] whitespace-nowrap text-[13px] font-bold leading-[24px] md:!mt-[8px] md:!text-[11.47px] md:!leading-[13.76px] xl:mt-[5px]  xl:w-full xl:text-[1.2vw] xl:leading-[1.2]","!h-0 !overflow-y-hidden"),id:null==C?void 0:C.handle,children:null==C?void 0:C.name}),(0,t.jsx)("div",{className:r()("product-name  w-[175px] text-[13px] font-bold leading-[24px] md:!mt-[8px] md:!min-h-[27.52px] md:!text-[11.47px] md:!leading-[13.76px] xl:mt-[5px] xl:!min-h-[2.88vw] xl:w-full xl:text-[1.2vw] xl:leading-[1.2] min-md:pt-[10px] min-xl:min-h-[48px]",ee?"":"!leading-[48px] md:!leading-[27.52px] xl:!leading-[2.4]"),children:null==C?void 0:C.name})]}),(0,t.jsxs)("div",{className:r()("mt-[5px] flex"),children:[(0,t.jsxs)("div",{className:r()("text-[13px] font-semibold leading-[16px] md:!text-[11.47px] md:!leading-[13.76px] xl:text-[1.1vw]"),children:[W||(0,f.T4)({locale:S,amount:(null==C?void 0:null===(d=C.price)||void 0===d?void 0:d.value)||0})," ","\xa0"]}),W&&(0,t.jsxs)("div",{className:r()("flex h-[16px] items-center text-[10px] font-semibold leading-[100%] line-through md:!text-[8.6px] md:!leading-[10.32px] xl:text-[1vw]"),children:[" ",(0,f.T4)({locale:S,amount:(null==C?void 0:null===(s=C.price)||void 0===s?void 0:s.value)||0})]})]}),W&&(0,t.jsx)("div",{className:r()("mt-[10px] xl:mt-[5px]"),children:(0,t.jsxs)("p",{className:r()("text-[10px] font-semibold leading-[12px] text-[#666666] md:!text-[8.6px] md:!leading-[10.12px] xl:text-[1vw]"),children:[(0,t.jsxs)("span",{className:r()("xl:hidden"),children:[F,":"]}),(0,t.jsx)("span",{children:null==E?void 0:E.title}),(0,t.jsx)("span",{children:"\xa0\xa0"}),(0,t.jsx)("span",{className:r()("cursor-pointer text-[10px] font-semibold text-[#026085] underline md:!text-[8.6px] md:!leading-[10.26px] xl:text-[1vw]"),onClick:()=>{U(),setTimeout(()=>{Y(!G)},300)},onMouseEnter:e=>{let l=e.target;l&&(l.innerText=q(I))},onMouseLeave:e=>{if(G){let l=e.target;l&&(l.innerText=q(L))}else{let e=document.getElementById("copy");e&&(e.innerText=q(I))}},children:G?q(L):q(I)})]})}),!W&&(0,t.jsx)("div",{className:r()("h-[17px] w-[2px] md:h-[15.25px]")})]}),(0,t.jsx)("style",{children:"\n            @media screen and (min-width: 768px) and (max-width: 873px) {\n              .controlBut {\n                transform: scale(0.8);\n              }\n              .controlBut1 {\n                margin-right: -10px;\n              }\n              .btnGap{\n                width: 0px;\n              }\n            }\n            "}),(0,t.jsxs)("div",{className:r()("mt-[15px] flex w-full l1:justify-end min-x:justify-center",H<400?"relative left-[7px] scale-[0.8]":"",H<360?"!left-[12px]":""),children:[(0,t.jsx)(v.Z,{className:r()("controlBut controlBut1 !min-w-[78px] !bg-[#000] !px-0 !py-[7px] !text-[10px] leading-[12px] min-x:ml-[7px]",H>1440||H<768&&H>=415?"!mr-[7px]":"",H<=400?"mr-[4px]":""),onClick:()=>{A({products:[C],coupons:{[(null==E?void 0:E.sku)||""]:E?[E]:[]},customAttributes:R,callBack:()=>{(0,b.j)({event:"buynow",product:[C],page_group:"Activity Page kol_"+(null==M?void 0:M.handle),sku:null==k?void 0:k.sku,login_status:Q,position:null==m?void 0:m.title,locale:S})}})},variant:"primary",children:O||Z}),(0,t.jsx)("div",{className:r()("btnGap h-[10px] flex-1 x:hidden x:w-[4px]")}),(0,t.jsx)(v.Z,{className:r()("controlBut !min-w-[78px] !px-0 !py-[7px] !text-[10px] leading-[12px]"),onClick:()=>{B({products:[C],coupons:{[(null==E?void 0:E.sku)||""]:E?[E]:[]},customAttributes:R,callBack:()=>{(0,b.j)({event:"add2cart",product:[C],page_group:"Activity Page kol_"+(null==M?void 0:M.handle),sku:null==k?void 0:k.sku,login_status:Q,position:null==m?void 0:m.title,locale:S})}})},variant:"secondary",children:z||D})]})]})]}),(0,t.jsxs)("div",{className:r()("bg-[rgb(229, 231, 235)] absolute left-0 top-0 flex h-full w-full items-center justify-center text-[20px] font-semibold md:bg-[#fff]",(null==C?void 0:C.availableForSale)?"!h-0 opacity-0":""),children:["Sold Out",null==C?void 0:C.availableForSale]})]})};function Z(e){let{metafields:l,shopCommon:n,skuList:d,products:s,locale:o,coupons:a,data:u}=e,{dimmedLeftIcon:p,dimmedRightIcon:m,pc_leftIcon:v,pc_rightIcon:h,switcher:f,title:w}=u,[j,b]=(0,c.useState)(0),g=(0,c.useRef)(null),N=d.length,[_,k]=(0,c.useState)([]),C=document.querySelectorAll(".vids");(0,c.useEffect)(()=>{k(Array(N).fill(!1))},[N]);let{asPath:E,query:Z}=(0,i.useRouter)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:r()("bg - [#fff] py-[88px]",f?"":"hidden"),children:[(0,t.jsx)("h1",{className:r()("mb-[80px] w-full text-center text-[48px] font-bold leading-[56px] md:text-[30px] md:leading-[38px]"),children:w}),(0,t.jsxs)("div",{className:r()("relative"),children:[(0,t.jsx)(y.tq,{onInit:function(e){g.current=e},slidesPerView:4,spaceBetween:12,modules:[],onSlideChange:e=>{b(e.activeIndex)},className:r()("mySwiper m-auto w-[1200px] xl:w-[calc(100%_-_150px)]"),children:null==d?void 0:d.map((e,i)=>{var d,c,p;let m=null==s?void 0:s.find(l=>(null==l?void 0:l.handle)===e.handle),v=null==m?void 0:null===(d=m.variants)||void 0===d?void 0:d.find(l=>(null==l?void 0:l.sku)===e.sku),h=null==a?void 0:null===(c=a[null==v?void 0:v.sku])||void 0===c?void 0:c[0];return(0,t.jsx)(y.o5,{className:r()("w-[291px] xl:w-[25%]"),children:(0,t.jsxs)("div",{className:r()("h-[687px] w-[291px] overflow-hidden rounded-[20px] bg-[#F6F6F6] xl
1:!h-auto xl:w-full"),children:[(0,t.jsxs)("div",{className:r()("xl: relative h-[534px] w-[301px] l1:w-[100%] xl:!h-[calc(44.35vw_-_93.14px)] xl:w-full"),children:[(0,t.jsx)("video",{src:null==e?void 0:e.video_url,className:r()("vids object-cover"),onClick:e=>{var l;null===(l=e.target)||void 0===l||l.pause();let n=[..._];n[i]=!1,k(n)},onEnded:e=>{let l=[..._];l[i]=!1,k(l)}}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",(null==e?void 0:e.video_url)?"hidden":""),children:(0,t.jsx)(x.Z,{source:null==m?void 0:null===(p=m.images[0])||void 0===p?void 0:p.url,className:r()("h-full w-full object-cover"),imgClassName:r()("h-full w-full object-contain")})}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",_[i]?"hidden":"",(null==e?void 0:e.video_url)?"":"hidden"),children:(0,t.jsx)(x.Z,{source:null==u?void 0:u.startIcon,className:r()("absolute left-[calc(50%_-_25px)] top-[calc(50%_-_25px)] h-[50px] w-[50px]",_[i]?"hidden":""),onClick:()=>{C[i].play();let e=[..._];e[i]=!0,k(e),window&&(window.dataLayer.push({event_parameters:null}),window.dataLayer.push({event:"ga4Event",event_name:"video_start",event_parameters:{video_title:(null==m?void 0:m.name)+" video",page_group:"Activity Page kol_"+(null==Z?void 0:Z.handle)}}))}})})]}),(0,t.jsx)("div",{className:r()("relative w-[291px] xl:w-full"),children:(0,t.jsx)(S,{data:u,metafields:l,shopCommon:n,skuInformation:e,product:m,coupon:h,locale:o})})]})},i)})}),(0,t.jsxs)("div",{className:r()("absolute left-[calc(50%_-_720px)] top-[50%] flex w-[1440px] translate-y-[-50%]  justify-between md:justify-center xl:left-0 xl:ml-[0px] xl:w-full",N<=4?"hidden":""),children:[(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] cursor-pointer items-center justify-center rounded-[50%] border-[3px] md:h-[28px] md:w-[28px] l:scale-[0.8] xl:ml-[10px]",0!=j?"border-[#026085]":"border-[#D9D9D9]"),onClick:()=>{var e;null==g||null===(e=g.current)||void 0===e||e.slidePrev()},children:(0,t.jsx)(x.Z,{source:0!=j?v:p,className:r()("relative right-[2px] w-[15px] md:scale-[0.7]")})}),(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] cursor-pointer items-center justify-center rounded-[50%] border-[3px] md:h-[28px] md:w-[28px] l:scale-[0.8] xl:mr-[10px]",j!=Math.ceil(N/4)-1?"border-[#026085]":"border-[#D9D9D9]"),onClick:()=>{var e;null==g||null===(e=g.current)||void 0===e||e.slideNext()},children:(0,t.jsx)(x.Z,{source:j!=Math.ceil(N/4)-1?h:m,className:r()("relative left-[3px] w-[15px] md:scale-[0.7]")})})]})]})]})})}function D(e){let{data:l,metafields:n,shopCommon:d,skuList:s,products:o,locale:a,coupons:u}=e,[p,m]=(0,c.useState)(0),v=(0,c.useRef)(null),h=s.length,f=e=>{m(e.activeIndex)},{dimmedLeftIcon:w,dimmedRightIcon:j,mob_leftIcon:b,mob_rightIcon:g,switcher:N,title:_}=l,[k,C]=(0,c.useState)([]),E=document.querySelectorAll(".vid1s");(0,c.useEffect)(()=>{C(Array(h).fill(!1))},[h]);let[Z,D]=(0,c.useState)(!1),F=document.getElementById("singleVideo"),{asPath:I,query:L}=(0,i.useRouter)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:r()("pb-[88px] pt-[60px]",N?"":"hidden"),children:[(0,t.jsx)("h1",{className:r()("mb-[80px] w-full text-center text-[48px] font-bold leading-[56px] md:mb-[38px] md:text-[30px] md:leading-[38px]"),children:_}),(0,t.jsxs)("div",{className:r()("relative"),children:[1==s.length&&(0,t.jsx)(y.tq,{onInit:function(e){v.current=e},slidesPerView:1,spaceBetween:0,modules:[],onSlideChange:f,className:r()("mySwiper m-auto flex w-full justify-center"),children:s.map((e,i)=>{var c,p,m;let v=null==o?void 0:o.find(l=>(null==l?void 0:l.handle)===e.handle),h=null==v?void 0:null===(c=v.variants)||void 0===c?void 0:c.find(l=>(null==l?void 0:l.sku)===e.sku),f=null==u?void 0:null===(p=u[null==h?void 0:h.sku])||void 0===p?void 0:p[0];return(0,t.jsx)(y.o5,{className:r()("w-full","flex justify-center"),children:(0,t.jsxs)("div",{className:r()("h-[687px] w-full overflow-hidden rounded-[20px] xl:!h-auto xl:w-full","!w-[calc(71.43%_-_20px)]"),children:[(0,t.jsxs)("div",{className:r()("relative h-[457px] w-full"),children:[(0,t.jsx)("video",{src:null==e?void 0:e.video_url,className:r()("h-full w-full object-cover"),id:"singleVideo",onClick:e=>{var l;null===(l=e.target)||void 0===l||l.pause(),D(!1)},onEnded:e=>{D(!1)}}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",(null==e?void 0:e.video_url)?"hidden":""),children:(0,t.jsx)(x.Z,{source:null==v?void 0:null===(m=v.images[0])||void 0===m?void 0:m.url,className:r()("h-full w-full object-cover"),imgClassName:r()("h-full w-full object-contain")})}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",Z?"hidden":"",(null==e?void 0:e.video_url)?"":"hidden"),children:(0,t.jsx)(x.Z,{source:null==l?void 0:l.startIcon,className:r()("absolute left-[calc(50%_-_22.5px)] top-[calc(50%_-_22.5px)] h-[45px] w-[45px]",Z?"hidden":""),onClick:()=>{F.play(),D(!0),window&&(window.dataLayer.push({event_parameters:null}),window.dataLayer.push({event:"ga4Event",event_name:"video_start",event_parameters:{video_title:(null==v?void 0:v.name)+"video",page_group:"Activity Page_kol_"+(null==L?void 0:L.handle)}}))}})})]}),(0,t.jsx)("div",{className:r()("relative w-full "),children:(0,t.jsx)(S,{data:l,metafields:n,shopCommon:d,skuInformation:s[i],coupon:f,product:v,locale:a})})]})},i)})}),s.length>1&&(0,t.jsx)(y.tq,{onInit:function(e){v.current=e},slidesPerView:1.4,spaceBetween:0,modules:[],onSlideChange:f,className:r()("mySwiper m-auto w-full"),children:s.map((e,i)=>{var c,p,m;let v=null==o?void 0:o.find(l=>(null==l?void 0:l.handle)===e.handle),h=null==v?void 0:null===(c=v.variants)||void 0===c?void 0:c.find(l=>(null==l?void 0:l.sku)===e.sku),f=null==u?void 0:null===(p=u[null==h?void 0:h.sku])||void 0===p?void 0:p[0];return(0,t.jsxs)(y.o5,{className:r()("w-[71.43%]","flex !w-[calc(71.43%)]"),children:[(0,t.jsx)("div",{className:r()("h-[100%] w-[14.285%]")}),(0,t.jsxs)("div",{className:r()("h-[687px] w-full rounded-[20px] xl:!
1h-auto xl:w-full","!w-[calc(100%_-_20px)] overflow-hidden"),children:[(0,t.jsxs)("div",{className:r()("relative"),children:[(0,t.jsx)("video",{src:null==e?void 0:e.video_url,className:r()("h-[457px] w-full object-cover","vid1s"),onClick:e=>{var l;null===(l=e.target)||void 0===l||l.pause();let n=[...k];n[i]=!1,C(n)}}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",(null==e?void 0:e.video_url)?"hidden":""),children:(0,t.jsx)(x.Z,{source:null==v?void 0:null===(m=v.images[0])||void 0===m?void 0:m.url,className:r()("h-full w-full object-cover"),imgClassName:r()("h-full w-full object-contain")})}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 h-full w-full",k[i]?"hidden":"",(null==e?void 0:e.video_url)?"":"hidden"),children:(0,t.jsx)(x.Z,{source:null==l?void 0:l.startIcon,className:r()("absolute left-[calc(50%_-_22.5px)] top-[calc(50%_-_22.5px)] h-[45px] w-[45px]",k[i]?"hidden":""),onClick:()=>{E[i].play();let e=[...k];e[i]=!0,C(e),window&&(window.dataLayer.push({event_parameters:null}),window.dataLayer.push({event:"ga4Event",event_name:"video_start",event_parameters:{video_title:(null==v?void 0:v.name)+"video",page_group:"Activity Page_kol_"+(null==L?void 0:L.handle)}}))}})})]}),(0,t.jsx)("div",{className:r()("relative w-full "),children:(0,t.jsx)(S,{data:l,metafields:n,shopCommon:d,skuInformation:s[i],coupon:f,product:v,locale:a})})]})]},i)})}),(0,t.jsxs)("div",{className:r()("absolute left-[calc(50%_-_720px)] top-[calc(100%_+_24px)] flex w-[1440px] translate-y-[-50%]  justify-between md:justify-center xl:left-0 xl:ml-[0px] xl:w-full",h<=1?"hidden":""),children:[(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] scale-[0.56] cursor-pointer items-center justify-center rounded-[50%] border-[3px] xl:ml-[10px]",0!=p?"border-[#000000]":"border-[#D9D9D9]"),onClick:()=>{var e;null==v||null===(e=v.current)||void 0===e||e.slidePrev()},children:(0,t.jsx)(x.Z,{source:0!=p?b:w,className:r()("relative right-[2px] w-[15px]")})}),(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] scale-[0.56] cursor-pointer items-center justify-center rounded-[50%] border-[3px] xl:mr-[10px]",p!=Math.ceil(h/1.4)-1?"border-[#000000]":"border-[#D9D9D9]"),onClick:()=>{var e;null==v||null===(e=v.current)||void 0===e||e.slideNext()},children:(0,t.jsx)(x.Z,{source:p!=Math.ceil(h/1.4)-1?g:j,className:r()("relative left-[3px] w-[15px]")})})]})]})]})})}var F=e=>{let{data:l,metafields:n,shopCommon:i,skuList:d,locale:s,products:o,coupons:a}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:r()("md:hidden"),children:(0,t.jsx)(Z,{data:l,metafields:n,shopCommon:i,skuList:d,products:o,locale:s,coupons:a})}),(0,t.jsx)("div",{className:r()("min-md:hidden"),children:(0,t.jsx)(D,{data:l,metafields:n,shopCommon:i,skuList:d,products:o,locale:s,coupons:a})})]})},I=n(95077),L=n(61806),T=e=>{var l,n,d,s,o,a,p,m,_;let{shopingGoods:y,showMark:k,shopCommon:C,product:E,locale:S,coupon:Z,title:D,metafields:F}=e,{referrals:T}=F,{asPath:A,query:B}=(0,i.useRouter)(),{buyNow:P,add_to_Cart:M,copy:R,copied:q}=C,{shop:O}=(0,I.aF)(),{buyNow:z,addToCart:V}=(0,h.Z)();function U(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}let W=(null==Z?void 0:Z.title)||"",G=(0,c.useMemo)(()=>(0,N.De)({referrals:T}),[T]),Y=async()=>{try{await navigator.clipboard.writeText(W),console.log("Text copied to clipboard"),J(!X)}catch(e){console.error("Failed to copy: ",e)}},{discountPriceFormatted:H,discountText:$,priceFormatted:K}=(0,w.Z)({product:E,coupon:Z}),[X,J]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(X){let e=setTimeout(()=>{J(!1)},3e3);return()=>{clearTimeout(e)}}},[X]);let{data:Q}=(0,g.Z)(),ee=Q?"member":"non-member";function el(e){let l=e.split("/kol/")[1].split(""),n=[];for(let e=l.length-1;e>0;e--)if(/^[0-9]$/.test(l[e]))n.unshift(l[e]),l.pop();else break;return l.pop(),l.join("")+"_"+n.join("")}let en="";E&&((en=("eufy"===L.cg?(0,j.xt)("/products"+E.path,S):"/".concat(S,"/products").concat(E.path))+"?variant=".concat((0,j.Ll)((null==E?void 0:null===(p=E.variants)||void 0===p?void 0:null===(a=p[0])||void 0===a?void 0:a.id)||(null==E?void 0:null===(m=E.variants[0])||void 0===m?void 0:m.id)))).indexOf("?")>0?en+="&ref=".concat("kol_"+el(A)):en+="?ref=".concat("kol_"+el(A)));let[et,ei]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=document.getElementById((null==E?void 0:E.handle)||""),l=()=>{e&&(e.scrollWidth>e.offsetWidth?ei(!0):ei(!1))};if(l(),window)return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]),(0,t.jsxs)("div",{className:r()("relative"),children:[(0,t.jsxs)("div",{className:r()("relative h-[calc(100%_-_17px)] w-full rounded-[20px] bg-[#f6f6f6] pt-[17px] md:overflow-hidden"),children:[(0,t.jsxs)("div",{className:r()("h-full w-full"),children:[(0,t.jsx)("div",{className:r()("m-auto w-[200px] l1:w-[68.7%]"),children:(0,t.jsx)(u.Z,{href:en,children:(0,t.jsx)(x.Z,{source:null==E?void 0:null===(n=E.images)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.url,className:r()("relative w-full  pt-[100%]"),imgClassName:r()("object-contain h-full w-full absolute top-0 left-0")})})}),(0,t.jsxs)(u.Z,{href:en,children:[(0,t.jsx)("div",{className:r()("w-[175px] whitespace-nowrap text-[13px] font-bold leading-[24px] md:!mt-[8px] md:!text-[11.47px] md:!leading-[13.76px] xl:mt-[5px]  xl:w-full xl:text-[1.2vw] xl:leading-[1.2]","!h-0 !overflow-y-hidden"),id:null==E?void 0:E.handle,children:null==E?void 0:E.name}),(0,t.jsxs)("div",{className:r()("product-name mb-[18px] w-[calc(100%_-_70px)] px-[35px] text-center text-[18px] font-[600] leading-[21.6px] md:m-auto md:mb-[14px] md:h-[24px] md:!w-[calc(100%_-_24px)] md:!text-[12px] md:!leading-[12px] l:mb-[5px] l:w-full l:px-0 l:text-[2vw] min-md:h-[43.2px]",et?"":"!leading-[43.2px] md:!leading-[24px]"),children:[(0,t.jsx)("style",{children:"\n              .product-name{\n                overflow:hidden;\n                text-overflow: ellipsis;\n                -webkit-line-clamp: 2;\n                display: -webkit-box;\n                -webkit-box-orient: vertical;\n              }\n              "}),null==E?void 0:E.name]})]}),(0,t.jsxs)("div",{className:r()("flex w-full justify-center"),children:[(0,t.jsxs)("div",{className:r()("text-[20px] font-semibold leading-[14px] md:!text-[14px] md:leading-[14px] l:text-[1.8vw]"),children:[H||(0,f.T4)({locale:S,amount:(null==E?void 0:null===(d=E.price)||void 0===d?void 0:d.value)||0})," ","\xa0"]}),H&&(0,t.jsxs)("div",{className:r()("flex h-[14px] items-center text-[14px] font-semibold leading-[100%] line-through md:!text-[10px] md:leading-[14px] l:text-[1.26vw]"),children:[" ",(0,f.T4)({locale:S,amount:(null==E?void 0:null===(s=E.price)||void 0===s?void 0:s.value)||0})]})]}),(0,t.jsx)("div",{className:r()("flex w-full justify-center"),children:(0,t.jsx)("div",{className:r()("mb-[33px] mt-[12px] md:mb-[13px] md:h-[16.6px] l:mt-[8px] min-md:h-[17px]"),children:W&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:r()("text-[14px] font-semibold leading-[16.6px] text-[#666666]"),children:W}),(0,t.jsx)("span",{children:"\xa0\xa0"}),(0,t.jsx)("span",{className:r()("cursor-pointer text-[14px] font-semibold text-[#02
16085] underline"),onClick:()=>{Y()},onMouseEnter:e=>{let l=e.target;l&&(l.innerText=U(R))},onMouseLeave:e=>{if(X){let l=e.target;l&&(l.innerText=U(q))}else{let e=document.getElementById("copy");e&&(e.innerText=U(R))}},children:X?U(q):U(R)})]})})}),(0,t.jsxs)("div",{className:r()("flex w-full flex-col justify-center md:mb-[16px] min-md:pb-[26px]"),children:[(0,t.jsx)(v.Z,{className:r()("m-auto mb-[12px] !box-content !px-[20px] !py-[9px] md:mb-[8px] md:h-[25px] md:w-[90px] md:!px-[0px] md:!py-[0px] md:!text-[12px] md:!leading-[14.4px] l:!min-w-0 xl:w-[65%]  min-xl:w-[205px]"),variant:"primary",onClick:()=>{z({products:[E],coupons:{[(null==Z?void 0:Z.sku)||""]:Z?[Z]:[]},customAttributes:G,callBack:()=>{(0,b.j)({event:"buynow",product:[E],page_group:"Activity Page kol_"+(null==B?void 0:B.handle),sku:null==y?void 0:y.sku,login_status:ee,position:D,locale:S})}})},children:P}),(0,t.jsx)(v.Z,{className:r()("m-auto !box-content !px-[20px] !py-[9px] md:h-[25px] md:w-[90px] md:!px-0 md:!py-0 md:!text-[12px] md:leading-[14.4px] l:!min-w-0 xl:w-[65%] min-xl:w-[205px]"),variant:"secondary",onClick:()=>{V({products:[E],coupons:{[(null==Z?void 0:Z.sku)||""]:Z?[Z]:[]},customAttributes:G,callBack:()=>{(0,b.j)({event:"add2cart",product:[E],page_group:"Activity Page kol_"+(null==B?void 0:B.handle),sku:null==y?void 0:y.sku,login_status:ee,position:D,locale:S})}})},children:M})]})]}),Z&&(0,t.jsx)("div",{className:r()("absolute left-0 top-0 flex h-[90px] w-full flex-row-reverse items-start",k?"":"hidden"),children:(0,t.jsxs)("div",{className:r()("relative"),children:[(0,t.jsx)(x.Z,{source:"https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Rectangle_40284_11ce6b20-72ba-47bf-8396-ea4a15ba9281.png?v=1714017230",className:r()(" mr-[35px] h-[83px] w-[73px] md:!mr-0 md:!h-[48px] md:!w-[42px] l1:mr-[2vw] l1:h-[72px] l1:w-[4.8vw]")}),(0,t.jsx)("div",{className:r()("absolute right-0 top-0 box-content  flex h-[83px] w-[73px] scale-[0.9] items-center justify-center text-center md:!mr-0 md:!h-[48px] md:!w-[42px] l1:mr-[2vw] l1:h-[5.38vw] l1:w-[4.8vw] min-l1:right-[35px] min-l1:top-[-5px]",{"l1:scale-[0.8]":(null==Z?void 0:null===(o=Z.value_style)||void 0===o?void 0:o.length)>5}),children:(0,t.jsxs)("div",{className:r()("text-[24px] font-[600] leading-[1] md:!text-[16px] l1:text-[2vw]"),children:[(_=$).includes("%")?_:_=/[0-9]$/.test(_)?_.slice(0,-3):_.slice(0,-4)+_.slice(-1),(0,t.jsx)("br",{}),"OFF"]})})]})})]}),(0,t.jsx)("div",{className:r()("absolute left-0 top-0 flex h-full w-full items-center justify-center bg-[#f6f6f6] text-[20px] font-semibold",(null==E?void 0:E.availableForSale)?"hidden":""),children:"Sold Out"})]})};function A(e){let{data:l,metafields:n,shopCommon:i,skuList:d,products:s,locale:o,coupons:a}=e,{switcher:u,title:p,showMark:m,pc_leftIcon:v,pc_rightIcon:h,dimmedLeftIcon:f,dimmedRightIcon:w}=l,[j,b]=(0,c.useState)(0),g=(0,c.useRef)(null),N=d.length;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:r()("bg-#fff py-[88px]",u?"":"hidden"),children:[(0,t.jsx)("h1",{className:r()("mb-[80px] w-full text-center text-[48px] font-bold leading-[56px] md:text-[30px] md:leading-[38px]"),children:p}),(0,t.jsxs)("div",{className:r()("relative"),children:[(0,t.jsx)(y.tq,{onInit:function(e){g.current=e},slidesPerView:4,spaceBetween:12,modules:[],onSlideChange:e=>{b(e.activeIndex)},className:r()("mySwiper m-auto xl:w-[calc(100%_-_160px)] min-xl:!w-[1200px]"),children:d.map((e,l)=>{var d,c;let u=null==s?void 0:s.find(l=>(null==l?void 0:l.handle)===e.handle),x=null==u?void 0:null===(d=u.variants)||void 0===d?void 0:d.find(l=>(null==l?void 0:l.sku)===e.sku),v=null==a?void 0:null===(c=a[null==x?void 0:x.sku])||void 0===c?void 0:c[0];return(0,t.jsx)(y.o5,{className:r()("xl:w-[calc(25%_-_30px)] min-xl:w-[291px]"),children:(0,t.jsx)("div",{className:r()("h-[491px] w-[291px] rounded-[20px] l1:h-auto l1:pb-[15px] xl:w-full"),children:(0,t.jsx)(T,{shopingGoods:e,showMark:m,shopCommon:i,product:u,locale:o,coupon:v,title:p,metafields:n})})},l)})}),(0,t.jsxs)("div",{className:r()(" absolute left-[calc(50%_-_670px)] top-[50%] flex w-[1340px] translate-y-[-50%] justify-between xl:left-0 xl:ml-0 xl:w-full",N<=4?"hidden":""),children:[(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] cursor-pointer items-center justify-center rounded-[50%] border-[3px] l:scale-[0.8] xl:ml-[10px]",0!=j?"border-[#026085]":"border-[#D9D9D9]"),onClick:()=>{var e;null==g||null===(e=g.current)||void 0===e||e.slidePrev()},children:(0,t.jsx)(x.Z,{source:0!=j?v:f,className:r()("relative right-[2px] w-[15px]")})}),(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] cursor-pointer items-center justify-center rounded-[50%] border-[3px] l:scale-[0.8] xl:mr-[10px]",j!=Math.ceil(N-4)?"border-[#026085]":"border-[#D9D9D9]"),onClick:()=>{var e;null==g||null===(e=g.current)||void 0===e||e.slideNext()},children:(0,t.jsx)(x.Z,{source:j!=Math.ceil(N-4)?h:w,className:r()("relative left-[3px] w-[15px]")})})]})]})]})})}function B(e){let{data:l,metafields:n,shopCommon:i,skuList:d,products:s,locale:o,coupons:a}=e,{switcher:u,title:p,showMark:m,mob_leftIcon:v,mob_rightIcon:h,dimmedLeftIcon:f,dimmedRightIcon:w}=l,[j,b]=(0,c.useState)(0),g=(0,c.useRef)(null),N=d.length,_=[];for(let e=0;e<d.length;e+=4)_.push(d.slice(e,e+4));return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:r()("bg - [#fff] py-[88px]",u?"":"hidden"),children:[(0,t.jsx)("h1",{className:r()("mb-[80px] w-full text-center text-[48px] font-bold leading-[56px] md:text-[30px] md:leading-[38px]"),children:p}),(0,t.jsxs)("div",{className:r()("relative"),children:[(0,t.jsx)(y.tq,{onInit:function(e){g.current=e},slidesPerView:1,spaceBetween:12,modules:[],onSlideChange:e=>{b(e.activeIndex)},className:r()("mySwiper m-auto w-[calc(calc(100%_-_40px))]"),children:_.map((e,l)=>(0,t.jsx)(y.o5,{className:r()("w-full"),children:(0,t.jsx)("div",{className:r()("h-auto w-full l1:h-auto l1:pb-[15px] xl:w-full"),children:(0,t.jsx)("div",{className:"grid grid-cols-2 gap-x-4 gap-y-10 bg-white",children:e.map((e,l)=>{var d,r;let c=null==s?void 0:s.find(l=>(null==l?void 0:l.handle)===e.handle),u=null==c?void 0:null===(d=c.variants)||void 0===d?void 0:d.find(l=>(null==l?void 0:l.sku)===e.sku),x=null==a?void 0:null===(r=a[null==u?void 0:u.sku])||void 0===r?void 0:r[0];return(0,t.jsx)(T,{shopingGoods:e,showMark:m,shopCommon:i,locale:o,coupon:x,product:c,title:p,metafields:n},l)})})})},l))}),(0,t.jsxs)("div",{className:r()("absolute left-[calc(50%_-_670px)] top-[calc(100%_+_34px)] flex w-[1340px] translate-y-[-50%] justify-center xl:left-0 xl:ml-0 xl:w-full",N<=4?"hidden":""),children:[(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] scale-[0.56] cursor-pointer items-center justify-center rounded-[50%] border-[3px] xl:ml-[10px]",0!=j?"border-[#000000]":"border-[#D9D9D9]"),onClick:()=>{var e;null==g||null===(e=g.current)||void 0===e||e.slidePrev()},children:(0,t.jsx)(x.Z,{source:0!=j?v:f,className:r()("relative right-[2px] w-[15px]")})}),(0,t.jsx)("div",{className:r()("flex h-[50px] w-[50px] scale-[0.56] cursor-pointer items-center justify-center rounded-[50%] border-[3px] xl:mr-[10px]",j!=Math.ceil(N/1)-1?"border-[#000000]":"border-[#D9D9D9]"),onClick:()=>{var e;null==g||null===(e=g.current)||void 0===e||e.slideNext()},children:(0,t.jsx)(x.Z,{source:j!=Math.ceil(N/1)-1?h:w,className:r()("relative left-[3px] w-[15px]")})})]})]})]})})}var P=e=>{let{data:l,metafields:n,shopCommon:i,skuList:d,products:s,locale:o,coupons:a}=e;return(0,t.jsxs)("div",{className:r()("bg-[rgb(250, 250, 250)]"),children:[(0,t.jsxs)("div",{className:r()("md:hidden"),children:[" ",(0,t.jsx)(A,{data:l,metafields:n,shopCommon:i,skuList:d,products:s,locale:o,coupons:a})]}),(0,t.jsxs)("div",{className:r()("min-md:hidden"),children:[" ",(0,t.jsx)(B,{data:l,metafields:n,shopCommon:i,skuList:d,products:s,locale:o,coupons:a})]})]})},M=n(11472),R=e=>{let{metafields:l}=e,{title:n,subTitle:i,text:d,mobSubTitle:s,mobText:o}=l;return(0,t.jsx)("div",{className:r()("flex h-[472px] w-full flex-col items-center justify-center bg-[#FBFBFB]"),children:(0,t.jsxs)("div",{className:r()("w-[1200px] l1:w-full l1:px-[20px]"),children:[(0,t.jsx)("h1",{className:r()("mb-[25px] text-center text-[48px] font-bold leading-[56px] tracking-[-2%] text-[#000000] md:text-[30px] md:leading-[38px]"),children:n}),(0,t.jsxs)("div",{className:r()("md:hidden"),children:[(0,t.jsx)(M.Z,{className:r()("text-center text-[24px] font-[600] leading-[28.8px] tracking-[-2%] text-[#333333] md:text-[16
1px] l1:px-[38px] l1:leading-[19.2px]"),html:i}),(0,t.jsx)(M.Z,{className:r()("mt-[32px] text-center text-[18px] font-[500] leading-[25.2px] text-[#666666] md:text-[14px] md:leading-[19.6px]"),html:d})]}),(0,t.jsxs)("div",{className:r()("min-md:hidden"),children:[(0,t.jsx)(M.Z,{className:r()("text-center text-[24px] font-[600] leading-[28.8px] tracking-[-2%] text-[#333333] md:text-[16px] l1:px-[38px] l1:leading-[19.2px]"),html:s}),(0,t.jsx)(M.Z,{className:r()("mt-[32px] text-center text-[18px] font-[500] leading-[25.2px] text-[#666666] md:text-[14px] md:leading-[19.6px]"),html:o})]})]})})},q=n(87041),O=n(77605),z=!0,V=e=>{var l;let{metafields:n,kol:s,locale:a}=e,u=(0,i.useRouter)(),{component_order:x}=n,p=null==n?void 0:n.shopCommon,v=(0,c.useMemo)(()=>{var e;return(null==s?void 0:null===(e=s.sku_list)||void 0===e?void 0:e.map(e=>e.handle).join(","))||""},[null==s?void 0:s.sku_list]),h=(0,c.useMemo)(()=>{var e;return(null==s?void 0:null===(e=s.sku_list)||void 0===e?void 0:e.map(e=>e.sku))||[]},[null==s?void 0:s.sku_list]),{data:f}=(0,q.Z)({handles:v}),w=[],j=null==f?void 0:null===(l=f.products)||void 0===l?void 0:l.filter(e=>{var l;return(null==e?void 0:null===(l=e.keys)||void 0===l?void 0:l.length)!=0&&(null==e?void 0:e.availableForSale)&&w.push(null==e?void 0:e.handle),e}),b=null==s?void 0:s.sku_list.filter(e=>w.includes(e.handle)),{coupons:g}=(0,O.Z)(h),[N,_]=(0,c.useState)(0);return(0,c.useEffect)(()=>{_(window.innerWidth)},[]),(0,c.useEffect)(()=>{console.log("kol",s)},[s]),u.isFallback?(0,t.jsx)("h1",{children:"Loading..."}):(0,t.jsx)("div",{className:o().container,children:null==x?void 0:x.map(e=>{let{key:l,data:i}=(0,d.IY)(n,e);switch(l){case"recommendations":var o,c;return(0,t.jsxs)("div",{className:r()("bg-[#fafafa]"),children:[(0,t.jsx)("style",{scoped:!0,children:"\n                  @media (min-width: 768px) {\n                    .bgControl {\n                      background-size: 100%;\n                      background-position:center top;\n                      background-repeat: no-repeat;\n                   \n                    }\n                  }\n                  @media (min-width: 1920px) {\n                    .bgControl {\n                      background-size: 1920px!important;\n                      background-position:center top;\n                      background-repeat: no-repeat;\n                   \n                    }\n                  }\n                  "}),(0,t.jsxs)("div",{className:r()(N>768?"bgControl bg-[url('https://cdn.shopify.com/s/files/1/0521/9411/5753/files/PC_3a6e1352-43a1-4551-a63d-025ec561575d.png?v=1713428836')] bg-[40%] bg-no-repeat pb-[109px] l1:bg-cover l1:!bg-[100%]":"bg-[url('https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Mob_1_91552841-2274-40b8-9453-09f42f09e104.png?v=1713774324')] bg-contain bg-[100%] bg-no-repeat"),children:[(0,t.jsx)(m,{metafields:null==i?void 0:i.header,responseData:s}),(null==b?void 0:null===(o=b[0])||void 0===o?void 0:o.video_show_type)==0&&(0,t.jsx)(E,{data:null==i?void 0:i.recommendations,metafields:n,shopCommon:p,skuList:b&&b.slice(0,4)||[],products:j,coupons:g,locale:a||""}),(null==b?void 0:null===(c=b[0])||void 0===c?void 0:c.video_show_type)==1&&(0,t.jsx)(F,{data:null==i?void 0:i.recommendations,metafields:n,shopCommon:p,skuList:b&&b.slice(0,4),locale:a||"",products:j,coupons:g})]})," "]},l);case"other":return b&&b.length>4?(0,t.jsx)(P,{data:i,metafields:n,shopCommon:p,skuList:b.slice(4),products:j,locale:a||"",coupons:g},l):null;case"footer":return(0,t.jsx)(R,{metafields:i},l)}})})}},60853:function(){},66761:function(){},60600:function(e){e.exports={container:"Default_container__VS5Yx",fit:"Default_fit__LmHKS"}}},function(e){e.O(0,[78641,92888,49774,40179],function(){return e(e.s=24143)}),_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.