1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5599],{2951:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/waitlist/partners",function(){return t(72617)}])},54005:function(e,i,t){"use strict";t.d(i,{D4:function(){return f},Kc:function(){return d},ip:function(){return p},uZ:function(){return u}});var a=t(10906),n=t(92642),s=t(70314),r=t.n(s),o=t(41929),l=t(54852);let{publicRuntimeConfig:c}=r()(),{publicApiFqdn:m}=c,u=async(e,i,t)=>{let s=await (0,l.p)(),r=[e.personal?"personal":null,e.joint?"joint":null,e.child?"child":null,e.business?"business":null].filter(Boolean);try{return await (0,a.XD)(()=>{var a;return fetch("https://".concat(m,"/signup-country-waitlist/join-with-confirmation"),{method:"POST",body:JSON.stringify({email:e.email,selected_products:r,company_type:null!==(a=e.company_type)&&void 0!==a?a:null,country_code:e.country_code,source:"web",utm_params:i,referral_code:e.referral_code}),headers:{Authorization:"Bearer ".concat(s),"Monzo-Pre-Signup-Current-Language":t}})},o.C9)}catch(e){throw n.Tb(e),e}},d=async(e,i,t,s)=>{let r=await (0,l.p)();try{return await (0,a.XD)(()=>fetch("https://".concat(m,"/signup-country-waitlist/join-with-confirmation"),{method:"POST",body:JSON.stringify({email:e.email,selected_products:["personal"],country_code:"ESP",source:"web",referral_code:null,click_id:i,utm_params:t}),headers:{Authorization:"Bearer ".concat(r),"Monzo-Pre-Signup-Current-Language":s}}),o.C9)}catch(e){throw n.Tb(e),e}},f=async(e,i)=>{let t=await (0,l.p)();try{return await (0,a.XD)(()=>fetch("https://".concat(m,"/signup-country-waitlist/confirm"),{method:"POST",body:JSON.stringify({code:e}),headers:{Authorization:"Bearer ".concat(t),"Monzo-Pre-Signup-Current-Language":i}}),o.C9)}catch(e){throw n.Tb(e),e}},p=async(e,i)=>{let t=await (0,l.p)();try{let n=await (0,a.XD)(()=>fetch("https://".concat(m,"/signup-country-waitlist/leave-by-code"),{method:"POST",body:JSON.stringify({code:e,user_id:i}),headers:{Authorization:"Bearer ".concat(t)}}),o.C9);if(200===n.status)return n.json();throw Error("Failed to leave waitlist")}catch(e){throw n.Tb(e),e}}},79592:function(e,i,t){"use strict";t.d(i,{r:function(){return m}});var a=t(52322),n=t(12524),s=t.n(n),r=t(54773),o=t(32625),l=t(94288),c=t.n(l);function m(e){let{className:i}=e,t=(0,r.FU)(),n=t.string({key:"app_monzo_com.waitlist.risk_rating.title",message:"Risk indicator for all Monzo accounts"}),l=t.string({key:"app_monzo_com.waitlist.risk_rating.description",message:"This number is indicative of the risk of the product, 1/6 being indicative of lower risk and 6/6 of higher risk."}),m=t.string({key:"app_monzo_com.waitlist.risk_rating.disclaimer",message:"Monzo is a member of the Irish Deposit Guarantee Scheme. The scheme guarantees deposits up to â¬100,000 per account holder at Monzo."});return(0,a.jsx)("div",{className:s()("monzo-com-design-system",c().riskRating,i),children:(0,a.jsx)(o.Q4M,{description:l,disclaimer:m,maxRating:6,rating:1,title:n})})}},72617:function(e,i,t){"use strict";t.r(i),t.d(i,{__N_SSP:function(){return J},default:function(){return G}});var a=t(52322),n=t(82876),s=t(2784),r=t(63955),o=t(54773),l=t(65384),c=t(65525),m=t(23456),u=t(73738),d=t(7922),f=t(31120),p=t(62900),g=t(58402),_=t(94288),h=t.n(_),y=t(79592),w=t(12524),b=t.n(w),k=t(2099),v=t(36998),N=t.n(v),x=t(73956),S=t(26858),j=t(8546),z=t.n(j);let P={"en-es":"/en-es/legal/affiliate-partner-referral-promotion-terms-and-conditions",es:"/es/legal/terminos-y-condiciones-de-los-socios-afiliados"},C={"en-es":"/en-es/legal/affiliate-partner-referral-promotion-terms-and-conditions",es:"/es/legal/terminos-y-condiciones-de-los-socios-afiliados"},T={"en-es":"/en-es/legal/privacy-notice/",es:"/es/legal/declaracion-de-privacidad"};function E(e){let{locale:i,currentStep:t,riskRating:n}=e,s=(0,o.FU)(),{register:l,watch:c,formState:{errors:m}}=(0,r.Gc)(),u=!!c("email")&&!m.email,d="Submitting"===t,f="es"===i.language.i18nName?"es":"en-es",p=P[f],g=C[f],_=T[f],y=s.string({key:"app_monzo_com.waitlist.affiliates.form_title",message:"You're almost in for early access"}),w=s.string({key:"app_monzo_com.waitlist.affiliates.form_blurb",message:"Secure your spot, sign up now for a Monzo personal bank account and get â¬25 when you make your first card payment"}),v=s.string({key:"app_monzo_com.waitlist.affiliates.form_blurb_smallprint",message:"Only the first 250 people to sign through this page can skip the queue. The â¬25 is limited to the first 20,000 people to spend on their card."}),j=s.string({key:"app_monzo_com.waitlist.info_form.legend",message:"Personal information"}),E=s.string({key:"app_monzo_com.waitlist.info_form.email_label",message:"Email address"}
1),A=s.string({key:"app_monzo_com.waitlist.info_form.invalid_email_message",message:"You must enter a valid email address"}),M=s.string({key:"app_monzo_com.waitlist.info_form.submit",message:"Continue"}),O=s.string({key:"app_monzo_com.waitlist.affiliates.terms",message:"[Terms and conditions]({{ terms_url }}) and [eligibility criteria]({{ eligibility_url }}) apply. We secure your data in line with our [privacy notice]({{ privacy_notice_url }}).",variables:{terms_url:p,eligibility_url:g,privacy_notice_url:_}}),W=s.string({key:"app_monzo_com.waitlist.affiliates.terms_consent",message:"By registering your interest, you are giving us permission to contact you about our products and services developing in your country and send information about how you can help shape them."}),B=s.string({key:"app_monzo_com.waitlist.affiliates.error_generic",message:"There was an unknown error submitting your details. Try again later."}),L=s.string({key:"app_monzo_com.waitlist.affiliates.error_missing_code",message:"This link is missing its code. Please use the original link."}),R="MissingClickId"===t?L:"SubmitErr"===t?B:null;return(0,a.jsxs)("fieldset",{className:b()(h().fieldset,z().fieldsetWide),children:[(0,a.jsx)("legend",{className:h().visuallyHidden,children:j}),(0,a.jsxs)("div",{className:z().leadColumn,children:[(0,a.jsx)("h2",{className:z().title,children:y}),(0,a.jsx)(k.m,{markdown:w}),(0,a.jsx)("p",{className:z().smallPrint,children:v})]}),(0,a.jsx)("ol",{className:b()(h().formList,N().vSpacing20),children:(0,a.jsx)("li",{children:(0,a.jsx)(S.o,{label:E,"aria-required":!0,autoComplete:"email",type:"email",disabled:d,error:!!m.email&&A,...l("email")})})}),(0,a.jsx)(x.z,{as:"button",type:"submit",disabled:!u||d,className:h().submitButton,children:M}),R&&(0,a.jsx)("div",{className:h().inlineErrorContainer,children:(0,a.jsx)("p",{className:h().errorMessage,role:"alert",children:R})}),n,(0,a.jsxs)("div",{className:h().caption,children:[(0,a.jsx)(k.m,{markdown:O}),(0,a.jsx)(k.m,{markdown:W})]})]})}var A=t(79130),M=t.n(A),O=t(5632),W=t(73185),B=t.n(W);let L=M().bind(B());function R(e){let{isVisible:i}=e,t=(0,O.useRouter)(),n=(0,o.FU)(),r=(0,l.xBA)(l.i5Z.all),{pageLocale:c,regionGroup:m}=r,u=(0,s.useMemo)(()=>m.getAllLocales().filter(e=>"ESP"===e.region.alpha3),[m]),d=e=>"es"===e?n.string({key:"app_monzo_com.waitlist.affiliates.language_es",message:"Espa\xf1ol"}):n.string({key:"app_monzo_com.waitlist.affiliates.language_en",message:"English"}),f=async e=>{let i=e.target.value,a=m.getLocaleOrNullByI18nName(i);a&&(r.saveLocale(a.language.localeCode),await t.push({pathname:"/waitlist/partners",query:t.query},void 0,{locale:i}))};return(0,a.jsx)("form",{className:L(B().form,{invisible:!i}),children:(0,a.jsx)(l.V8F,{className:B().selectMenu,label:"Language","aria-details":"Confirm selected language (page will navigate after selecting a language)",selectProps:{defaultValue:c.language.i18nName,name:"i18nName",onChange:f},children:u.map(e=>{let{language:i,region:t}=e;return(0,a.jsx)("option",{value:i.i18nName,children:"".concat(t.flag," ").concat(d(i.languageCode))},i.i18nName)})})})}var D=t(36249),F=t(54005),U=t(34999);let V=t(78677).U.pick({email:!0}),X="WaitlistAffiliates",I="AffiliateWaitlist",Z=e=>{let{clickId:i,locale:t}=e,{cookies:a}=(0,l.fPX)(),{utmParams:n}=a||{},{sendEvent:o}=(0,U.U)(),[c,m]=(0,s.useState)("Editing"),u=(0,r.cI)({resolver:(0,D.r)(V),mode:"onChange",defaultValues:{email:""}}),d=e=>{m(e),o({eventName:"formSubmitErr",type:"error",eventParameters:{funnelName:X,formName:I}})};return{methods:u,currentStep:c,onSubmit:async e=>{if(!i){d("MissingClickId");return}m("Submitting"),o({eventName:"formSubmitted",type:"action",eventParameters:{funnelName:X,formName:I}}),o({eventName:"web_signup_country_waitlist_opt_in_pending",type:"click",eventParameters:{}});try{let a=Object.fromEntries(new URLSearchParams(n).entries());if(!(await (0,F.Kc)(e,i,a,t.language.localeCode)).ok){d("SubmitErr");return}m("SubmitOk"),o({eventName:"formSubmitOk",type:"action",eventParameters:{funnelName:X,formName:I}}),o({eventName:"funnelCompleted",type:"view",eventParameters:{funnelName:X}})}catch(e){d("SubmitErr")}}}},q=e=>{let{locale:i}
1=e,t=(0,o.FU)(),_=(0,n.useSearchParams)().get("irclickid"),{languageCode:w,localeCode:b}=i.language,{sendEvent:k,sendEvents:v,facebookInitialised:N}=(0,f.Z)(),x=(0,s.useRef)(!1),{methods:S,currentStep:j,onSubmit:z}=Z({clickId:_,locale:i}),P="SubmitOk"!==j;(0,s.useEffect)(()=>{k({eventName:"WebWaitlistViewed",eventParameters:{}})},[k]),(0,s.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[j]),(0,s.useEffect)(()=>{N&&!x.current&&(x.current=!0,v([{partner:d.kT.Facebook,eventName:"WebWaitlistViewed",eventParameters:{}}]))},[N,v]);let C=t.string({key:"app_monzo_com.waitlist.affiliates.page_title",message:"Join the Monzo Spain waitlist"}),T=t.string({key:"app_monzo_com.waitlist.affiliates.og_title",message:"You've been invited to the early access waitlist for Monzo in Spain"}),A=t.string({key:"app_monzo_com.waitlist.affiliates.meta_description",message:"Be one of the first to try Monzo in Spain and earn â¬25 when you first pay with your card."}),M=t.string({key:"app_monzo_com.waitlist.affiliates.success_message",message:"An email's on its way.<br>Open it up and secure<br>a spot."});return(0,a.jsxs)(g.Z,{dynamicText:e.dynamicText,experiments:e.experiments,featureGates:e.featureGates,initialAnonID:e.anonID,children:[(0,a.jsx)(u.Z,{pageTitle:"Monzo | ".concat(C),ogTitle:T,description:A,ogDescription:A,noindex:!0,twitter:"@monzo",ogimage:"/images/waitlist/social-".concat(w,".png")}),(0,a.jsxs)("main",{style:{background:"#fff"},children:[(0,a.jsx)("h1",{className:h().visuallyHidden,children:C}),(0,a.jsxs)(p.q,{header:(0,a.jsx)(R,{isVisible:P}),dialogMarkdown:M,showDialog:"SubmitOk"===j,footerComponent:(0,a.jsx)(m.P,{...(0,c.sg)(l.yZ9.PERSONAL,b)}),children:[(0,a.jsx)(y.r,{className:h().desktopRiskRating}),(0,a.jsx)(r.RV,{...S,children:(0,a.jsx)("form",{className:h().fillContentArea,onSubmit:S.handleSubmit(z),children:(0,a.jsx)(E,{locale:i,currentStep:j,riskRating:(0,a.jsx)(y.r,{className:h().mobileRiskRating})})})})]})]})]})};q.analytics={name:"waitlist-affiliates"};var J=!0,G=q},8546:function(e){e.exports={fieldsetWide:"AffiliateWaitlistForm_fieldsetWide__W85is",leadColumn:"AffiliateWaitlistForm_leadColumn__VHcY2",title:"AffiliateWaitlistForm_title__6doDO",smallPrint:"AffiliateWaitlistForm_smallPrint___mwXu"}},73185:function(e){e.exports={form:"AffiliateWaitlistLocaleBanner_form__k3xnA",selectMenu:"AffiliateWaitlistLocaleBanner_selectMenu__2mUlA",invisible:"AffiliateWaitlistLocaleBanner_invisible__KS5Bt"}}},function(e){e.O(0,[9506,3955,8402,3456,8156,2888,9774,179],function(){return e(e.s=2951)}),_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.