1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="24877b3c-56e9-4db4-aa2d-ddfccd825d1c",e._sentryDebugIdIdentifier="sentry-dbid-24877b3c-56e9-4db4-aa2d-ddfccd825d1c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8269,86068,66761],{44286:function(e){e.exports=function(e){return e.split("")}},40180:function(e,t,l){var n=l(14259);e.exports=function(e,t,l){var i=e.length;return l=void 0===l?i:l,!t&&l>=i?e:n(e,t,l)}},98805:function(e,t,l){var n=l(40180),i=l(62689),s=l(83140),o=l(79833);e.exports=function(e){return function(t){var l=i(t=o(t))?s(t):void 0,a=l?l[0]:t.charAt(0),r=l?n(l,1).join(""):t.slice(1);return a[e]()+r}}},62689:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},83140:function(e,t,l){var n=l(44286),i=l(62689),s=l(676);e.exports=function(e){return i(e)?s(e):n(e)}},676:function(e){var t="\ud800-\udfff",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",s="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+l+"|"+n+")?",r="[\\ufe0e\\ufe0f]?",d="(?:\\u200d(?:"+[i,s,o].join("|")+")"+r+a+")*",c=RegExp(n+"(?="+n+")|(?:"+[i+l+"?",l,s,o,"["+t+"]"].join("|")+")"+(r+a+d),"g");e.exports=function(e){return e.match(c)||[]}},48403:function(e,t,l){var n=l(79833),i=l(11700);e.exports=function(e){return i(n(e).toLowerCase())}},8400:function(e,t,l){var n=l(14259),i=l(16612),s=l(40554),o=Math.ceil,a=Math.max;e.exports=function(e,t,l){t=(l?i(e,t,l):void 0===t)?1:a(s(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var d=0,c=0,m=Array(o(r/t));d<r;)m[c++]=n(e,d,d+=t);return m}},41609:function(e,t,l){var n=l(280),i=l(64160),s=l(35694),o=l(1469),a=l(98612),r=l(44144),d=l(25726),c=l(36719),m=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||r(e)||c(e)||s(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(d(e))return!n(e).length;for(var l in e)if(m.call(e,l))return!1;return!0}},31683:function(e,t,l){var n=l(98805)("toLowerCase");e.exports=n},18601:function(e,t,l){var n=l(14841),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},40554:function(e,t,l){var n=l(18601);e.exports=function(e){var t=n(e),l=t%1;return t==t?l?t-l:t:0}},11700:function(e,t,l){var n=l(98805)("toUpperCase");e.exports=n},86068:function(e,t,l){"use strict";l.d(t,{cn:function(){return s}});var n=l(90512),i=l(78820);function s(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return(0,i.m)((0,n.W)(t))}},67622:function(e,t,l){"use strict";var n=l(67294);t.Z=e=>{let t;let[l,i]=(0,n.useState)({days:0,hours:0,minutes:0,seconds:0,timerExpired:!1});return t="string"==typeof e?new Date(e).getTime():e,(0,n.useEffect)(()=>{let e=setInterval(()=>{let l=t-new Date().getTime();l<=0?(i({days:0,hours:0,minutes:0,seconds:0,timerExpired:!0}),clearInterval(e)):i({days:Math.floor(l/864e5),hours:Math.floor(l%864e5/36e5),minutes:Math.floor(l%36e5/6e4),seconds:Math.floor(l%6e4/1e3),timerExpired:!1})},1e3);return()=>clearInterval(e)},[t]),l}},51572:function(e,t,l){"use strict";var n=l(85893),i=l(63823),s=l(31683),o=l.n(s),a=l(84434);t.Z=e=>{let{className:t="",page:l={},Sections:s,metafields:r,relatedProducts:d=[],componentProducts:c=[],allProductsCoupons:m=[],customData:x={},useWrap:p=!1,wrapStyle:u}=e,f=Object.keys(s).reduce((e,t)=>{let l=s[t];return e[o()(t)]=l,e},{}),{component_order:h}=r;if(!Array.isArray(h))return null;let v=h.map((e,t)=>{let{key:l,data:s}=(0,i.IY)(r,e);if(!s)return null;let o=f[l];return o?(0,n.jsx)(o,{...s},e+t):null});return(0,n.jsx)(a.Z.Provider,{value:{pageHandle:null==l?void 0:l.handle,page:l,relatedProducts:d,componentProducts:c,allProductsCoupons:m,customData:x,metafields:r},children:p?(0,n.jsx)("div",{className:t,style:u,children:v}):v})}},31711:function(e,t,l){"use strict";var n=l(85893),i=l(31897),s=l(9329),o=l(11472),a=l(39781),r=l(47868),d=l(67294),c=l(67630),m=l(78641),x=l(19703),p=l(99757),u=l(83253),f=l.n(u),h=l(63823),v=l(61506);t.Z=e=>{var t,l;let{isOpen:u,onClose:V,data:g,buyNowArgs:C,redeemModalData:j,page_group:b,locale:w,onRedeemError:N,redeemSuccessFetchCreditInfo:y,getCreditInfo:k,btnBgColor:_}=e,{buyNow:Z,addToCart:D}=(0,i.Z)(),{profile:E,fetchCreditInfo:M}=(0,c.Un)(),{profile:L}=(0,v.U)(),[T,F]=(0,d.useState)(!1),[A,S]=(0,d.useState)(),B=E?"member":"non-member",R=(0,d.useCallback)(e=>{let{product:t,variant:l,coupons:n}=C||{};if(t&&l&&n){let i=[{...t,sku:null==l?void 0:l.sku}];F(!0),(null==C?void 0:C.isAtc)?(D({products:i,coupons:n,customCode:e,callBack:()=>{F(!1)}}),V()):Z({products:i,coupons:n,customCode:e,callBack:()=>{F(!1),(0,m.j)({event:"buynow",product:[t],page_group:b,sku:null==l?void 0:l.sku,login_status:B,position:null==g?void 0:g.title,locale:w})}})}}
1,[C,Z,null==g?void 0:g.title,B,w,b,D]),{trigger:P,isMutating:I}=(0,x.O)({onSuccess(e){var t;if(!e){S(j.commonError);return}if(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.success)y&&(null==L?void 0:L.user_id)&&k&&k(null==L?void 0:L.user_id),R(e.data.coupon_code);else{let t=" ";e.code===p.qv.CodeLpcShopifyCouponRuleRedeemLimit?t=j.redeemLimitError:e.code===p.qv.CodeLpcRuleInventoryNotEnough?t=j.inventoryNotEnough:e.code===p.qv.CodeLpcNotEnoughCredits?(t=j.creditsNotEnough,M()):e.code===p.qv.CodeCrossSiteError&&(t=j.crossSiteError),S(t||j.commonError||""),N&&N(e.code,t||j.commonError||"")}},onError(e){S(e.message||j.commonError)}}),O=(0,d.useCallback)(()=>{var e;I||T||P({user_id:null==E?void 0:E.user_id,rule_id:(null==C?void 0:null===(e=C.creditRule)||void 0===e?void 0:e.id)||0})},[P,C,null==E?void 0:E.user_id,I,T]);return(0,n.jsx)(f(),{isOpen:u,ariaHideApp:!1,overlayClassName:(0,h.cn)("fixed top-0 left-0 right-0 bottom-0 z-[999] flex justify-center bg-black/70 items-end min-l:items-center leading-[1.2]"),className:(0,h.cn)("relative flex h-auto max-h-[calc(100vh-100px)] min-h-[200px] w-full flex-col overflow-hidden rounded-[16px] rounded-b-none bg-white outline-none transition-all duration-300 min-l:h-auto min-l:max-h-[calc(100vh-96px)] min-l:w-auto min-l:!rounded-[16px]"),onRequestClose:V,children:(0,n.jsxs)("div",{className:"w-full min-l:max-w-[640px]",children:[(0,n.jsxs)("div",{className:(0,h.cn)("flex h-[48px] w-full flex-shrink-0 items-center justify-between px-[16px]"),children:[(0,n.jsx)("div",{className:"text-[18px] font-semibold"}),(0,n.jsx)("div",{className:"h-[22px] w-[22px] cursor-pointer",onClick:V,children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8525 5.31015C16.4558 4.91337 15.8125 4.91338 15.4157 5.31015L11.1268 9.5991L6.83815 5.31049C6.44138 4.91372 5.79808 4.91372 5.40131 5.31049C5.00454 5.70726 5.00455 6.35055 5.40131 6.74732L9.68993 11.0359L5.40105 15.3248C5.00428 15.7216 5.00428 16.3649 5.40105 16.7616C5.79782 17.1584 6.44111 17.1584 6.83788 16.7616L11.1268 12.4728L15.416 16.762C15.8128 17.1588 16.456 17.1588 16.8528 16.762C17.2496 16.3652 17.2496 15.7219 16.8528 15.3252L12.5636 11.0359L16.8525 6.74698C17.2493 6.35021 17.2493 5.70692 16.8525 5.31015ZM16.921 6.02856C16.921 6.22992 16.8441 6.43127 16.6905 6.5849L14.465 8.8104L12.2395 11.0359L12.2395 11.0359L16.6905 6.58493C16.8441 6.43129 16.921 6.22993 16.921 6.02856ZM5.34966 6.19087C5.37992 6.3354 5.45115 6.47307 5.56336 6.58528L10.014 11.0359L10.014 11.0359L5.56336 6.58524C5.45116 6.47304 5.37992 6.33539 5.34966 6.19087ZM5.35087 16.2121C5.38193 16.3541 5.45267 16.4891 5.56309 16.5996C5.87037 16.9068 6.36856 16.9068 6.67583 16.5996L11.1268 12.1486L15.578 16.5999C15.8853 16.9072 16.3835 16.9072 16.6908 16.5999C16.8498 16.4409 16.9265 16.23
107 16.9209 16.0223C16.9265 16.2307 16.8498 16.4409 16.6908 16.5999C16.3835 16.9072 15.8853 16.9072 15.578 16.5999L11.1268 12.1487L6.67583 16.5996C6.36856 16.9069 5.87037 16.9069 5.56309 16.5996C5.45267 16.4892 5.38192 16.3541 5.35087 16.2121Z",fill:"#333333"})})})]}),(0,n.jsxs)("div",{className:"max-h-[calc(100vh-400px)] overflow-y-auto min-l:max-h-[328px]",children:[(0,n.jsxs)("div",{className:"relative mx-auto flex h-[200px] w-[342px] items-center justify-center min-l:h-[240px] min-l:w-[456px]",children:[(0,n.jsx)(s.Z,{source:null==g?void 0:g.creditsImgPc,className:"h-full",imgWidth:456,imgHeight:240,imgClassName:"h-full !w-auto l:hidden"}),(0,n.jsx)(s.Z,{source:null==g?void 0:g.creditsImgMob,className:"h-full",imgWidth:342,imgHeight:200,imgClassName:"h-full !w-auto min-l:hidden"}),(0,n.jsxs)("div",{className:"absolute left-1/2 top-1/2 z-[2] -translate-x-1/2 -translate-y-1/2 leading-[1.2]",children:[(0,n.jsx)(o.Z,{html:null==C?void 0:null===(l=C.creditRule)||void 0===l?void 0:null===(t=l.consume_credits)||void 0===t?void 0:t.toString(),className:"text-[56px] font-bold text-[#A43F07] min-l:text-[68px]"}),(0,n.jsx)(o.Z,{html:null==g?void 0:g.eufyCreditsText,className:"text-[16px] font-bold text-[#A43F07] opacity-[.95] min-l:text-[20px]"})]})]}),(0,n.jsx)("div",{className:(0,h.cn)("p-[24px] [&_a]:font-bold [&_ul_li>ul]:!mb-0"),children:(0,n.jsx)(o.Z,{html:null==g?void 0:g.rules,className:"text-[16px] font-semibold text-[#777]"})})]}),(0,n.jsx)("div",{className:"h-[1px] bg-[#E8E8E8]"}),(0,n.jsxs)("div",{className:"p-[24px] !pb-[32px] min-l:p-[32px] min-l:!pt-[24px]",children:[(0,n.jsx)(o.Z,{html:null==g?void 0:g.title,className:"text-center text-[18px] font-semibold leading-[1.4] text-[#333]"}),(0,n.jsx)("div",{className:"flex flex-col items-center justify-center gap-3 min-l:gap-4",children:(0,n.jsx)(a.Z,{variant:"plain",className:(0,h.cn)("mt-6 block h-[42px] w-[184px] rounded-full text-[16px] font-semibold leading-[42px] text-white",{"bg-eufy-color":!_}),style:_?{backgroundColor:_}:{},onClick:O,children:I||T?(0,n.jsx)(r.Z,{}):null==g?void 0:g.btnText})})]})]})})}},39108:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return eX}});var n={};l.r(n),l.d(n,{Ads:function(){return v},Banner:function(){return e_},Claims:function(){return R},CredistExchange:function(){return eH},CreditsExchangeGiftcard:function(){return eY},DoubleEufyCredist:function(){return Y},LiveStream:function(){return eM},MainProduct:function(){return eF},Process:function(){return eU},Products:function(){return eP}});var i=l(85893),s=l(51572),o=l(19536),a=l(9329),r=l(11472),d=l(39781),c=l(67294),m=l(30719),x=l(28197);l(66761),l(84752),l(85204);var p=l(75538),u=l.n(p),f=l(63823),h=l(30175);function v(e){let{ads:t=[]}=e,{pageHandle:l}=(0,h.Z)();return(0,i.jsx)("section",{className:(0,f.cn)(u().mainContainer,"!bg-[#DDFAFE]"),children:(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)(m.tq,{modules:[x.rj,x.pt,x.Gk],mousewheel:{releaseOnEdges:!0,forceToAxis:!0},grabCursor:!0,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:8,className:"w-full",children:t.map((e,t)=>(0,i.jsx)(m.o5,{className:"relative flex !w-[255px] overflow-hidden rounded-[16px] min-md:!w-[calc(33.33%_-_6px)]",children:(0,i.jsxs)(o.Z,{href:"".concat(e.ctaLink,"?ref=").concat(l),children:[(0,i.jsx)(a.Z,{source:"".concat(e.imageUrl,", ").concat(e.mobImageUrl," 768"),className:"w-full"}),(0,i.jsxs)("div",{className:"absolute bottom-[16px] left-[16px] z-10 flex h-[116px] flex-col justify-between text-[#042637] min-md:bottom-[24px] min-md:left-[24px] min-md:h-[28%] min-xxl:h-auto",style:{color:e.textWhiteColor?"#ffffff"
1:"#042637"},children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(r.Z,{className:"text-[16px] font-semibold leading-[1.2] min-md:text-[clamp(16px,1.25vw,24px)]",html:e.title}),(0,i.jsx)(r.Z,{className:"mt-[4px] line-clamp-2 pr-2 text-[14px] leading-[1.2] text-opacity-75",html:e.description})]}),(0,i.jsxs)(d.Z,{className:"mt-[16px] flex items-center text-[16px] !font-semibold min-md:mt-[24px]",variant:"plain",children:[e.ctaText,(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:e.textWhiteColor?"#ffffff":"#042637",children:(0,i.jsx)("path",{d:"M6.19526 12.4712C5.93491 12.2109 5.93491 11.7888 6.19526 11.5284L9.72386 7.99984L6.19526 4.47124C5.93491 4.21089 5.93491 3.78878 6.19526 3.52843C6.45561 3.26808 6.87772 3.26808 7.13807 3.52843L11.1381 7.52843C11.3984 7.78878 11.3984 8.21089 11.1381 8.47124L7.13807 12.4712C6.87772 12.7316 6.45561 12.7316 6.19526 12.4712Z",fill:e.textWhiteColor?"#ffffff":"#042637",stroke:e.textWhiteColor?"#ffffff":"#042637",strokeWidth:"0.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]})},t))})})})}var V=l(67630),g=l(40283),C=l(99757),j=()=>(0,i.jsx)("div",{className:"mb-[16px] mt-[12px] h-[1px] bg-[#005D8E] opacity-50 min-md:mb-[40px] min-md:mt-[24px]"}),b=l(61506),w=l(10156),N=l(5307),y=l(56583),k=l(43033),_=l(11163),Z=l(68422);let D=e=>{let{loginCtaText:t,activeCtaText:l,ctaText:n,handleClick:s,soldOut:o,trackingPosition:a}=e,{locale:r}=(0,_.useRouter)(),{profile:c}=(0,b.U)(),{soldOut:m}=(0,k.Z)(),{pageHandle:x}=(0,h.Z)(),{setRegistrationsPopup:p,setRegistrationsModelStatus:u}=(0,N.l8)(),f=null==c?void 0:c.activated,{triggerSendValidationEmail:v}=(0,Z.N)({email:(null==c?void 0:c.email)||"",mutationOptions:{onSuccess:e=>{var t;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.error_code)==="104"&&window.location.reload(),u(w.hY.ACTIVATE_NO_BACK_BTN),p(!0)}}}),V=async()=>{await v(),(0,y.RC)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_"+x,position:a,button:l}})};return c?f?o?(0,i.jsx)(d.Z,{className:"text-nowrap",disabled:!0,children:m}):(0,i.jsx)(d.Z,{className:"text-nowrap",onClick:()=>{s()},children:n}):(0,i.jsx)(d.Z,{className:"text-nowrap",onClick:V,children:l}):(0,i.jsx)(d.Z,{className:"text-nowrap",onClick:()=>{u(w.hY.MAIN),p(!0)},children:t})},E=e=>{let{text:t=""}=e;return(0,i.jsx)("div",{className:"absolute left-[16px] top-[16px] z-20 rounded-[20px] bg-[#B3ECFB] px-[10px] py-[6px] text-[14px] text-brand-color min-md:left-[20px] min-md:top-[20px]",children:(0,i.jsx)(r.Z,{variant:"inline",className:"font-semibold leading-[1.2] text-brand-color",html:t})})};var M=l(24807),L=l(74951),T=e=>{var t;let{hiText:l,profile:n,description:s,eufycredits:a,balance:c,comingSoon:m,creditInfo:x,learnMoreLink:p}=e,{learn_more:u}=(0,k.Z)(),{pageHandle:f}=(0,h.Z)();return(0,i.jsxs)("div",{className:"w-full",children:[(0,i.jsx)(r.Z,{className:"text-[16px] font-semibold text-[#333333] min-md:text-[24px]",html:(0,L.XK)(l,{userName:(null==n?void 0:n.first_name)?"".concat(null==n?void 0:n.first_name," ").concat(null==n?void 0:n.last_name):null==n?void 0:null===(t=n.email)||void 0===t?void 0:t.split("@")[0]})}),(0,i.jsx)(r.Z,{className:"text-[14px] font-semibold leading-[1.2] text-[#333333] opacity-75 min-md:text-[16px]",html:s}),(0,i.jsxs)("div",{className:"mt-[16px] flex flex-col items-start justify-between overflow-hidden rounded-[12px] bg-[#E0F2F8] px-[16px] py-[16px] min-md:items-center min-md:px-[24px] min-l:flex-row",children:[(0,i.jsxs)("div",{className:"flex gap-[50px] min-md:gap-[80px]",children:[(0,i.jsxs)("div",{className:"leading-[1.2]",children:[(0,i.jsx)(r.Z,{className:"text-[14px] font-semibold text-black min-md:text-[16px]",html:c}),n&&n.activated&&(0,i.jsxs)(r.Z,{className:"text-[24px] font-semibold min-md:text-[48px]",children:[null==x?void 0:x.available_credit,(0,i.jsxs)("span",{className:"text-[14px] min-md:text-[16px]",children:[" ",a]})]})]}),(0,i.jsxs)("div",{className:"leading-[1.2]",children:[(0,i.jsx)(r.Z,{className:"text-[14px] font-semibold text-black min-md:text-[16px]",html:m}),n&&n.activated&&(0,i.jsxs)(r.Z,{className:"text-[24px] font-semibold text-[#9D9D9D] min-md:text-[48px]",children:[null==x?void 0:x.pending_credit,(0,i.jsxs)("span",{className:"text-[14px] min-md:text-[16
1px]",children:[" ",a]})]})]})]}),(0,i.jsx)("div",{className:"mt-[16px] flex-shrink min-md:mt-0 ",children:(0,i.jsx)(o.Z,{href:"".concat(p,"?ref=").concat(f),children:(0,i.jsx)(d.Z,{Component:"a",variant:"plain",className:"font-semibold text-brand-color underline min-md:mt-0 min-md:px-[34px] min-md:text-[20px]",children:u})})})]})]})},F=l(7602),A=l(68228),S=l(20470);let B=e=>{var t,l,n,s,o,d,c,m;let{product:x,memberClaim:p,eufycredits:u,ctaText:f,setRedeemData:h,setModalOpen:v,badgeText:V}=e,{variant:g,isLoading:j}=(0,A.L)({handle:null==x?void 0:null===(t=x.redeemableData)||void 0===t?void 0:t.sku_handle,sku:null==x?void 0:null===(l=x.redeemableData)||void 0===l?void 0:l.goods_sku}),b=x.consumeType===C.cA.Coupon?null===(n=x.redeemableCouponData)||void 0===n?void 0:n.name:null===(s=x.redeemableData)||void 0===s?void 0:s.name,w=x.consumeType===C.cA.Coupon?null===(o=x.redeemableCouponData)||void 0===o?void 0:o.consume_credits:null===(d=x.redeemableData)||void 0===d?void 0:d.consume_credits;return(0,i.jsxs)(i.Fragment,{children:[V&&(0,i.jsx)(E,{text:V}),(0,i.jsx)("div",{children:(0,i.jsx)(a.Z,{source:x.imageUrl||(null==x?void 0:null===(c=x.redeemableData)||void 0===c?void 0:c.goods_url),className:"w-full min-md:h-[320px] min-md:w-[320px]"})}),(0,i.jsxs)("div",{className:"flex w-full flex-col items-start justify-between min-md:flex-row min-md:items-end",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(r.Z,{className:"line-clamp-2 font-semibold leading-[1.2] text-[#042637] min-md:text-[20px]",html:b}),(0,i.jsx)(r.Z,{className:"text-[16px] font-semibold leading-[1.2] text-[#FF5C00] min-md:mt-[16px]",html:p}),(0,i.jsxs)(r.Z,{className:"text-[24px] font-semibold leading-[1.2] min-md:text-[32px]",children:[w,(0,i.jsx)("span",{className:"text-[14px] min-md:text-[16px]",children:" "+u})]})]}),(0,i.jsx)("div",{className:"mt-[16px] min-md:mt-0",children:(0,i.jsx)(D,{loginCtaText:f.login,activeCtaText:f.active,ctaText:f.claim,soldOut:!j&&!(null==g?void 0:g.availableForSale)&&(null==x?void 0:null===(m=x.redeemableData)||void 0===m?void 0:m.consume_type)===C.cA.Product,trackingPosition:"Claim what you want in eufy",handleClick:()=>{var e;h([x.rule_id,null!==(e=x.consumeType)&&void 0!==e?e:C.cA.Product]),v(!0)}})})]})]})};function R(e){var t;let{title:l,hiText:n,description:s,balance:o,comingSoon:p,badgeText:v,products:b,euf
1ycredits:w,introBgImageUrl:N,introText:y,introText2:_,memberClaim:Z,learnMoreLink:L,ctaText:A={login:"",active:"",claim:""}}=e,[R,P]=(0,c.useState)(!1),[I,O]=(0,c.useState)(),[H,U]=(0,c.useState)(""),[W,G]=(0,c.useState)(!1),q=(0,k.Z)(),{customData:z}=(0,h.Z)(),{profile:Y,creditInfo:K}=(0,V.Un)(),{redeemableList:X,getRedeemableList:J}=(0,g.Z)({consumeType:C.cA.Product}),{redeemableList:Q,getRedeemableList:$}=(0,g.Z)({consumeType:C.cA.Coupon}),ee=b.map(e=>({...e,redeemableData:X.find(t=>Number(t.id)===Number(e.rule_id)),redeemableCouponData:Q.find(t=>Number(t.id)===Number(e.rule_id))})),et=(0,c.useMemo)(()=>{let e=[...X,...Q].map(e=>{let t={};if(e.extra)try{t=JSON.parse(e.extra)}catch(e){}return{id:e.id,title:e.name,desc:e.note||"",point:e.consume_credits,rules:e.coupon_rule,couponType:t.type||"",value:t.discount||"",remainingInventory:e.remaining_inventory,isLimited:!!e.is_limited,consumeType:e.consume_type,handle:e.sku_handle,sku:e.goods_sku,productImageUrl:e.goods_url}}),t=[],l=[];return e.forEach(e=>{e.isLimited?e.remainingInventory>0?t.push(e):l.push(e):t.push(e)}),[...t=t.sort((e,t)=>e.point-t.point),...l]},[X,Q]),el=(0,c.useMemo)(()=>et.find(e=>(null==e?void 0:e.id)===(null==I?void 0:I[0])&&(null==e?void 0:e.consumeType)===(null==I?void 0:I[1]))||{},[et,I]),en=(0,c.useCallback)((e,t)=>{U(t||""),P(!1),G(!0),e===C.qv.CodeLpcRuleInventoryNotEnough&&(J({consumeType:C.cA.Product},!0),$({consumeType:C.cA.Coupon},!0))},[$,J]);return(0,i.jsxs)("section",{className:(0,f.cn)("",u().mainContainer),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(r.Z,{className:u().subTitle,html:l}),(0,i.jsx)(j,{})]}),Y&&Y.activated&&(0,i.jsx)(T,{hiText:n,profile:Y,description:s,balance:o,comingSoon:p,creditInfo:K,eufycredits:w,learnMoreLink:L}),(0,i.jsxs)("div",{className:"flex flex-col flex-wrap items-stretch justify-between gap-[8px] pb-[8px] pt-[8px] min-md:flex-nowrap min-md:pt-[24px] min-xl:flex-row",children:[!(null==Y?void 0:Y.activated)&&(0,i.jsxs)("div",{className:"relative box-border flex !h-[400px] !w-[full] flex-shrink-0 flex-col items-center justify-between rounded-[12px] bg-[#e0f2f8] p-[16px] min-md:!h-[490px] min-md:!w-[504px] min-md:p-[24px]",children:[v&&(0,i.jsx)(E,{text:v}),(0,i.jsx)("div",{children:(0,i.jsx)(a.Z,{source:N,className:"relative top-[20px] w-full"})}),(0,i.jsxs)("div",{className:"flex w-full flex-col items-start min-md:flex-row min-md:items-end",children:[(0,i.jsx)(r.Z,{className:"font-semibold leading-[1.2] text-[#042637] min-md:pr-[90px] min-md:text-[16px]",html:Y?(null==Y?void 0:Y.activated)?"":_:y}),(0,i.jsx)("div",{className:"mt-[16px] min-md:mt-0",children:!(null==Y?void 0:Y.activated)&&(0,i.jsx)(D,{loginCtaText:A.login,activeCtaText:A.active,ctaText:A.claim,trackingPosition:"Claim what you want in eufy",handleClick:()=>null})})]})]}),(0,i.jsx)(m.tq,{modules:[x.rj,x.pt,x.Gk],mousewheel:{releaseOnEdges:!0,forceToAxis:!0},grabCursor:!0,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:8,className:"mt-[8px] w-full min-md:mt-0",children:ee.map((e,t)=>(0,i.jsx)(m.o5,{className:"relative box-border flex !h-[400px] !w-[255px] flex-col items-center justify-between rounded-[12px] bg-[#e0f2f8] p-[16px] min-md:!h-[490px] min-md:!w-[504px] min-md:p-[24px]",children:(0,i.jsx)(B,{product:e,memberClaim:Z,eufycredits:w,ctaText:A,setRedeemData:O,setModalOpen:P,badgeText:v})},t))})]}),R&&(null==el?void 0:el.consumeType)===C.cA.Product&&(0,i.jsx)(M.Z,{shopCommon:q,common:z.common,validatorInfo:z.validatorInfo,isOpen:!!R,itemData:el,data:z.redeemModalData,onRedeemError:en,onClose:()=>{P(!1)},pageType:"eufyMember"}),R&&(null==el?void 0:el.consumeType)===C.cA.Coupon&&(0,i.jsx)(S.Z,{shopCommon:q,common:z.common,isOpen:!!el,itemData:el,data:z.redeemModalData,onRedeemError:en,onClose:()=>{P(!1)}}),W&&(0,i.jsx)(F.Z,{operationFailedModalData:{...null==z?void 0:z.errorModal,title:H},operationFailedModal:W,onClose:()=>G(!1),children:(0,i.jsx)("div",{className:"flex flex-col items-center justify-center gap-3 min-l:gap-4",children:(0,i.jsx)(d.Z,{variant:"plain",className:"mt-6 block h-[42px] w-[184px] rounded-full bg-eufy-color text-[16px] font-semibold leading-[42px] text-white",onClick:()=>{G(!1)}
1,children:null==z?void 0:null===(t=z.errorModal)||void 0===t?void 0:t.btnText})})})]})}var P=l(41609),I=l.n(P),O=l(31897),H=l(67057),U=l(16338),W=l(78641),G=l(18254),q=l(46911);let z=e=>{var t,l,n,s;let{sku:d,handle:m,multiple:x,productData:p,badgeText:u,earnPointsText:f,ctaText:v={login:"",active:""},allProductsCoupons:V}=e,{locale:g}=(0,_.useRouter)(),{buyNow:C}=(0,O.Z)(),{soldOut:j,buyNow:w=""}=(0,k.Z)(),{pageHandle:N}=(0,h.Z)(),{profile:y}=(0,b.U)(),{couponInfo:{priceFormatted:Z,discountPriceFormatted:M,isDiscount:T,coupons:F},variant:A}=(0,H.Z)({handle:m,product:p,allProductsCoupons:V,sku:d}),S=(0,c.useMemo)(()=>(null==V?void 0:V.find(e=>(null==e?void 0:e.sku)===d&&(null==e?void 0:e.handle)===m))||{},[V,d,m]),B=Math.ceil((T?(0,q._L)({coupon:S,price:(null==A?void 0:A.price)||0,locale:g}):null==A?void 0:A.price)*Number(x)),R=(null==A?void 0:null===(t=A.image)||void 0===t?void 0:t.url)||(null==p?void 0:null===(n=p.images)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.url),P=(null==A?void 0:A.id)&&(null===(s=((null==A?void 0:A.id)+"").split("/"))||void 0===s?void 0:s.pop()),I=P?{label:"variant",val:P}:void 0,G="/products/".concat(p.handle,"?ref=").concat(N);return(0,i.jsxs)("div",{className:"relative box-border h-full w-full rounded-[12px] bg-[#E0F2F8] px-[16px] py-[16px] min-md:px-[24px] min-md:py-[24px]",children:[(0,i.jsx)(E,{text:u}),(0,i.jsx)(o.Z,{className:"flex justify-center",href:G,params:I,children:(0,i.jsx)(a.Z,{source:R,className:"h-[214px] w-[214px] min-md:h-[320px] min-md:w-[320px]"})}),(0,i.jsx)(o.Z,{href:G,params:I,children:(0,i.jsx)(r.Z,{className:"line-clamp-1 text-[20px] font-semibold leading-[1.2] text-[#042637]",html:null==p?void 0:p.title})}),(0,i.jsxs)("div",{className:"flex flex-grow flex-col items-start justify-between min-md:flex-row min-md:items-end",children:[(0,i.jsxs)("div",{className:"flex flex-col justify-end gap-[4px] min-md:gap-[12px]",children:[(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)(U.Z,{styles:{price:"text-[16px] min-l:!text-[18px]",basePrice:"!text-[14px] min-l:!text-[16px]"},settings:{soldOut:j},className:"mt-4 flex-wrap min-md:h-[43px] min-l:mt-3 min-l:h-[22px] min-l:flex-nowrap",availableForSale:null==A?void 0:A.availableForSale,price:T?M:Z,basePrice:T?Z:"",free:!1})}),(0,i.jsx)(r.Z,{className:"line-clamp-2 text-[16px] font-semibold text-[#FF5C00]",html:(0,L.XK)(f,{count:B})})]}),(0,i.jsx)("div",{className:"mt-[16px] min-md:mt-0",children:(0,i.jsx)(D,{loginCtaText:v.login,activeCtaText:v.active,ctaText:w,handleClick:()=>{if(!(null==A?void 0:A.availableForSale))return;let e=[{...p,sku:null==A?void 0:A.sku}];C({products:e,coupons:F,callBack:()=>{(0,W.j)({event:"buynow",product:e,page_group:N,sku:null==A?void 0:A.sku,login_status:y?"member":"non-member",position:"Double earn eufyCredits",locale:g})}})},soldOut:!(null==A?void 0:A.availableForSale),trackingPosition:"Double earn eufyCredits"})})]})]})};function Y(e){let{title:t,badgeText:l,earnPointsText:n,ctaText:s={login:"",active:""},products:o=[]}=e,{checkProductTags:a}=(0,G.J)(),{componentProducts:d,allProductsCoupons:c}=(0,h.Z)(),p=o.map(e=>{var t;return{...e,productData:null!==(t=d.find(t=>t.handle===e.handle))&&void 0!==t?t:{}}}).filter(e=>a(null==e?void 0:e.productData));return(0,i.jsxs)("section",{className:(0,f.cn)(u().mainContainer,"!pr-0 min-md:pb-[40px]"),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(r.Z,{className:u().subTitle,html:t}),(0,i.jsx)(j,{})]}),(0,i.jsx)("div",{children:(0,i.jsx)(m.tq,{modules:[x.rj,x.pt,x.Gk],mousewheel:{releaseOnEdges:!0,forceToAxis:!0},grabCursor:!0,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:8,className:"flex gap-[8px]",children:p.map((e,t)=>I()(e.productData)?null:e.productData.availableForSale&&(0,i.jsx)(m.o5,{className:"!w-[255px] overflow-hidden min-md:!w-[504px]",children:(0,i.jsx)(z,{badgeText:l,earnPointsText:n,allProductsCoupons:c,ctaText:s,...e})},t))})})]})}var K=l(30295),X=l(34446),J=l.n(X),Q=l(83322),$=l(60492),ee=e=>{var t;let{title:l,title2:n,subTitle:s,subTitle2:o,cardIcon:a,icons:m=[],ctaSignUpText:x,ctaActiveNowText:p,ctaSignInText:v,rulesCtaText:V,rulesTitle:g,rulesText:C}=e,{locale:j}=(0,_.useRouter)(),{profile:k,isFinish:D}=(0,b.U)(),{pageHandle:E}=(0,h.Z)(),[M,T]=(0,c.useState)(!1);(0,c.useMemo)(()=>(0,w.PO)(j),[j]);let{setRegistrationsPopup:F,setRegistrationsModelStatus:A}=(0,N.l8)();(0,Q.Z)(()=>{let e=[2,3,4];J().utils.toArray(".bounce-ball").forEach((t,l)=>{J().to(t,{y:e.includes(l)?"20%":"-20%",duration:1.5,repeat:-1,yoyo:!0,delay:()=>Math.random()})})});
1let{triggerSendValidationEmail:S}=(0,Z.N)({email:(null==k?void 0:k.email)||"",mutationOptions:{onSuccess:e=>{var t;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.error_code)==="104"&&window.location.reload(),A(w.hY.ACTIVATE_NO_BACK_BTN),F(!0)}}}),B=async()=>{await S(),(0,y.RC)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page_"+E,position:"masterBanner",button:p}})};return(0,i.jsxs)("div",{className:(0,f.cn)(u().heroBannerBg,"relative flex h-[460px] items-center justify-center pt-[30px] min-md:h-[46.87vw] min-md:pt-0"),children:[(0,i.jsxs)("div",{className:"relative text-center min-md:pt-6",children:[(0,i.jsx)("div",{className:"bounce-ball absolute -top-[10%] left-[50%] h-[46px] w-[46px] overflow-hidden rounded-full bg-transparent backdrop-blur-[1px] [animation-duration:_2s] min-md:-top-[25%] min-md:h-[5.31vw] min-md:max-h-[102px] min-md:w-[5.31vw] min-md:max-w-[102px]",children:(0,i.jsx)("img",{src:a,className:"rounded-full bg-transparent",alt:""})}),m.map((e,t)=>(0,i.jsx)("div",{className:(0,f.cn)("bounce-ball absolute left-0 top-0 h-[46px] w-[46px] overflow-hidden rounded-full bg-transparent backdrop-blur-[1px] [animation-duration:_2s] min-md:h-[5.31vw] min-md:max-h-[102px] min-md:w-[5.31vw] min-md:max-w-[102px]",{"left-[22%] top-[46%] min-md:left-[20%] min-md:top-[36%]":0===t,"left-[82%] top-[39%] min-md:left-[100%] min-md:top-[19%]":1===t,"left-[75%] top-[-25%] min-md:-top-[5%]":2===t,"left-[72%] top-[0%] min-md:left-[86%] min-md:top-[44%]":3===t,"left-[3%] top-[24%] min-md:-left-[5%] min-md:top-[54%]":4===t,"left-[10%] top-[-10%]":5===t}),children:(0,i.jsx)("img",{src:e,className:"rounded-full bg-transparent",alt:""})},t)),(0,i.jsx)(r.Z,{className:"px-[50px] text-[32px] font-semibold leading-[1.2] min-md:text-[clamp(32px,4.58vw,88px)]",html:k&&k.activated?(0,L.XK)(n,{userName:(null==k?void 0:k.first_name)?"".concat(null==k?void 0:k.first_name," ").concat(k.last_name):null==k?void 0:null===(t=k.email)||void 0===t?void 0:t.split("@")[0]}):l}),(0,i.jsx)(r.Z,{className:"mx-auto mt-[16px] px-8 text-[14px] font-semibold leading-[1.2] opacity-75 min-md:mt-[38px] min-md:w-[60%] min-md:text-[clamp(14px,1.25vw,24px)]",html:k&&k.activated?o:s}),(0,i.jsxs)("div",{className:"mt-[32px] flex items-center justify-center gap-3",children:[D&&!k&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{className:"btn btn-primary !px-[34px]",onClick:()=>{A(w.hY.MAIN),F(!0)},children:x}),(0,i.jsx)(d.Z,{variant:"secondaryBlack",className:"btn btn-secondary !border-[#005D8E] !px-[46px] text-[#005D8E] hover:!bg-brand-color",onClick:()=>{A(w.hY.QUICK_LOGIN),F(!0)},children:v})]}),D&&k&&!k.activated&&(0,i.jsxs)("div",{className:"flex flex-col items-center",children:[(0,i.jsx)(d.Z,{className:"btn btn-secondary !px-[34px]",onClick:B,children:p}),(0,i.jsx)(d.Z,{variant:"plain",onClick:()=>{T(!0)},className:"btn btn-secondary mt-[12px] text-[18px] font-semibold text-brand-color underline",children:V})]})]})]}),(0,i.jsx)($.R,{isOpen:M,onClose:()=>T(!1),title:g,children:(0,i.jsx)(r.Z,{html:C})})]})},et=e=>((0,Q.Z)(()=>{J().to(".number-counter",{scrollTrigger:{trigger:".number-counter",start:"top 90%",end:"bottom 10%"},duration:1,snap:{innerHTML:1},innerHTML:e.membersNumber})}),(0,i.jsxs)("div",{className:(0,f.cn)(u().mainContainer,"flex w-full flex-col items-center justify-between gap-[24px] !bg-[#DDFAFE] px-[18px] pb-[20px] pt-[40px] min-md:max-h-[1111px] min-md:flex-row min-md:gap-[clamp(40px,8vw,156px)] min-md:px-[195px] min-md:pb-[70px] min-md:pt-[70px]"),children:[(0,i.jsxs)("div",{className:"flex-grow-0 min-md:w-[50%]",children:[(0,i.jsxs)("div",{className:"flex items-end justify-between",children:[(0,i.jsxs)(r.Z,{className:"text-[40px] font-semibold leading-[1.2] text-[#042637] min-md:text-[clamp(40px,4.5vw,88px)]",children:[(0,i.jsx)("span",{className:"number-counter",children:"0"}),"+"]}),(0,i.jsx)(r.Z,{className:"text-[16px] font-semibold leading-[1.2] text-[#042637] min-md:text-[clamp(16px,2vw,32px)]",children:e.membersText})]}),(0,i.jsx)("div",{className:"my-[12px] h-[1px] w-full bg-[#000] opacity-40 min-md:my-[16px]"}),(0,i.jsx)("div",{children:(0,i.jsx)(r.Z,{className:"text-[14px] font-semibold text-[#042637] text-opacity-75 min-md:mt-[40px] min-md:text-[14px]",html:e.membersDesc})})]}),(0,i.jsx)(a.Z,{source:e.avatars,className:"max-h-[730px] w-full max-w-[730px] flex-shrink-0 overflow-hidden min-md:h-[32vw] min-md:w-[32vw]"})]})),el=l(36808),en=l.n(el),ei=l(29421),es=l.n(ei),eo=l(48403),ea=l.n(eo);function er(){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",viewBox:"0 0 912 317",fill:"none",className:"data_lines_svg",children:[(0,i.jsx)("path",{d:"M456 -195C456 463.876 -78.1243 998 -737 998",stroke:"#C7EAF3",vectorEffect:"non-scaling-stroke",strokeWidth:"4"}),(0,i.jsx)("path",{d:"M456 -195C456 463.876 990.124 998 1649 998",stroke:"#C7EAF3",vectorEffect:"non-scaling-stroke",strokeWidth:"4"}),(0,i.jsx)("path",{d:"M456 -195C456 1747.94 -1119.06 3323 -3062 3323",stroke:"#C7EAF3",vectorEffect:"non-scaling-stroke",strokeWidth:"4"}),(0,i.jsx)("path",{d:"M456 -195C456 1747.94 2031.06 3323 3974 3323",stroke:"#C7EAF3",vectorEffect:"non-scaling-stroke",strokeWidth:"4"}),(0,i.jsx)("path",{d:"M456 -195C456 187.733 145.733 498 -237 498",stroke:"#C7EAF3",vectorEffect:"non-scaling-stroke",strokeWidth:"4"}),(0,i.jsx)("path",{d:"M456 -195C456 91.6358 223.636 324 -63 324",stroke:"#C7EAF3",vectorEffect:"non-scaling-stroke",strokeWidth:"4"}),(0,i.jsx)("path",{d:"M456 -195C456 187.733 766.267 498 1149 498",stroke:"#C7EAF3",vectorEffect:"non-scaling-stroke",strokeWidth:"4"}),(0,i.jsx)("path",{d:"M456 -195C456 91.6358 688.364 324 975 324",stroke:"#C7EAF3",vectorEffect:"non-scaling-stroke",strokeWidth:"4"}),(0,i.jsx)("path",{d:"M456 -195C456 463.876 -78.1243 998 -737 998",stroke:"#005D8E",vectorEffect:"non-scaling-stroke",strokeWidth:"4",strokeDasharray:"1000px 99999px",strokeDashoffset:"0",className:"data_line-animate",style:{strokeDashoffset:"0px"}}),(0,i.jsx)("path",{d:"M456 -195C456 463.876 990.124 998 1649 998",stroke:"#005D8E",vectorEffect:"non-scaling-stroke",strokeWidth:"4",strokeDasharray:"1000px 99999px",strokeDashoffset:"0",className:"data_line-animate",style:{strokeDashoffset:"0px"}}),(0,i.jsx)("path",{d:"M456 -195C456 1747.94 -1119.06 3323 -3062 3323",stroke:"#005D8E",vectorEffect:"non-scaling-stroke",strokeWidth:"4",strokeDasharray:"1000px 99999px",strokeDashoffset:"0",className:"data_line-animate",style:{strokeDashoffset:"0px"}}),(0,i.jsx)("path",{d:"M456 -195C456 1747.94 2031.06 3323 3974 3323",stroke:"#005D8E",vectorEffect:"non-scaling-stroke",strokeWidth:"4",strokeDasharray:"1000px 99999px",strokeDashoffset:"0",className:"data_line-animate",style:{strokeDashoffset:"0px"}}),(0,i.jsx)("path",{d:"M456 -195C456 187.733 145.733 498 -237 498",stroke:"#005D8E",vectorEffect:"non-scaling-stroke",strokeWidth:"4",strokeDasharray:"1000px 99999px",strokeDashoffset:"0",className:"data_line-animate",style:{strokeDashoffset:"0px"}}),(0,i.jsx)("path",{d:"M456 -195C456 91.6358 223.636 324 -63 324",stroke:"#005D8E",vectorEffect:"non-scaling-stroke",strokeWidth:"4",strokeDasharray:"1000px 99999px",strokeDashoffset:"0",className:"data_line-animate",style:{strokeDashoffset:"0px"}}),(0,i.jsx)("path",{d:"M456 -195C456 187.733 766.267 498 1149 498",stroke:"#005D8E",vectorEffect:"non-scaling-stroke",strokeWidth:"4",strokeDasharray:"1000px 99999px",strokeDashoffset:"0",className:"data_line-animate",style:{strokeDashoffset:"0px"}}),(0,i.jsx)("path",{d:"M456 -195C456 91.6358 688.364 324 975 324",stroke:"#005D8E",vectorEffect:"non-scaling-stroke",strokeWidth:"4",strokeDasharray:"1000px 99999px",strokeDashoffset:"0",className:"data_line-animate",style:{strokeDashoffset:"0px"}})]})}var ed=l(77930),ec=l.n(ed),em=l(27484),ex=l.n(em),ep=l(24950),eu=l(67622),ef=l(99385),eh=l(13387),ev=l(90731),eV=l(15425),eg=l(25362),eC=l(10494);J().registerPlugin(es());let ej=e=>{let{text:t}=e;return(0,i.jsxs)("div",{className:"slide-right mb-[6px] flex items-start justify-center px-[20px] text-center min-md:mb-[16px] min-md:px-[40px] min-xl:px-0",children:[(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13",fill:"none",className:"h-[20px] w-[20px] flex-shrink-0",children:[(0,i.jsx)("circle",{cx:"6.5",cy:"6.79999",r:"6",fill:"#042637"}),(0,i.jsx)("path",{d:"M3.5 6.8L5.44185 8.74185C5.68898 8.98898 6.09421 8.97342 6.32167 8.70806L9.5 5",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round"})]}),(0,i.jsx)(r.Z,{className:"mx-auto ml-[8px] flex-shrink text-left text-[14px] font-semibold leading-[1.2] opacity-75 min-md:text-[14px]",children:t})]})},eb=e=>{var t,l;let{customData:n}=(0,h.Z)(),[s,o]=(0,c.useState)("main"),a=(0,eg.dd)(eC.Z),d=(0,c.useCallback)(e=>{switch(e){case w.hY.QUICK_LOGIN:ev.Z.closeTrack({position:"",page_group:"login_pop",button_name:"close"});break;case w.hY.REMAINDER:ev.Z.closeTrack({position:"",page_group:"reg_sub_pop",button_name:"close"});break;case w.hY.PASSWORD_LOGIN:ev.Z.closeTrack({position:"",page_group:"login_pop",button_name:"close"});break;case w.hY.COUPONS:ev.Z.closeTrack({position:"success",page_group:"reg_sub_pop",button_name:"close"});let t=window.location.host.split("."),l=window.location.host.includes("localhost")?"localhost":".".concat(t[1],".").concat(t[2]),n=en().get("passport-login-url");n&&en().remove("passport-login-url",{domain:l,expires:30}),n&&(a.show(),window.location.href=n+"?ref=member_activation")}o("main")},[a]);return(0,i.jsxs)("div",{id:"newMemberSignUp",className:"flex min-h-[350px] w-full flex-col justify-between rounded-lg bg-[#005D8E] px-[16px] py-[24px] text-white min-md:min-h-[300px] min-md:px-[24px] min-xl:w-[44.68vw] min-xl:max-w-[860px]",children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n #newMemberSignUp\n input[name='registrations[email]'] {\n background-color: #005d8e;\n color: rgba(255,255,255,0.5);\n border-color: rgba(255,255,255,0.5);\n }\n #newMemberSignUp\n input[name='registrations[email]']::
1placeholder {\n color: rgba(255,255,255,0.5) !important;\n }\n #newMemberSignUp\n button[class^='RegistrationsComponent_registrations_btn_main'] {\n background: #ffffff;\n flex-grow: 1;\n text-wrap: nowrap;\n color: #000000;\n white-space: nowrap;\n padding-left: 20px;\n padding-right: 20px;\n min-width: unset;\n }\n #newMemberSignUp span[class^='RegistrationsComponent_rsm_checkout_text'] {\n color: rgba(255,255,255,0.75);\n }\n #newMemberSignUp span[class^='RegistrationsComponent_rsm_checkout_text'] a{\n color: rgba(255,255,255,0.75);\n }\n #newMemberSignUp input[class^='RegistrationsComponent_rsm_checkout']:checked {\n background-color: #ffffff;\n }\n #newMemberSignUp input[class^='RegistrationsComponent_rsm_checkout']:checked:after {\n border: solid #015d8e;\n border-width: 0 2px 2px 0;\n }\n #newMemberSignUp modal[class^='RegistrationsComponent_registrations_model'] {\n z-index: 999999 !important;\n }\n "}}),(0,i.jsxs)("div",{className:"mb-[12px] flex-shrink min-md:mb-0",children:[(0,i.jsx)(r.Z,{className:"line-clamp-3 text-wrap text-[28px] font-semibold leading-[1.1] -tracking-[0.96px] min-md:text-[clamp(24px,2.5vw,48px)]",html:e.signUpTitle}),(0,i.jsx)(r.Z,{className:"text-[16px] font-semibold leading-[1.1] -tracking-[0.4px] min-md:mt-[9px] min-md:text-[clamp(16px,1vw,20px)]",html:e.signUpSubTitle})]}),(0,i.jsx)(ep.Z,{data:{...n.registrationsSettings,globalCountry:n.globalCountry,registrationsMain:{...null===(t=n.registrationsSettings)||void 0===t?void 0:t.registrationsMain,...null===(l=n.footerSetting)||void 0===l?void 0:l.registrations,title:void 0,subtitle:void 0,register_text:e.signUpBtn,placeholder:e.signUpPlaceholder}},onClose:d,gs:ec(),currentStatus:s,setCurrentStatus:o,loadingColor:"#005D8E"})]})},ew=e=>{let{coupon:t,timeNoLimitText:l,noThresholdText:n,couponText:s}=e,{countDown:o,copy:a,copied:d,code:c}=(0,k.Z)(),{pageHandle:m}=(0,h.Z)(),{days:x,hours:p,minutes:u,seconds:f}=(0,eu.Z)(1e3*ex()(t.expired_at||0).unix()),{copyToClipboard:v,isCopied:V}=(0,ef.Z)(),[g]=(0,eh.Z)({value:t.value,discountType:t.value_type}),C=[{unit:x,label:null==o?void 0:o.days},{unit:p,label:null==o?void 0:o.hours},{unit:u,label:null==o?void 0:o.minutes},{unit:f,label:null==o?void 0:o.seconds}],j=e=>{v(e),(0,y.RC)({event:"ga4Event",event_name:"copy_coupon_code",event_parameters:{page_group:"Activity Page_"+m,coupon_name:e}})};return(0,i.jsxs)("div",{className:"relative mx-auto flex max-h-[314px] w-full flex-col justify-between overflow-hidden rounded-3xl bg-[#005D8E] p-6 px-[16px] py-[24px] text-white min-md:mx-auto min-md:aspect-[858/323] min-md:max-h-[340px] min-md:w-[80%] min-md:flex-row min-md:items-center min-md:gap-[20px] min-md:px-[2vw] min-md:py-[2.6vw] min-xl:w-[44.68vw] min-xl:max-w-[860px] min-xxl:px-[60px] min-xxl:py-[50px]",children:[(0,i.jsx)("div",{className:"absolute -left-4 top-1/2 hidden h-16 w-8 -translate-y-1/2 transform rounded-r-full bg-[#DDFAFE] min-md:block"}),(0,i.jsx)("div",{className:"absolute -right-4 top-1/2 hidden h-16 w-8 -translate-y-1/2 transform rounded-l-full bg-[#DDFAFE] min-md:block"}),(0,i.jsxs)("div",{className:"relative z-10 order-2 flex h-full flex-grow flex-col justify-between min-md:w-[50%] min-xl:order-1",children:[(0,i.jsxs)("div",{className:"min-md:mb-[24px]",children:[(0,i.jsx)("h2",{className:"text-nowrap text-[32px] font-semibold text-opacity-75 min-md:text-[clamp(20px,2.5vw,48px)] min-md:font-semibold",children:(0,L.XK)(s,{value:g})}),(0,i.jsx)(r.Z,{html:t.brief||n,className:"font-semibold text-opacity-75 min-md:text-[clamp(16px,1vw,20px)]"}),!t.expired_at&&(0,i.jsx)(r.Z,{html:l,className:"font-semibold text-opacity-75 min-md:text-[clamp(16px,1vw,20px)]"})]}),(0,i.jsxs)("div",{className:"mt-[24px] flex flex-shrink-0 flex-col items-center overflow-hidden rounded-[32px] bg-[#2C78A0] py-[12px] text-white min-md:mt-0 min-md:h-[47px] min-md:flex-row min-md:py-0",children:[(0,i.jsx)("span",{className:"flex-grow text-center text-[16px] min-md:ml-[clamp(16px,1.6vw,32px)]",children:"".concat(c,": ").concat(t.code)}),(0,i.jsx)("button",{className:"hidden h-full rounded-[68px] bg-white text-[16px] text-[#2C78A0] min-md:block min-md:w-[110px]",onClick:()=>j(t.code),children:V?d:a})]}),(0,i.jsx)("button",{className:"mt-[12px] rounded-[68px] bg-white py-[12px] text-[16px] text-[#2C78A0] min-md:hidden min-md:w-[110px]",onClick:()=>j(t.code),children:V?d:a})]}),t.expired_at&&(0,i.jsx)("div",{className:"order-1 mb-0 flex justify-start min-md:mb-4 min-md:w-[50%] min-md:justify-between min-xl:order-2",children:C.map((e,t)=>{let{unit:l,label:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"text-center",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"mb-1 flex h-[40px] w-[40px] items-center justify-center rounded-[7px] bg-[#00496F] bg-opacity-50 min-md:h-[3.3vw] min-md:max-h-[64px] min-md:w-[3.3vw] min-md:max-w-[64px]",children:(0,i.jsx)("span",{className:"font-semibold min-md:text-[clamp(16px,1.25vw,24px)]",children:l})}),(0,i.jsx)("div",{className:"hidden font-semibold min-md:block min-md:text-[14px]",children:ea()(n)})]})},t),t<C.length-1&&(0,i.jsxs)("svg",{width:"4",height:"55",viewBox:"0 0 4 55",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"relative -top-[20%] mx-[4px] min-md:top-0 min-md:mx-[4px]",children:[(0,i.jsx)("circle",{cx:"2",cy:"25",r:"2",fill:"#00496F"}),(0,i.jsx)("circle",{cx:"2",cy:"37",r:"2",fill:"#00496F"})]})]})})})]})},eN=e=>{let{title:t,ctaText:l,noCouponCtaLink:n,noCouponBgImage:s,noCouponBgImageMob:c}=e,{pageHandle:m}=(0,h.Z)();return(0,i.jsxs)("div",{className:"relative mx-auto aspect-[355/314] w-[355px] max-w-[858px] min-l:aspect-[858/323] min-l:w-[44.68vw]",children:[(0,i.jsx)(a.Z,{source:"".concat(s,", ").concat(c," 1024"),className:"h-full w-full",imgClassName:"h-full object-cover rounded-[12px]"}),(0,i.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-10 flex flex-col justify-between px-[16px] py-[24px] min-md:flex-col min-md:px-[40px] min-md:py-[36px]",children:[(0,i.jsx)(r.Z,{html:t,className:"text-[32px] font-semibold leading-[1.1] -tracking-[0.96px] text-white min-md:text-[clamp(32px,2.1vw,48px)] min-xl:pr-[180px]"}),(0,i.jsx)(o.Z,{href:"".concat(n,"?ref=").concat(m),children:(0,i.jsx)(d.Z,{className:"!w-full !bg-white !text-[16
1px] !text-[#333] min-md:!w-[200px] min-md:py-[14px]",children:l})})]})]})};var ey=e=>{let{profile:t}=(0,V.Un)(),{coupons:l,noCouponCtaLink:n,noCouponTitle:s,noCouponCtaText:o,signUpBgImage:d,couponPriority:m=[],noCouponBgImage:x,noCouponBgImageMob:p,timeNoLimitText:h,noThresholdText:v,couponText:g,isFinish:C}=e,j=(0,eV.Z)({coupons:l,couponPriority:m});return(0,c.useEffect)(()=>{let e=J().fromTo(".slide-right",{x:"-100%",opacity:0},{scrollTrigger:{trigger:".textContainer",start:"top 90%",end:"bottom 10%",toggleActions:"restart none none reset"},x:"0%",opacity:1,duration:1,stagger:.2}),t=J().timeline({scrollTrigger:{trigger:".data_lines",start:"top 70%",end:"bottom center",scrub:1}});if(t.fromTo(".data_line-animate",{strokeDashoffset:1e3},{strokeDashoffset:0,ease:"none"}),C){var l,n;null===(l=e.scrollTrigger)||void 0===l||l.refresh(),null===(n=t.scrollTrigger)||void 0===n||n.refresh()}return()=>{}},[C]),(0,i.jsxs)("div",{className:(0,f.cn)(u().mainContainer,"relative overflow-hidden !bg-[#DDFAFE] pt-[40px] min-md:pt-[160px]"),children:[(0,i.jsxs)("div",{className:"flex w-full flex-col gap-[40px] min-md:items-center min-md:justify-between min-md:gap-[1.5vw] min-xl:flex-row",children:[(0,i.jsxs)("div",{className:"order-1 w-full text-center leading-[1.2] text-[#042637] min-xl:order-1 min-xl:w-[25%]",children:[(0,i.jsx)(r.Z,{className:"min-xl px-[60px] text-[24px] font-semibold min-md:px-0 min-md:text-[clamp(18px,1.6vw,32px)] min-xl:text-left",html:e.howToGetTitle}),(0,i.jsx)(r.Z,{className:"mt-[8px] px-[20px] text-[14px] font-semibold leading-[1.2] opacity-75 min-md:mt-[24px] min-md:px-0 min-md:text-left min-md:text-[16px]",html:e.howToGetDesc})]}),(0,i.jsxs)("div",{className:(0,f.cn)("relative z-20 order-3 mt-[128px] flex justify-center min-xl:order-2 min-xl:mt-0 min-xl:self-end"),children:[(0,i.jsx)("div",{className:"z-10 w-full",children:t?j?(0,i.jsx)(ew,{coupon:j,timeNoLimitText:h,noThresholdText:v,couponText:g}):(0,i.jsx)(eN,{title:s,ctaText:o,noCouponCtaLink:n,noCouponBgImage:x,noCouponBgImageMob:p}):(0,i.jsx)(eb,{...e})}),(0,i.jsx)(a.Z,{source:d,className:"absolute left-[50%] top-0 h-full w-[80%] max-w-[500px] -translate-x-[50%] -translate-y-[32%] min-md:-translate-y-[38%] min-xsl:-translate-y-[44%]"})]}),(0,i.jsxs)("div",{className:"order-2 w-full text-center leading-[1.2] text-[#042637] min-xl:order-3 min-xl:w-[25%]",children:[(0,i.jsx)(r.Z,{className:"px-[60px] text-[24px] font-semibold leading-[1.2] min-md:px-0 min-md:text-[clamp(18px,1.6vw,32px)] min-xl:text-left",html:e.whatCanBuyTitle}),(0,i.jsx)("div",{className:"textContainer mt-[8px] leading-[1.2] min-md:mt-[24px]",children:e.whatCanBuyDesc.map((e,t)=>(0,i.jsx)(ej,{text:e},t))})]})]}),(0,i.jsx)("div",{className:"data_lines mx-auto w-[356px] min-md:w-[44vw] min-md:max-w-[860px]",style:{willChange:"opacity",opacity:1},children:(0,i.jsx)(er,{})})]})},ek=l(95591);function e_(e){var t,l;let{profile:n,isFinish:s}=(0,b.U)(),{locale:o}=(0,_.useRouter)(),a=(0,c.useMemo)(()=>(0,w.PO)(o),[o]),r=s&&n&&a&&o,{data:d}=(0,ek.ZP)(r?"api/multipass/rainbowbridge/activities/eufy_register_code":null,()=>(0,K.Z)({locale:o,email:null==n?void 0:n.email,app:a}));return(0,i.jsxs)("section",{className:"overflow-hidden bg-[#DDFAFE]",children:[(0,i.jsx)(ee,{...e}),s&&!n&&(0,i.jsx)(et,{...e}),(0,i.jsx)(ey,{...e,coupons:null!==(l=null==d?void 0:null===(t=d.data)||void 0===t?void 0:t.coupons)&&void 0!==l?l:[],isFinish:s})]})}var eZ=e=>(0,i.jsxs)("svg",{width:"290",height:"597",viewBox:"0 0 290 597",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{d:"M287.943 164.756H288.972C289.54 164.756 290 165.217 290 165.786V227.569C290 228.137 289.54 228.599 288.972 228.599H287.943V164.756Z",fill:"#74B5DB"}),(0,i.jsx)("path",{d:"M2.05664 242.328L1.02827 242.328C0.460316 242.328 -0.000100294 241.867 -0.000100244 241.298L-9.68881e-05 202.856C-9.68384e-05 202.287 0.46032 201.826 1.02827 201.826L2.05664 201.826L2.05664 242.328Z",fill:"#74B5DB"}),(0,i.jsx)("path",{d:"M2.05664 190.842L1.02827 190.842C0.460316 190.842 -0.000100294 190.381 -0.000100244 189.812L-9.68881e-05 151.369C-9.68384e-05 150.8 0.46032 150.339 1.02827 150.339L2.05664 150.339L2.05664 190.842Z",fill:"#74B5DB"}),(0,i.jsx)("path",{d:"M2.05664 132.49L1.02827 132.49C0.460318 132.49 -9.85114e-05 132.029 -9.84618e-05 131.461L-9.69634e-05 114.299C-9.69138e-05 113.73 0.460319 113.269 1.02827 113.269L2.05664 113.269L2.05664 132.49Z",fill:"#74B5DB"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23818 30.8325C2.05713 37.5539 2.05713 45.8592 2.05713 62.4697V526.53C2.05713 543.141 2.05713 551.446 4.23818 558.167C8.64622 571.752 19.2826 582.402 32.8492 586.816C39.5617 589 47.8561 589 64.4448 589H225.556C242.145 589 250.439 589 257.152 586.816C270.718 582.402 281.355 571.752 285.763 558.167C287.944 551.446 287.944 543.141 287.944 526.53V62.4697C287.944 45.8592 287.944 37.5539 285.763 30.8325C281.355 17.2481 270.718 6.59775 257.152 2.18392C250.439 0 242.145 0 225.556 0H64.4448C47.8561 0 39.5617 0 32.8492 2.18392C19.2826 6.59775 8.64622 17.2481 4.23818 30.8325ZM94.6102 32.9509C87.4778 32.9509 81.5842 27.2035 81.5842 20.1137V16.6127C81.5842 14.6791 80.1015 13.043 78.1563 13.043H62.4497C48.3429 13.043 41.2896 13.043 35.6791 15.2163C27.217 18.4944 20.5273 25.1929 17.2535 33.6661C15.083 39.284 15.083 46.3466 15.083 60.4719V528.528
1C15.083 542.653 15.083 549.716 17.2535 555.334C20.5273 563.807 27.217 570.505 35.6791 573.783C41.2896 575.957 48.3429 575.957 62.4497 575.957H227.551C241.658 575.957 248.711 575.957 254.321 573.783C262.784 570.505 269.473 563.807 272.747 555.334C274.918 549.716 274.918 542.653 274.918 528.528V60.4719C274.918 46.3466 274.918 39.284 272.747 33.6661C269.473 25.1929 262.784 18.4944 254.321 15.2163C248.711 13.043 241.658 13.043 227.551 13.043H211.844C209.899 13.043 208.416 14.6791 208.416 16.6127V20.1137C208.416 27.2035 202.523 32.9509 195.39 32.9509H94.6102Z",fill:"#97D3F6"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M225.83 1.37398H64.1706C47.7837 1.37398 39.7529 1.38245 33.2728 3.4907C20.1237 7.76873 9.81461 18.0914 5.5422 31.2578C3.43671 37.7463 3.42826 45.7877 3.42826 62.1961V526.806C3.42826 543.214 3.43671 551.256 5.5422 557.744C9.81461 570.911 20.1237 581.233 33.2728 585.511C39.7529 587.62 47.7837 587.628 64.1706 587.628H225.83C242.217 587.628 250.248 587.62 256.728 585.511C269.877 581.233 280.186 570.911 284.459 557.744C286.564 551.256 286.572 543.214 286.572 526.806V62.1961C286.572 45.7877 286.564 37.7463 284.459 31.2578C280.186 18.0914 269.877 7.76873 256.728 3.4907C250.248 1.38245 242.217 1.37398 225.83 1.37398ZM4.89017 31.0457C2.74268 37.6637 2.74268 45.8411 2.74268 62.1961V526.806C2.74268 543.161 2.74268 551.338 4.89017 557.956C9.2304 571.332 19.7031 581.818 33.061 586.164C39.6703 588.315 47.8371 588.315 64.1706 588.315H225.83C242.164 588.315 250.33 588.315 256.94 586.164C270.298 581.818 280.77 571.332 285.111 557.956C287.258 551.338 287.258 543.161 287.258 526.806V62.1961C287.258 45.8411 287.258 37.6637 285.111 31.0457C280.77 17.6703 270.298 7.18375 256.94 2.83782C250.33 0.6875 242.164 0.6875 225.83 0.6875H64.1706C47.8371 0.6875 39.6703 0.6875 33.061 2.83782C19.7031 7.18375 9.2304 17.6703 4.89017 31.0457Z",fill:"#92BDD8"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49814 31.8924C5.48486 38.0968 5.48486 45.7632 5.48486 61.096V527.902C5.48486 543.235 5.48486 550.902 7.49814 557.106C11.5671 569.646 21.3853 579.477 33.9083 583.551C40.1045 585.567 47.7608 585.567 63.0735 585.567H226.927C242.24 585.567 249.896 585.567 256.092 583.551C268.615 579.477 278.433 569.646 282.502 557.106C284.516 550.902 284.516 543.235 284.516 527.902V61.096C284.516 45.7632 284.516 38.0968 282.502 31.8924C278.433 19.353 268.615 9.52187 256.092 5.44756C249.896 3.43164 242.24 3.43164 226.927 3.43164H63.0735C47.7608 3.43164 40.1045 3.43164 33.9083 5.44756C21.3853 9.52187 11.5671 19.353 7.49814 31.8924ZM94.6102 32.9509C87.4778 32.9509 81.5842 27.2035 81.5842 20.1137V16.6127C81.5842 14.6791 80.1015 13.043 78.1563 13.043H62.4497C48.3429 13.043 41.2896 13.043 35.6791 15.2163C27.217 18.4944 20.5273 25.1929 17.2535 33.6661C15.083 39.284 15.083 46.3466 15.083 60.4719V528.528C15.083 542.653 15.083 549.716 17.2535 555.334C20.5273 563.807 27.217 570.505 35.6791 573.783C41.2896 575.957 48.3429 575.957 62.4497 575.957H227.551C241.658 575.957 248.711 575.957 254.321 573.783C262.784 570.505 269.473 563.807 272.747 555.334C274.918 549.716 274.918 542.653 274.918 528.528V60.4719C274.918 46.3466 274.918 39.284 272.747 33.6661C269.473 25.1929 262.784 18.4944 254.321 15.2163C248.711 13.043 241.658 13.043 227.551 13.043H211.844C209.899 13.043 208.416 14.6791 208.416 16.6127V20.1137C208.416 27.2035 202.523 32.9509 195.39 32.9509H94.6102Z",fill:"#BFEAF9"}),(0,i.jsx)("path",{d:"M226.927 0H231.041V3.4324H226.927V0Z",fill:"#4C90B8"}),(0,i.jsx)("path",{d:"M284.516 59.0371H287.944V63.156H284.516V59.0371Z",fill:"#4C90B8"}),(0,i.jsx)("path",{d:"M2.05713 59.0371H5.48502V63.156H2.05713V59.0371Z",fill:"#4C90B8"}),(0,i.jsx)("path",{d:"M2.05713 525.844H5.48502V529.963H2.05713V525.844Z",fill:"#4C90B8"}),(0,i.jsx)("path",{d:"M284.516 525.844H287.944V529.963H284.516V525.844Z",fill:"#4C90B8"}),(0,i.jsx)("path",{d:"M58.96 585.568H63.0734V589.001H58.96V585.568Z",fill:"#4C90B8"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M171.395 25.3998C174.046 25.3998 176.194 23.2484 176.194 20.5944C176.194 17.9405 174.046 15.7891 171.395 15.7891C168.745 15.7891 166.596 17.9405 166.596 20.5944C166.596 23.2484 168.745 25.3998 171.395 25.3998Z",fill:"#65A8D3"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M171.395 23.5985C173.052 23.5985 174.395 22.2539 174.395 20.5951C174.395 18.9364 173.052 17.5918 171.395 17.5918C169.739 17.5918 168.396 18.9364 168.396 20.5951C168.396 22.2539 169.739 23.5985 171.395 23.5985Z",fill:"#8EC4E5"}),(0,i.jsx)("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M171.395 19.9943C171.727 19.9943 171.995 19.7254 171.995 19.3936C171.995 19.0619 171.727 18.793 171.395 18.793C171.064 18.793 170.795 19.0619 170.795 19.3936C170.795 19.7254 171.064 19.9943 171.395 19.9943Z",fill:"white"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.26 20.5946C130.26 19.4572 131.182 18.5352 132.32 18.5352H157.681C158.818 18.5352 159.74 19.4572 159.74 20.5946V20.5946C159.74 21.732 158.818 22.654 157.681 22.654H132.32C131.182 22.654 130.26 21.732 130.26 20.5946V20.5946Z",fill:"#8EC4E5"})]});let eD=e=>{let{className:t}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"755",height:"748",viewBox:"0 0 755 748",fill:"none",className:t,children:[(0,i.jsx)("path",{d:"M556.867 171.38L558.465 169.855L556.789 168.416C507.32 125.937 444.126 102.236 377.418
1102.236C226.17 102.236 103.129 224.11 103.129 374C103.129 523.89 226.17 645.764 377.418 645.764C528.665 645.764 651.707 523.849 651.707 374C651.707 346.331 674.339 323.882 702.312 323.882H702.395C730.368 323.882 753 346.331 753 374C753 579.106 584.571 746 377.5 746C170.429 746 2 579.106 2 374C2 168.894 170.429 2 377.5 2C491.159 2 597.444 52.1739 669.136 139.638C669.227 139.783 669.339 139.936 669.468 140.08C670.149 140.946 670.762 141.818 671.409 142.74L671.421 142.757L671.434 142.774C671.513 142.882 671.591 142.988 671.668 143.092C671.934 143.452 672.184 143.79 672.415 144.134L672.421 144.142L672.426 144.15C673.065 145.081 673.602 146.027 674.17 147.072L674.175 147.082C674.333 147.369 674.45 147.566 674.553 147.739C674.681 147.955 674.787 148.134 674.924 148.405L674.931 148.419L674.938 148.433C675.432 149.374 675.898 150.409 676.34 151.442C676.46 151.749 676.587 152.034 676.699 152.28L676.766 152.429C676.853 152.62 676.926 152.781 676.995 152.943C677.381 153.94 677.734 154.986 678.051 156.008L679.961 155.415L678.051 156.009C678.141 156.298 678.241 156.594 678.331 156.864L678.333 156.869C678.427 157.148 678.512 157.401 678.586 157.64C678.808 158.356 678.962 159.069 679.138 159.883C679.197 160.158 679.259 160.445 679.327 160.747L679.329 160.755L679.33 160.763C679.393 161.031 679.447 161.239 679.493 161.417C679.571 161.717 679.627 161.935 679.669 162.226L679.679 162.295L679.694 162.363C679.91 163.362 680.023 164.412 680.147 165.553L680.154 165.622L680.159 165.668L680.166 165.713L680.201 165.938C680.272 166.392 680.326 166.737 680.356 167.083L680.357 167.097L680.358 167.11C680.473 168.29 680.513 169.486 680.513 170.708V170.71V170.713V170.715V170.718V170.72V170.722V170.725V170.727V170.73V170.732V170.734V170.737V170.739V170.741V170.744V170.746V170.749V170.751V170.753V170.756V170.758V170.76V170.763V170.765V170.768V170.77V170.772V170.775V170.777V170.779V170.782V170.784V170.786V170.789V170.791V170.794V170.796V170.798V170.801V170.803V170.805V170.808V170.81V170.812V170.815V170.817V170.819V170.822V170.824V170.826V170.829V170.831V170.833V170.836V170.838V170.841V170.843V170.845V170.848V170.85V170.852V170.855V170.857V170.859V170.862V170.864V170.866V170.869V170.871V170.873V170.876V170.878V170.88V170.883V170.885V170.887V170.89V170.892V170.894V170.897V170.899V170.901V170.904V170.906V170.908V170.91V170.913V170.915V170.917V170.92V170.922V170.924V170.927V170.929V170.931V170.934V170.936V170.938V170.941V170.943V170.945V170.948V170.95V170.952V170.955V170.957V170.959V170.961V170.964V170.966V170.968V170.971V170.973V170.975V170.978V170.98V170.982V170.985V170.987V170.989V170.991V170.994V170.996V170.998V171.001V171.003V171.005V171.008V171.01V171.012V171.014V171.017V171.019V171.021V171.024V171.026V171.028V171.031V171.033V171.035V171.037V171.04V171.042V171.044V171.047V171.049V171.051V171.053V171.056V171.058V171.06V171.063V171.065V171.067V171.069V171.072V171.074V171.076V171.079V171.081V171.083V171.085V171.088V171.09V171.092V171.095V171.097V171.099V171.101V171.104V171.106V171.108V171.111V171.113V171.115V171.117V171.12V171.122V171.124V171.127V171.129V171.131V171.133V171.136V171.138V171.14V171.143V171.145V171.147V171.149V171.152V171.154V171.156V171.158V171.161V171.163V171.165V171.168V171.17V171.172V171.174V171.177V171.179V171.181V171.184V171.186V171.188V171.19V171.193V171.195V171.197V171.199V171.202V171.204V171.206V171.209V171.211V171.213V171.215V171.218V171.22V171.222V171.224V171.227V171.229V171.231V171.234V171.236V171.238V171.24V171.243V171.245V171.247V171.249V171.252V171.254V171.256V171.259V171.261V171.263V171.265V171.268V171.27V171.272V171.274V171.277V171.279V171.281V171.284V171.286V171.288V171.29V171.293V171.295V171.297V171.299V171.302V171.304V171.306V171.308V171.311V171.313V171.315V171.318V171.32V171.322V171.324V171.327V171.329V171.331V171.333V171.336V171.338V171.34V171.343V171.345V171.347V171.349V171.352V171.354V171.356V171.358V171.361V171.363V171.365V171.368V171.37V171.372V171.374V171.377V171.379V171.381V171.383V171.386V171.388V171.39V171.393V171.395V171.397V171.399V171.402V171.404V171.406V171.408V171.411V171.413V171.415V171.418V171.42V171.422V171.424V171.427V171.429V171.431V171.433V171.436V171.438V171.44V171.443V171.445V171.447V171.449V171.452V171.454V171.456V171.459V171.461V171.463V171.465V171.468V171.47V171.472V171.474V171.477V171.479V171.481V171.484V171.486V171.488V171.49V171.493V171.495V171.497V171.5V171.502V171.504V171.506V171.509V171.511V171.513V171.516V171.518V171.52V1
171.522V171.525V171.527V171.529V171.532V171.534V171.536V171.538V171.541V171.543V171.545V171.548V171.55V171.552V171.555V171.557V171.559V171.561V171.564V171.566V171.568V171.571V171.573V171.575V171.577V171.58V171.582V171.584V171.587V171.589V171.591V171.594V171.596V171.598V171.6V171.603V171.605V171.607V171.61V171.612V171.614V171.617V171.619V171.621V171.623V171.626V171.628V171.63V171.633V171.635V171.637V171.64V171.642V171.644V171.647V171.649V171.651V171.654V171.656V171.658V171.66V171.663V171.665V171.667V171.67V171.672V171.674V171.677V171.679V171.681V171.684V171.686V171.688V171.691V171.693V171.695V171.698V171.7V171.702V171.705V171.707V171.709V171.712V171.714V171.716V171.719V171.721V171.723V171.726V171.728V171.73V171.733V171.735V171.737V171.74V171.742V171.744V171.747V171.749V171.751V171.754V171.756V171.758V171.761V171.763V171.765V171.768V171.77V171.772V171.775V171.777V171.779V171.782V171.784V171.786V171.789V171.791V171.794V171.796V171.798V171.801V171.803V171.805V171.808V171.81V171.812V171.815V171.817V171.819V171.822V171.824V171.827V171.829V171.831V171.834V171.836V171.838V171.841V171.843V171.845V171.848V171.85V171.853V171.855V171.857V171.86C680.474 173.174 680.396 174.451 680.28 175.769C680.227 176.135 680.225 176.505 680.225 176.74C680.11 178.055 679.887 179.358 679.613 180.756C679.573 180.92 679.517 181.181 679.494 181.472C679.224 182.824 678.88 184.177 678.461 185.534L678.446 185.583L678.434 185.633C678.422 185.678 678.41 185.72 678.389 185.793C678.374 185.848 678.352 185.922 678.329 186.009C677.892 187.342 677.422 188.658 676.879 189.964L676.875 189.973L676.872 189.983C676.85 190.037 676.829 190.09 676.811 190.139C676.775 190.237 676.747 190.32 676.728 190.379C676.699 190.464 676.685 190.505 676.671 190.541C676.166 191.733 675.579 192.934 674.948 194.106L674.908 194.181L674.874 194.26C674.744 194.559 674.664 194.741 674.565 194.911L674.559 194.922L674.553 194.932C673.955 195.999 673.323 197.056 672.657 198.065C672.5 198.299 672.361 198.536 672.256 198.716L672.245 198.735C672.126 198.938 672.045 199.076 671.963 199.198C671.354 200.103 670.661 200.981 669.912 201.93L669.89 201.958L669.869 201.986C669.54 202.434 669.248 202.832 668.925 203.224C668.228 204.028 667.448 204.841 666.623 205.698L666.607 205.715L666.591 205.732C666.173 206.188 665.794 206.6 665.423 206.969L666.83 208.389L665.423 206.969C665.385 207.006 665.344 207.049 665.302 207.092C665.225 207.175 665.147 207.261 665.094 207.319C665.049 207.369 665.008 207.414 664.978 207.448C664.976 207.451 664.974 207.453 664.972 207.455L463.877 399.428L465.258 400.874L463.877 399.428C454.048 408.813 442.032 413.474 428.747 413.474C415.472 413.474 402.208 408.332 392.27 398.134C372.877 378.215 373.469 346.5 393.577 327.284L556.867 171.38Z",stroke:"url(#paint0_linear_2126_10130)",strokeOpacity:"0.09",strokeWidth:"4"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2126_10130",x1:"377.5",y1:"37",x2:"377.5",y2:"722",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#DDFAFE"}),(0,i.jsx)("stop",{offset:"0.19949",stopColor:"#366E8A"}),(0,i.jsx)("stop",{offset:"0.675518",stopColor:"#366E8A"}),(0,i.jsx)("stop",{offset:"0.908955",stopColor:"#DDFAFE"})]})})]})},eE=e=>{let{className:t}=e;return(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("div",{style:{background:"linear-gradient(90deg, #DDFAFE 27.92%, rgba(221, 250, 254, 0.00) 100%)"},className:"flex-shrink"}),(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"674",height:"66",viewBox:"0 0 674 66",fill:"linear-gradient(180deg, rgba(173, 231, 239, 0.70) -25.97%, rgba(221, 250, 254, 0.70) 113.33%)",className:t,children:[(0,i.jsx)("g",{filter:"url(#filter0_f_2126_10127)",children:(0,i.jsx)("path",{d:"M6 6H668V60H6L6 6Z",fill:"url(#paint0_linear_2126_10127)",fillOpacity:"0.7"})}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_f_2126_10127",x:"0",y:"0",width:"674",height:"66",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"Backgroun
1dImageFix",result:"shape"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"3",result:"effect1_foregroundBlur_2126_10127"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_2126_10127",x1:"324.82",y1:"-8.02598",x2:"324.82",y2:"67.2",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#ADE7EF"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#DDFAFE"})]})]})]}),(0,i.jsx)("div",{style:{background:"linear-gradient(90deg, #DDFAFE 27.92%, rgba(221, 250, 254, 0.00) 100%)"},className:"flex-shrink"})]})};function eM(e){let{title:t,subTitle:l,ctaText:n,ctaLink:s,channel:c,video:m,playlist:x,imageUrl:p,mobImageUrl:v}=e,{pageHandle:V}=(0,h.Z)();return(0,i.jsx)("section",{className:(0,f.cn)(u().mainContainer,"w-full !bg-[#DDFAFE] py-[80px]"),children:(0,i.jsxs)("div",{className:"mx-auto flex w-full flex-col items-stretch justify-between min-md:flex-row",children:[(0,i.jsxs)("div",{className:"flex flex-grow flex-col items-center text-center leading-[1.2] text-[#042637] min-md:w-[422px] min-md:items-start min-md:justify-center min-md:text-left",children:[(0,i.jsx)(r.Z,{className:"text-[24px] font-semibold min-md:text-[clamp(24px,2.5vw,48px)]",html:t}),(0,i.jsx)(r.Z,{className:"mt-[8px] text-[14px] font-semibold min-md:mt-[24px] min-md:text-[clamp(14px,1vw,20px)]",html:l}),(0,i.jsx)(o.Z,{href:"".concat(s,"?ref=").concat(V),children:(0,i.jsx)(d.Z,{className:"mt-[24px] !px-[34px] py-[14px] text-[20px]",children:n})})]}),(0,i.jsxs)("div",{className:"relative flex h-[100vw] w-full items-center justify-center min-md:h-[748px] min-md:w-[755px]",children:[(0,i.jsx)(a.Z,{source:"".concat(p,", ").concat(v," 768"),className:""}),(0,i.jsx)(eZ,{className:"pointer-events-none absolute z-20 h-[250px] w-[120px] min-md:h-[600px] min-md:w-[300px]"}),(0,i.jsx)(eD,{className:"absolute left-[50%] top-[50%] h-[346px] w-[346px] -translate-x-[50%] -translate-y-[50%] min-md:h-[40vw] min-md:max-h-[755px] min-md:w-[40vw] min-md:max-w-[755px]"}),(0,i.jsxs)("div",{className:"h-[250px] w-[120px] min-md:h-[586px] min-md:w-[260px]",children:[(0,i.jsx)("style",{children:":root {\n --branding-text-color: transparent;\n }"}),(0,i.jsx)("fw-storyblock",{class:"cy-player",height:"100%",channel:c,video:m,playlist:x,max_videos:"1",autoplay:"true",style:{width:"100%",position:"relative"},player_placement:"bottom-left"}),(0,i.jsx)(eE,{className:"flex-grow -translate-y-[50%] blur-[3px]"})]})]})]})})}var eL=l(87041),eT=l(79970);function eF(e){var t,l,n;let{title:s,mainImageUrl:d,subImageUrl1:m,subImageUrl2:x,subImageUrl3:p,eufycredits:v,subImageText1:V,subImageText2:b,subImageText3:w,sku:N,rule_id:y,handle:Z,ctaText:M={login:"",active:""},handleBuyNowClick:L,memberPriceBadgeText:T}=e,{locale:F="us"}=(0,_.useRouter)(),{pageHandle:A}=(0,h.Z)(),{buyNow:S="",soldOut:B}=(0,k.Z)(),{data:R}=(0,eL.Z)({handles:Z}),P=null!==(n=null==R?void 0:R.products.find(e=>(null==e?void 0:e.handle)===Z))&&void 0!==n?n:{},{redeemableList:I}=(0,g.Z)({consumeType:C.cA.Coupon}),O=I.find(e=>Number(e.id)===Number(y)),{couponInfo:{coupons:W},variant:G}=(0,H.Z)({handle:Z,product:P,allProductsCoupons:[],sku:N}),q=(0,c.useMemo)(()=>{var e,t,l;let n,i;try{n=(null==O?void 0:O.extra)?JSON.parse(null==O?void 0:O.extra):""}catch(e){}if(n)return(null==n?void 0:n.type)==="percentage"?i=(0,eT.T4)({locale:F,amount:(null==G?void 0:G.price)-(null==n?void 0:n.discount)/100*(null==G?void 0:G.price),currencyCode:(null==P?void 0:null===(e=P.price)||void 0===e?void 0:e.currencyCode)||"USD"}):(null==n?void 0:n.type)==="fix_discount_amount"?i=(0,eT.T4)({locale:F,amount:null==n?void 0:n.discount,currencyCode:(null==P?void 0:null===(t=P.price)||void 0===t?void 0:t.currencyCode)||"USD"}):(null==n?void 0:n.type)==="fixed_amount"&&(i=(0,eT.T4)({locale:F,amount:(null==G?void 0:G.price)-(null==n?void 0:n.discount),currencyCode:(null==P?void 0:null===(l=P.price)||void 0===l?void 0:l.currencyCode)||"USD"})),i},[null==O?void 0:O.extra,F,null==G?void 0:G.price,null==P?void 0:null===(t=P.price)||void 0===t?void 0:t.currencyCode]),z=(null==G?void 0:G.id)&&(null===(l=((null==G?void 0:G.id)+"").split("/"))||void 0===l?void 0:l.pop()),Y=z?{label:"variant",val:z}:void 0,K="/products/".concat(Z,"?ref=").concat(A);return(0,i.jsxs)("section",{className:(0,f.cn)("pt-[40px]",u().mainContainer),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(r.Z,{className:u().subTitle,html:s}),(0,i.jsx)(j,{})]}),(0,i.jsxs)("div",{className:"flex flex-col items-stretch gap-[8px] min-md:flex-row",children:[(0,i.jsx)("div",{className:" relative",children:(0,i.jsxs)(o.Z,{href:K,params:Y,children:[(0,i.jsx)(E,{text:T}),(0,i.jsx)(a.Z,{source:d,className:"h-full",imgClassName:"h-full rounded-[12px]"})]})}),(0,i.jsxs)("div",{className:"flex items-stretch gap-[8px]",children:[(0,i.jsx)("div",{className:"relative w-[50%] flex-shrink-0",children:(0,i.jsxs)(o.Z,{href:K,params:Y,children:[(0,i.jsx)(r.Z,{html:V,className:"absolute left-3 top-3 pr-[48px] text-[12px] font-semibold -tracking-[0.12px] text-white text-opacity-75 min-md:left-[24px] min-md:top-[24px]"}),(0,i.jsx)(a.Z,{source:m,className:"h-full",imgClassName:"h-full rounded-[12px]"})]})}),(0,i.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,i.jsx)("div",{className:"relative",children:(0,i.jsxs)(o.Z,{href:K,params:Y,children:[(0,i.jsx)(r.Z,{html:b,className:"absolute left-3 top-3 pr-[48px] text-[12px] font-semibold -tracking-[0.12px] text-white text-opacity-75 min-md:left-[24px] min-md:top-[24px]"}),(0,i.jsx)(a.Z,{source:x,imgClassName:"h-full rounded-[12px]"})]})}),(0,i.jsx)("div",{className:"relative",children:(0,i.jsxs)(o.Z,{href:K,params:Y,children:[(0,i.jsx)(r.Z,{html:w,className:"absolute left-3 top-3 pr-[48px] text-[12px] font-semibold -tracking-[0.12px] text-white text-opacity-75 min-md:left-[24px] min-md:top-[24px]"}),(0,i.jsx)(a.Z,{source:p,imgClassName:"h-full rounded-[12px]"})]})})]})]})]}),(0,i.jsxs)("div",{className:"mt-[16px] flex flex-col items-start justify-between min-md:flex-row min-md:items-end",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(o.Z,{href:K,children:(0,i.jsx)(r.Z,{className:"text-[20px] font-semibold text-[#042637]",html:null==P?void 0:P.title})}),(0,i.jsxs)("div",{className:"flex items-end",children:[(0,i.jsx)(U.Z,{settings:{soldOut:B},availableForSale:null==G?void 0:G.availableForSale,price:null==q?void 0:q.toString(),free:!1,index:void 0,styles:void 0,onClick:void 0,className:"text-[24px] font-semibold leading-[1.4] text-brand-color min-md:text-[32px]"}),(0,i.jsx)(r.Z,{className:"text-[16px] font-semibold leading-[2] text-[#042637] opacity-95",html:(null==O?void 0:O.consume_credits)?"+"+O.consume_credits+v:""})]})]}),(0,i.jsx)("div",{className:"mt-[16px] min-md:mt-0",children:(0,i.jsx)(D,{loginCtaText:M.login,activeCtaText:M.active,ctaText:S,soldOut:!(null==G?void 0:G.availableForSale),trackingPosition:s,handleClick:()=>L({creditRule:O,product:P,variant:G,coupons:W})})})]})]})}var eA=l(8400),eS=l.n(eA),eB=l(37723);let eR=e=>{var t,l,n;let{sku:s,handle:d,product:m,ctaText:x,memberPriceBadgeText:p,bgImage:v,creditRule:V,eufycredits:g,handleBuyNowClick:C,className:j,textColorWhite:b=!1}=e,{locale:w="us"}=(0,_.useRouter)(),{buyNow:N="",soldOut:y}=(0,k.Z)(),{pageHandle:Z}=(0,h.Z)(),{couponInfo:{coupons:M},variant:L}=(0,H.Z)({handle:d,product:m,allProductsCoupons:[],sku:s}),T=(0,c.useMemo)(()=>{var e,t,l;let n,i;try{n=(null==V?void 0:V.extra)?JSON.parse(null==V?void 0:V.extra):""}catch(e){}if(n)return(null==n?void 0:n.type)==="percentage"?i=(0,eT.T4)({locale:w,amount:(null==L?void 0:L.price)-(null==n?void 0:n.discount)/100*(null==L?void 0:L.price),currencyCode:(null==m?void 0:null===(e=m.price)||void 0===e?void 0:e.currencyCode)||"USD"}):(null==n?void 0:n.type)==="fix_discount_amount"?i=(0,eT.T4)({locale:w,amount:null==n?void 0:n.discount,currencyCode:(null==m?void 0:null===(t=m.price)||void 0===t?void 0:t.currencyCode)||"USD"}):(null==n?void 0:n.type)==="fixed_amount"&&(i=(0,eT.T4)({locale:w,amount:(null==L?void 0:L.price)-(null==n?void 0:n.discount),currencyCode:(null==m?void 0:null===(l=m.price)||void 0===l?void 0:l.currencyCode)||"USD"})),i},[null==V?void 0:V.extra,w,null==L?void 0:L.price,null==m?void 0:null===(t=m.price)||void 0===t?void 0:t.currencyCode]),F=(null==L?void 0:L.id)&&(null===(l=((null==L?void 0:L.id)+"").split("/"))||void 0===l?void 0:l.pop()),A=F?{label:"variant",val:F}:void 0,S="/products/".concat(d,"?ref=").concat(Z);return m?(0,i.jsxs)("div",{className:(0,f.cn)("relative box-border flex-shrink-0 rounded-[12px] bg-[#DDFAFE] p-[16px] ",j),children:[(0,i.jsx)(E,{text:p}),(0,i.jsx)(o.Z,{className:"h-full w-full",href:S,params:A,children:v?(0,i.jsx)(a.Z,{source:v,className:"absolute bottom-0 left-0 right-0 top-0 w-[100%]",imgClassName:"h-full"}):(0,i.jsx)(a.Z,{source:null==L?void 0:null===(n=L.image)||void 0===n?void 0:n.url,className:"absolute left-[50%] h-[213px] w-[213px] -translate-x-[50%] min-md:h-[300px] min-md:w-[300px]"})}),(0,i.jsxs)("div",{className:"relative z-10 flex h-full flex-col justify-end",children:[(0,i.jsx)(o.Z,{href:S,params:A,children:(0,i.jsx)(r.Z,{className:"text-left text-[16px] font-semibold min-md:text-[20px]",html:m.title,style:b?{color:"#ffffff"}:{}})}),(0,i.jsxs)("div",{className:"flex items-end",children:[(0,i.jsx)(U.Z,{settings:{soldOut:y},availableForSale:null==L?void 0:L.availableForSale,price:null==T?void 0:T.toString(),free:!1,index:void 0,styles:u(),onClick:void 0,className:"text-[24px] font-semibold leading-[1.4] text-brand-color min-md:text-[32px]"}),(0,i.jsx)(r.Z,{className:"text-[16px] font-semibold leading-[2] text-[#042637] opacity-95",html:(null==V?void 0:V.consume_credits)?"+"+V.consume_credits+g:"",style:b?{color:"#ffffff"}:{}})]}),(0,i.jsx)("div",{className:"mt-[16px] min-md:mt-[16px] min-md:max-w-[160px]",children:(0,i.jsx)(D,{loginCtaText:x.login,activeCtaText:x.active,ctaText:N,soldOut:!(null==L?void 0:L.availableForSale),trackingPosition:"What you can buy with euf
1yCredits",handleClick:()=>C({creditRule:V,product:m,variant:L,coupons:M})})})]})]}):null};function eP(e){let{products:t,memberPriceBadgeText:l,eufycredits:n,ctaText:s={login:"",active:""},showLinesCount:o,itemsPerRow:a,handleBuyNowClick:r}=e,p=(0,c.useRef)(null),{see_less:v,see_more:V}=(0,k.Z)(),{componentProducts:j}=(0,h.Z)(),{redeemableList:b}=(0,g.Z)({consumeType:C.cA.Coupon}),w=(0,c.useMemo)(()=>t.map(e=>({...e,productData:j.find(t=>t.handle===e.handle)})),[j,t]),N=w.length>o*a,[y,_]=(0,c.useState)(!0),Z=(0,c.useMemo)(()=>eS()(w.slice(0,y?a*o:w.length),a),[y,a,w,o]);return(0,i.jsx)("section",{ref:p,className:(0,f.cn)(u().mainContainer,"py-[40px]"),children:(0,i.jsxs)("div",{className:"w-full",children:[(0,i.jsx)("div",{className:"flex w-full flex-col items-center gap-[8px] transition-all",children:Z.map((e,t)=>(0,i.jsxs)("div",{className:"flex w-full flex-col gap-[8px] min-l:flex-row",children:[(0,i.jsx)(eR,{sku:e[0].sku,handle:e[0].handle,product:e[0].productData,ctaText:s,memberPriceBadgeText:l,bgImage:e[0].bgImage,eufycredits:n,creditRule:b.find(t=>Number(t.id)===Number(e[0].rule_id)),handleBuyNowClick:r,textColorWhite:e[0].textColorWhite,className:"h-[360px] w-full min-md:h-[490px] min-l:w-[calc(33.3%_-_4px)]"},t),(0,i.jsx)(m.tq,{modules:[x.rj,x.pt,x.Gk],mousewheel:{releaseOnEdges:!0,forceToAxis:!0},grabCursor:!0,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:8,className:"flex h-[390px] w-full gap-[8px] min-md:h-[490px] ",children:e.slice(1,e.length).map((e,t)=>(0,i.jsx)(m.o5,{className:"!h-full !w-[calc(50%_-_4px)] !min-w-[255px]",children:(0,i.jsx)(eR,{className:"!h-full",sku:e.sku,handle:e.handle,product:e.productData,ctaText:s,memberPriceBadgeText:l,bgImage:e.bgImage,eufycredits:n,creditRule:b.find(t=>Number(t.id)===Number(e.rule_id)),handleBuyNowClick:r})},t))})]},t))}),N&&(0,i.jsx)("div",{className:"mt-[40px] flex w-full items-center justify-center",children:(0,i.jsxs)(d.Z,{variant:"plain",className:" flex items-center text-[20px] font-semibold text-[#005D8E]",onClick:()=>{if(!y){var e;null===(e=p.current)||void 0===e||e.scrollIntoView({block:"center",behavior:"smooth"})}_(e=>!e)},children:[y?V:v,(0,i.jsx)(eB.Z,{className:(0,f.cn)("ml-[8px] h-[22px] w-[22px] fill-[#005D8E]",{"rotate-180":!y}),iconKey:"arrowDown"})]})})]})})}var eI=l(61806),eO=l(31711),eH=e=>{var t,l,n;let{locale:s="us"}=(0,_.useRouter)(),{customData:o,pageHandle:a}=(0,h.Z)(),[r,m]=(0,c.useState)({}),{profile:x}=(0,b.U)(),{buyNow:p}=(0,O.Z)(),{getRedeemableList:u}=(0,g.Z)({consumeType:C.cA.Coupon}),[v,V]=(0,c.useState)(!1),[j,w]=(0,c.useState)(!1),[N,y]=(0,c.useState)(!1),[k,Z]=(0,c.useState)(""),D=(0,c.useCallback)(e=>{let{creditRule:t,product:l,variant:n,coupons:i}=e;V(!0),m({creditRule:t,product:l,variant:n,coupons:i})},[]),E=(0,c.useCallback)((e,t)=>{e===C.qv.CodeLpcRuleInventoryNotEnough?(Z(t||""),y(!0),V(!1),u({consumeType:C.cA.Coupon},!0)):e===C.qv.CodeLpcNotEnoughCredits||e===C.qv.CodeLpcUserNotFound?(Z(t||""),V(!1),w(!0)):(Z(t||""),y(!0),V(!1))},[u]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eF,{...e,handleBuyNowClick:D}),(0,i.jsx)(eP,{...e,handleBuyNowClick:D}),v&&(0,i.jsx)(eO.Z,{isOpen:v,data:o.confirmEufyCreditsModal,onClose:()=>V(!1),onRedeemError:E,buyNowArgs:r,redeemModalData:null==o?void 0:o.redeemModalData,page_group:"Activity Page_".concat(a),locale:s}),j&&(0,i.jsx)(F.Z,{operationFailedModalData:o.insufficientCreditsModal,operationFailedModal:j,onClose:()=>w(!1),children:(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3 min-l:gap-4",children:[(0,i.jsx)(d.Z,{variant:"plain",className:"mt-6 block h-[42px] w-[184px] rounded-full bg-eufy-color text-[16px] font-semibold leading-[42px] text-white",onClick:()=>{w(!1),window.location.href="".concat(eI.n1,"/account/?app=").concat(eI.iC[s],"&ref=").concat(a)},children:null==o?void 0:null===(t=o.insufficientCreditsModal)||void 0===t?void 0:t.btn1Text}),(0,i.jsx)(d.Z,{variant:"plain",className:"text-[16px] font-semibold text-eufy-color underline",onClick:()=>{let{product:t,variant:l,coupons:n}=r||{};t&&l&&n&&p({products:[{...t,sku:null==l?void 0:l.sku}
1],coupons:n,callBack:()=>{(0,W.j)({event:"buynow",product:[t],page_group:"Activity Page_".concat(a),sku:null==l?void 0:l.sku,login_status:x?"member":"non-member",position:e.title,locale:s})}}),w(!1)},children:null==o?void 0:null===(l=o.insufficientCreditsModal)||void 0===l?void 0:l.btn2Text})]})}),N&&(0,i.jsx)(F.Z,{operationFailedModalData:{...o.errorModal,title:k},operationFailedModal:N,onClose:()=>y(!1),children:(0,i.jsx)("div",{className:"flex flex-col items-center justify-center gap-3 min-l:gap-4",children:(0,i.jsx)(d.Z,{variant:"plain",className:(0,f.cn)("mt-6 block h-[42px] w-[184px] rounded-full bg-eufy-color text-[16px] font-semibold leading-[42px] text-white"),onClick:()=>{y(!1)},children:null==o?void 0:null===(n=o.errorModal)||void 0===n?void 0:n.btnText})})})]})};function eU(e){let{isFinish:t,profile:l}=(0,b.U)(),{signUpProcess:n,activeProcess:s,creditProcess:o}=e,d=(0,c.useMemo)(()=>l?l.activated?o:s:n,[s,o,l,n]),{title:m,stops:x}=null!=d?d:{};return t?(0,i.jsx)("section",{className:(0,f.cn)("pb-[40px] pt-[8px]",u().mainContainer),children:(0,i.jsxs)("div",{className:"rounded-[12px] bg-[#E0F2F8] px-[12px] py-[24px] text-[#042637]",children:[(0,i.jsx)(r.Z,{className:"text-center text-[16px] font-semibold",html:m}),(0,i.jsx)("div",{className:"mt-[32px] flex flex-col gap-[32px] min-md:flex-row min-md:justify-center",children:x.map((e,t)=>(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 text-center min-md:w-[33%]",children:[(0,i.jsx)(a.Z,{source:e.icon,className:"h-[56px] w-[56px]"}),(0,i.jsx)(r.Z,{className:"text-[16px] font-semibold",html:e.title}),(0,i.jsx)(r.Z,{className:"px-[8px] text-[14px] font-semibold text-[#042637] opacity-75 min-md:max-w-[326px]",html:e.description})]},t))})]})}):null}var eW=l(95707),eG=l(84434),eq=l(93967),ez=l.n(eq),eY=e=>{var t;let{title:l,desc:n,subtitle:s,beforeIcon:o,afterIcon:a,creditsImgPc:r,creditsImgMob:d,moneyImgPc:m,moneyImgMob:x,doubleMoneyImgPc:p,doubleMoneyImgMob:f,eufyCreditsText:h,"1*1":v,updateText:V,dailyText:g,"1*2":C,anniversaryText:j,giftCard:b,errorModal:w}=e,{metafields:N,customData:y,page:k}=(0,c.useContext)(eG.Z),{shopCommon:_,common:Z,allProductsCoupons:D,componentProducts:E,redeemModalData:M,id:L,locale:T}=y;return(0,i.jsx)("div",{className:ez()(u().moduleContainer,"x:!max-w-none"),children:(0,i.jsx)("div",{className:ez()(u().mainContainer,"x:!px-0 min-md:!bg-transparent min-l:bg-[#ECFAFF]"),children:(0,i.jsx)(eW.Z,{metafields:N||{},shopCommon:_,redeemModalData:M,common:Z,allProductsCoupons:D,componentProducts:E,id:L,s:u(),locale:T,page:k,giftcardContainerClassName:u().giftcardContainer,data:{title:l,desc:n,subtitle:s,beforeIcon:o,afterIcon:a,creditsImgPc:r,creditsImgMob:d,moneyImgPc:m,moneyImgMob:x,doubleMoneyImgPc:p,doubleMoneyImgMob:f,eufyCreditsText:h,"1*1":v,updateText:V,dailyText:g,"1*2":C,anniversaryText:j,giftCard:b,errorModal:w,soldOut:null==N?void 0:null===(t=N.shopCommon)||void 0===t?void 0:t.soldOut}})})})},eK=l(28735),eX=e=>{let{page:t,metafields:l,relatedProducts:o=[],componentProducts:a,locale:r}=e,d=(0,eK.Z)(),c=l.components||{};return(0,i.jsx)(V.am,{children:(0,i.jsx)(s.Z,{page:t,Sections:n,metafields:l,relatedProducts:o,componentProducts:a,allProductsCoupons:d,customData:{redeemModalData:c.redeemModal,confirmEufyCreditsModal:c.confirmEufyCreditsModal,insufficientCreditsModal:c.insufficientCreditsModal,errorModal:c.errorModal,common:c.common,validatorInfo:{...l.checkoutValidatorInfo||{},...l.checkoutAddressInfo||{}},registrationsSettings:l.registrationsSettings||{},globalCountry:l.globalCountry||{},footerSetting:l.footerSetting||{},locale:r,shopCommon:l.shopCommon},useWrap:!0,wrapStyle:{backgroundColor:"#DCFAFE",paddingBottom:"80px"}})})}},85204:function(){},84752:function(){},66761:function(){},75538:function(e){e.exports={bounceBall:"styles_bounceBall__qOfu3",bounce:"styles_bounce__ZwMPP",mainContainer:"styles_mainContainer__aqjq1",moduleContainer:"styles_moduleContainer__E9oxO",subTitle:"styles_subTitle__vkyoA",soldOut:"styles_soldOut__qbAXI",heroBannerBg:"styles_heroBannerBg__RzpHz",giftcardContainer:"styles_giftcardContainer__aNaBH"}}}]);
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.