PageSourceSearch

https://www.eufymake.com/_next/static/chunks/section-subscribe.c3dc6e0c7271cecf.js

js eufymake.com collected 2026-09-24 19:44:42 UTC 10,502 bytes, 1 lines download raw bytes

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]="709c21cd-b7f1-47e0-a003-0d3716e1f99f",e._sentryDebugIdIdentifier="sentry-dbid-709c21cd-b7f1-47e0-a003-0d3716e1f99f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2632],{89829:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return N}});var n=l(85893),i=l(67294),a=l(83999),o=l(37156),s=l(72586),d=l(90501),r=l(15389),c=l(32078),m=l(23398),u=l(8609),x=l(93967),v=l.n(x),p=l(99662),h=l(3751),f=l(49852),b=l.n(f);let _=e=>e>9?""+e:"0"+e,g=e=>{let{time:t,copy:l,s:i,last:a,hideFormMode:o,unit:s}=e;return(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:v()("flex","relative"),children:[(0,n.jsx)("div",{className:i.item,children:(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)("div",{suppressHydrationWarning:!0,className:v()(i.code,{[i.hideFormMode]:o}),children:_(t)}),(0,n.jsx)("div",{className:i.unit,children:s})]})}),!a&&(0,n.jsx)("div",{className:i.colon,children:":"})]})})};var j=e=>{var t,l,i,a;let{data:s}=e,{endTime:d=""}=s,{seconds:r,minutes:c,hours:m,days:u}=(0,h.useTimer)({expiryTimestamp:new Date(d)}),x=(0,o.useRouter)();if(!d)return null;let{locale:p}=x;return new Date>new Date(d)?null:(0,n.jsx)("div",{className:v()(b().countDown,"eu-de"===p?b().deCountDown:""),children:(0,n.jsxs)("div",{className:b().time,children:[(0,n.jsx)(g,{time:u,unit:null==s?void 0:null===(t=s.endTimeUnit)||void 0===t?void 0:t.day,s:b()}),(0,n.jsx)(g,{time:m,unit:null==s?void 0:null===(l=s.endTimeUnit)||void 0===l?void 0:l.hours,s:b()}),(0,n.jsx)(g,{time:c,unit:null==s?void 0:null===(i=s.endTimeUnit)||void 0===i?void 0:i.minutes,s:b()}),(0,n.jsx)(g,{time:r,unit:null==s?void 0:null===(a=s.endTimeUnit)||void 0===a?void 0:a.seconds,last:!0,s:b()})]})})},y=l(20854);let w={background:"rgba(0, 0, 0, 0.20)",border:"1px solid #3ADB67",backdropFilter:"blur(30px)"};var N=e=>{var t,l,x,h,f,b,_,g,N,k,D,C,T,I,Z,B;let{data:E,isMobile:R,isModal:S=!1,position:F="kv",gtmPosition:L,stickyBtnClick:H,onModalClose:M}=e,[U,A]=(0,i.useState)(!1),[G,J]=(0,i.useState)(!1),[P,q]=(0,i.useState)(""),{locale:O,asPath:W}=(0,o.useRouter)();(0,i.useEffect)(()=>{J("us"===O)},[O]);let z=(0,i.useRef)(null),[K,Q]=(0,i.useState)(!1),V=async e=>{var t,l,n,i,o,r,c;let m=(null===(t=z.current)||void 0===t?void 0:t.value)||"";if(e.preventDefault(),e.stopPropagation(),m||X("no input"),K)return;if(q(""),!G){q((null==E?void 0:null===(l=E.formData)||void 0===l?void 0:l.isChecked)||""),X("agreement not selected");return}Q(!0);let{register_source:x}=(0,s.m1)();if((0,a.G)(m)){(0,y.RC)({event:"ga4Event",event_name:"form_submit",event_parameters:{page_group:W,position:L,form_name:null==E?void 0:null===(i=E.formData)||void 0===i?void 0:i.genre,deals_type:null==E?void 0:null===(o=E.formData)||void 0===o?void 0:o.genre}});let e=u.BR["".concat(O)];"ankermake-fr.myshopify.com"===e&&(e="eufymake-fr.myshopify.com");let t=await (0,d.Z)({locale:O,url:"/api/multipass/rainbowbridge/activities",action:"activity",needRecaptcha:!0,method:"POST",body:{email:m||"",genre:null==E?void 0:null===(r=E.formData)||void 0===r?void 0:r.genre,register_source:x,shopify_domain:e,single_brand_subscribe:!0}});(null==t?void 0:t.errors)||(null==t?void 0:t.data.msg)?(q(t.message||t.data.msg),X("other")):(A(!0),(0,y.RC)({event:"ga4Event",event_name:"subscribe_success",event_parameters:{page_group:W,position:L,deals_type:null==E?void 0:null===(c=E.formData)||void 0===c?void 0:c.genre}})),Q(!1)}else{q((null==E?void 0:null===(n=E.formData)||void 0===n?void 0:n.infoErrEmail)||""),Q(!1),X("invalid email");return}},X=e=>{var t;(0,y.RC)({event:"ga4Event",event_name:"subscribe_fail",event_parameters:{page_group:W,position:L,deals_type:null==E?void 0:null===(t=E.formData)||void 0===t?void 0:t.genre,type:e}})},Y=(0,n.jsxs)("div",{className:v()("px-6 md:".concat(S?"px-0":""),"text-center"),children:[(0,n.jsx)("h2",{className:v()("font-extrabold leading-[1.1] media_mb-[24,16]","pageBottom"===F?"media_text-[56,40,32]":"media_text-[32,32,24,20,14]"),dangerouslySetInnerHTML:{__html:(null===(t=E[F])||void 0===t?void 0:t.t
1itle)||""}}),(null===(l=E[F])||void 0===l?void 0:l.subTitle)&&(0,n.jsx)("div",{className:v()("font-bold leading-[1.1] media_mb-[60,60,60,40,40] media_text-[20,20,16,16]","pageBottom"===F?"text-[#777]":""),dangerouslySetInnerHTML:{__html:(null===(x=E[F])||void 0===x?void 0:x.subTitle)||""}}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:v()("mx-auto flex max-w-[437px] items-center justify-between overflow-hidden rounded-[60px]  border-[1px] border-brand-color media_h-[50,50,50,50,34] media_pl-[20,16]","pageBottom"===F?"bg-[#1D1D1F]":"bg-white"),children:[(0,n.jsx)(r.Z,{className:"mr-2 media_w-[20]",source:null==E?void 0:null===(h=E.formData)||void 0===h?void 0:h.emailIcon}),(0,n.jsx)("input",{ref:z,className:v()("h-full flex-1 bg-transparent outline-none","pageBottom"===F?"text-white":"text-black"),onChange:()=>q(""),onFocus:e=>{var t,l;(0,y.RC)({event:"ga4Event",event_name:"form_filling",event_parameters:{page_group:W,position:L,form_name:null==E?void 0:null===(t=E.formData)||void 0===t?void 0:t.genre,deals_type:null==E?void 0:null===(l=E.formData)||void 0===l?void 0:l.genre}})},placeholder:null==E?void 0:null===(f=E.formData)||void 0===f?void 0:f.emailLabel,maxLength:50}),(0,n.jsx)("button",{className:"h-full bg-brand-color font-bold text-black media_px-[20,16] media_text-[16,16,14]",onClick:V,type:"button",children:null==E?void 0:null===(b=E.formData)||void 0===b?void 0:b.enter})]}),(0,n.jsxs)("label",{className:"flex items-center justify-center gap-2 text-[14px] media_py-[18,16,14,12,10]",children:[(0,n.jsx)("input",{type:"checkbox",onChange:e=>J(e.target.checked),required:!0,checked:G}),(0,n.jsx)(c.Z,{className:v()("text-left font-bold media_text-[14,14,14,14,12] md:max-w-[70vw]  md:text-center","pageBottom"===F?"text-[#777]":"text-[#b6b6ba]"),html:null==E?void 0:E.agreen})]}),(0,n.jsx)("div",{className:"line-clamp-2 min-h-[21px] text-[14px] text-red",children:(0,n.jsx)(c.Z,{html:P,variant:"paragraph"})})]})]}),$=(0,n.jsxs)("div",{className:"mx-12 w-[calc(100%-6rem)] text-white md:mx-6 md:w-full",children:[(0,n.jsxs)("div",{className:"md:hidden",children:[(0,n.jsxs)("div",{className:"mx-auto flex max-w-[1280px] items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-6",children:[(0,n.jsx)(c.Z,{className:"font-extrabold media_text-[24]",html:null==E?void 0:null===(_=E.sticky)||void 0===_?void 0:_.stickyTitle}),(0,n.jsx)(j,{data:null==E?void 0:E.sticky})]}),(0,n.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,n.jsx)("h4",{children:(0,n.jsx)(c.Z,{className:"font-extrabold media_text-[18]",html:null==E?void 0:null===(g=E.sticky)||void 0===g?void 0:g.title})}),(0,n.jsx)("button",{onClick:()=>H&&H(),className:"rounded-[100px] bg-brand-color font-bold text-black media_px-[16] media_py-[10] media_text-[12]",children:null==E?void 0:null===(N=E.formData)||void 0===N?void 0:N.enter})]})]}),(0,n.jsxs)("div",{className:"hidden items-center justify-between gap-[8px]",children:[(0,n.jsx)("h4",{children:(0,n.jsx)(c.Z,{className:"font-extrabold media_text-[16]",html:null==E?void 0:null===(k=E.sticky)||void 0===k?void 0:k.title})}),(0,n.jsx)("button",{onClick:()=>H&&H(),className:"whitespace-nowrap rounded-[100px] bg-brand-color font-bold text-black media_px-[16] media_py-[10] media_text-[12]",children:null==E?void 0:null===(D=E.formData)||void 0===D?void 0:D.enter})]})]}),(0,n.jsx)("div",{className:"hidden text-center md:block",children:(null==E?void 0:null===(C=E.sticky)||void 0===C?void 0:C.endTime)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)(j,{data:null==E?void 0:E.sticky}),(0,n.jsx)("button",{onClick:()=>H&&H(),className:"whitespace-nowrap rounded-[100px] bg-brand-color px-[16px] py-[12px] text-[14px] font-bold leading-[1] text-black",children:null==E?void 0:null===(Z=E.formData)||void 0===Z?void 0:Z.enter})]}),(0,n.jsx)("h4",{className:"mt-[10px]",children:(0,n.jsx)(c.Z,{className:"text-[22px] font-extrabold",html:null==E?void 0:null===(B=E.sticky)||void 0===B?void 0:B.title})})]}):(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h4",{children:(0,n.jsx)(c.Z,{className:"font-extrabold media_text-[16]",html:null==E?void 0:null===(T=E.sticky)||void 0===T?void 0:T.title})}),(0,n.jsx)("button",{onClick:()=>H&&H(),className:"whitespace-nowrap rounded-[100px] bg-brand-color font-bold text-black media_px-[16] media_py-[10] media_text-[12]",children:null==E?void 0:null===(I=E.formData)||void 0===I?void 0:I.enter})]})})]}),ee=(0,n.jsxs)("div",{className:"pt-6",children:[(0,n.jsx)("h3",{className:"max-w-[489px] text-center font-extrabold media_text-[24,20,18,18,18]",dangerouslySetInnerHTML:{__html:(null==E?void 0:E.successTitle)||""}}),(0,n.jsx)("h3",{className:"max-w-[489px] text-center font-bold leading-[1.2] media_pb-[45,45,45,45,64] media_pt-[16] media_text-[18,16,14,12]",dangerouslySetInnerHTML:{__html:(null==E?void 0:E.successNotes)||""}}),(0,n.jsx)("button",{className:"mx-auto rounded-[60px] bg-brand-color font-bold text-black outline-none media_h-[60,50,44,38,34] media_px-[32,28,24,20,16] media_text-[18,16,14]",children:(0,n.jsxs)("a",{className:"flex items-center justify-center",target:"_blank",onClick:e=>{(0,y.RC)({event:"ga4Event",event_name:"link_url",event_parameters:{page_group:W,position:L}})},href:null==E?void 0:E.successBtnUrl,rel:"noreferrer",children:[(0,n.jsx)(r.Z,{className:"mr-2 md:hidden",source:null==E?void 0:E.successBtnIcon,width:24,height:24,alt:"close"}),null==E?void 0:E.successBtnText]})})]});return"sticky"===F?$:(0,n.jsxs)("div",{className:"text-center text-white",children:[S?(0,n.jsx)(m.Z,{onClose:()=>null==M?void 0:M(),style:w,closeIcon:(0,n.jsx)(r.Z,{source:null==E?void 0:E.successCloseIcon,width:R?32:40,height:R?32:40,alt:"close"}),children:U?ee:Y}):"pageBottom"===F?(0,n.jsx)(p.Z,{children:Y}):Y,U&&!S&&(0,n.jsx)(m.Z,{onClose:()=>A(!1),style:w,closeIcon:(0,n.jsx)(r.Z,{source:null==E?void 0:E.successCloseIcon,width:R?32:40,height:R?32:40,alt:"close"}),children:ee})]})}},49852:function(e){e.exports={countDown:"CountDown_countDown__JBAnJ",time:"CountDown_time__Cruo7",item:"CountDown_item__FAkGj",unit:"CountDown_unit___EThN",colon:"CountDown_colon__vpA8b"}}}]);

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.