1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5214],{66642:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/abonnement-utilisateur/inscription/modifier-courriel",function(){return n(9061)}])},15618:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var a=n(24246),u=n(28228),o=n(27378),r=n(88039),c=n(86677),s=n(43647),i=n(15224),F=n(93722),l=n(24241),d=n(52419),_=n(94385),x=n(97787),f=n(18461),m=n(30504),h=n(40209),g=n(85301),p=n(90093),D=n(55072);function b(e){let{successRedirectUrl:t,backRedirectUrl:n,forgotPasswordUrl:g,submitButtonText:b}=e,{platform:C,spacing:E}=(0,u.useTheme)(),{updateAccount:j}=(0,i.a)(),v=(0,c.useRouter)(),[A,P]=(0,o.useState)(null),[k,y]=(0,o.useState)(""),[S,z]=(0,o.useState)(""),{register:$,handleSubmit:T,formState:{errors:H,dirtyFields:R},watch:N}=(0,r.cI)({mode:"onBlur",resolver:(0,s.X)(f.H)}),{email:I,password:B}=N();(0,o.useEffect)(()=>{y("")},[B]),(0,o.useEffect)(()=>{z("")},[I]);let L=T(async e=>{let{email:n,password:a}=e;y(""),z("");try{await j({email:n,oldPassword:a}),(0,l.cM)(new d.P7(_._t.Email)),v.replace(t)}catch(e){switch(e.code){case 967:default:y((0,F.o)("account_change_email","error_invalid_password"));break;case 10:z((0,F.o)("account_change_email","error_email_conflict"))}P({level:"warning",title:(0,F.o)("account_change_email","form_error")});return}});return(0,a.jsxs)(a.Fragment,{children:[A&&(0,a.jsx)(m.SH,{alert:A}),(0,a.jsxs)(p.ZP,{onSubmit:L,children:[(0,a.jsx)(p.ZP.Title,{children:(0,F.o)("account_change_email","title")}),(0,a.jsxs)(p.ZP.Content,{children:[(0,a.jsx)(Z,{htmlFor:"email",text:(0,F.o)("account_change_email","new_email"),$_css:E[16],children:(0,a.jsx)(p.ZP.TextInput,{...$("email"),isDirty:R.email,error:H.email||S,maxLength:50,validationMessage:S||(0,F.o)("account_change_email","validation_message_email"),helperText:(0,x.s1)()?(0,F.o)("account_change_email","email_will_be_sent"):void 0})}),(0,a.jsx)(D.ZP.Label,{htmlFor:"password",text:(0,F.o)("account_change_email","actual_password"),children:(0,a.jsx)(p.ZP.Password,{...$("password"),isDirty:R.password,error:H.password||k,validationMessage:k||(0,F.o)("account_change_email","validation_message_password")})}),(0,a.jsx)(w,{type:"button",color:(0,x.Vf)()?"secondaryLighter":"white",onClick:()=>v.push(g),title:"".concat((0,F.o)("account_forgot_password","btn_label")," (").concat((0,F.o)("general","new_window"),")"),screenReaderMessage:"".concat((0,F.o)("account_forgot_password","btn_label")," (").concat((0,F.o)("general","new_window"),")"),$_css2:"".concat(E[8]," 0"),children:(0,F.o)("account_forgot_password","btn_label")})]}),(0,a.jsxs)(p.ZP.Buttons,{children:[(0,a.jsx)(h.Z,{type:"button",backgroundColor:"gray4",onClick:()=>{v.replace(n)},children:(0,F.o)("general","back_return")}),(0,a.jsx)(h.Z,{type:"submit",backgroundColor:"gem"===C?"brand":"brandDarker",children:b})]})]})]})}var w=(0,u.default)(g.Z).withConfig({componentId:"sc-62ba3faa-0"})(e=>({padding:e.$_css2})),Z=(0,u.default)(D.ZP.Label).withConfig({componentId:"sc-62ba3faa-1"})(e=>({marginBottom:e.$_css}))},69755:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(27378),u=n(86677),o=n(15224);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{auth:n}=(0,o.a)(),r=(0,u.useRouter)(),[c,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>{n&&(t||!n.accessToken)&&!c&&(s(!0),r.replace(e))},[t,e,n,c,r])}},18461:function(e,t,n){"use strict";n.d(t,{H:function(){return o},c:function(){return r}});var a=n(55484);function u(e,t){if("string"!=typeof t||""!==t)return e}let o=a.Ry().shape({email:a.Z_().required().transform(u).matches(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-||_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+([a-z]+|\d|-|\.{0,1}|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])?([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/),password:a.Z_().required().min(8).matches(/^[^\s].+[^\s]$/)}),r=a.Ry().shape({postalCode:a.Z_().required().transform(u).matches(/^[A-Z]\d[A-Z][ -]?\d[A-Z]\d$/i)})},9061:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return _},default:function(){return x}});var a=n(24246),u=n(66899),o=n(17668),r=n(93722),c=n(15618);function s(){return(0,a.jsx)(c.Z,{successRedirectUrl:o.HQ.subscription.validation.emailSent,backRedirectUrl:o.HQ.subscription.validation.base,forgotPasswordUrl:o.HQ.subscription.forgotPassword,submitButtonText:(0,r.o)("general","confirm")})}var i=n(60029),F=n(69755),l=n(65861),d=n(59502),_=!0;function x(){return(0,F.Z)(o.HQ.subscription.login),(0,a.jsxs)(d.Z,{pageId:l.u.SubscriptionAccountChangeEmail,children:[(0,a.jsx)(u.Z,{title:"".concat((0,r.o)("account_change_email","title")," | ").concat((0,r.o)("entitlements_subscription","head_title"))}),(0,a.jsx)(i.Z,{children:(0,a.jsx)(s,{})})]})}}},function(e){e.O(0,[3085,9731,346,546,2888,9774,179],function(){return e(e.s=66642)}),_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.