PageSourceSearch

https://my-account.hdcymru.co.uk/_next/static/chunks/pages/forgott…/register-your-email-4ac4f60f345b15fd.js

js hdcymru.co.uk collected 2026-10-02 16:40:33 UTC 5,817 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3f29deee-a0ea-4c65-9508-d26f815ae727",e._sentryDebugIdIdentifier="sentry-dbid-3f29deee-a0ea-4c65-9508-d26f815ae727")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3798],{39564:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var i=t(6029),a=t(81278),r=t(22467),o=t(35516),s=t(68433),d=t(50742),l=t(90120);let u=({children:e})=>{let{asPath:n}=(0,a.useRouter)(),{blackholeAccountUsers:t,accountUserEmailAddress:u}=(0,o.hy)(),{FORGOTTEN_EMAIL_YOUR_ACCOUNT:c,FORGOTTEN_EMAIL_ABOUT_YOU:f,FORGOTTEN_EMAIL_SECURITY:m,FORGOTTEN_EMAIL_YOUR_EMAIL_ADDRESS:h,FORGOTTEN_EMAIL_SUCCESS:p,FORGOTTEN_EMAIL_REGISTER_YOUR_EMAIL:v}=l.b,g=(0,d.VV)(t),y=[c,f,m,...u?[h]:[v],p],E=g?y:y.filter(e=>e.name!==f.name);if(!E.length)return null;let w=(0,d.UJ)({journeyKey:o.on.FORGOTTEN_EMAIL,shouldDisplayAboutYouStep:g,paths:E}),b=(0,d.Is)(w,n),k=n===v.path?{title:"Register your email","aria-label":"Step - Register your email"}:{title:"Your email","aria-label":"Step - Your email"},_=(0,d.m$)(k,g,b);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.default,{title:E[b].title}),(0,i.jsx)(r.A,{heading:"Forgot your email",totalSteps:w.length,activeStep:b+1,stepConfigs:_,children:(0,i.jsx)("div",{id:"maincontent",children:e})})]})}},49736:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(6029),a=t(39564),r=t(72170),o=t(35516);let s=()=>(0,i.jsx)(r.A,{journeyKey:o.on.FORGOTTEN_EMAIL});s.getLayout=e=>(0,i.jsx)(o.Nb,{children:(0,i.jsx)(a.A,{children:e})});let d=s},53462:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgotten-email/register-your-email",function(){return t(49736)}])},72170:(e,n,t)=>{"use strict";t.d(n,{A:()=>g});var i=t(6029),a=t(55729),r=t(81278),o=t(84680),s=t(45329),d=t(35516),l=t(84475),u=t(86363),c=t.n(u),f=t(64192),m=t(90120),h=t(66569),p=t(23006),v=t(50742);let g=({journeyKey:e})=>{let{push:n}=(0,r.useRouter)(),t=(({journeyKey:e})=>{let{push:n}=(0,r.useRouter)(),{scopedToken:t,setUserRegistrationSuccessful:i}=(0,d.hy)();return(0,l.hQ)({mutation:e=>c(),validateFn:e=>f.t6.validate(e),onSuccess:()=>{i(!0),n(m.b[`${e}_SUCCESS`].path)},requestHeaders:{Authorization:t}})})({journeyKey:e}),{isError:u,error:g}=t,{accountNumber:y,postcode:E,selectedAccountUserName:w,scopedToken:b,dateOfBirth:k,mobileNumber:_,blackholeAccountUsers:N}=(0,d.hy)(),{registerForm:S}=v.bI[e],A=m.b[`${e}_YOUR_ACCOUNT`].path,C=m.b[`${e}_ABOUT_YOU`].path,O=JSON.stringify(g)?.includes("Email address is already in use"),T=(0,a.useMemo)(()=>!!g&&h.ox.INVALID_PASSWORD===g?.response?.errors?.[0]?.extensions?.errorCode,[g]);return(0,a.useEffect)(()=>{b||n(A)},[n,b,A]),(0,i.jsx)(s.MG,{children:(0,i.jsxs)(o.BJ,{gap:"lg",direction:"vertical",children:[S.alertMessage&&(0,i.jsx)(s.Fc,{severity:"warning",children:S.alertMessage}),(0,i.jsx)(s.Hv,{title:"Your details",items:[{title:"Account number",content:y,showChangeButton:!0,onChangeButtonClick:()=>n(m.b.REGISTER_FOR_ONLINE_ACCOUNT_YOUR_ACCOUNT.path)},{title:"Postcode",content:E,showChangeButton:!0,onChangeButtonClick:()=>n(A)},{title:"Your name",accessibleButtonTitle:"Change name",content:`${w.givenName} ${w.familyName}`,showChangeButton:!0,onChangeButtonClick:()=>n(1===N.length?A:C)}]}),(0,i.jsx)(s.s4,{onSubmit:e=>{let{email:n,newPassword:i}=e;t.mutate({input:{email:n,password:i??"",...{...k.day&&k.month&&k.year&&{dateOfBirth:(0,p.sQ)(new Date(`${k.year}-${k.month}-${k.day}`))},..._&&{mobileNumber:_}}}})},error:u,header:S.headerText,isEmailError:O,isPasswordError:T})]})})}},86363:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateEmailAndPassword"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateEmailAndPasswordInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateEmailAndPassword"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:141}};n.loc.source={body:"mutation updateEmailAndPassword ($input: UpdateEmailAndPasswordInput!) {\n    updateEmailAndPassword(input: $input) {\n        success\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,t){if("FragmentSpread"===n.kind)t.add(n.name.value);
1else if("VariableDefinition"===n.kind){var i=n.type;"NamedType"===i.kind&&t.add(i.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,t)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,t)}),n.definitions&&n.definitions.forEach(function(n){e(n,t)})}(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.updateEmailAndPassword=function(e,n){var a={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=t[n]||new Set,o=new Set,s=new Set;for(r.forEach(function(e){s.add(e)});s.size>0;){var d=s;s=new Set,d.forEach(function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach(function(e){s.add(e)}))})}return o.forEach(function(n){var t=i(e,n);t&&a.definitions.push(t)}),a}(n,"updateEmailAndPassword")}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=53462)),_N_E=e.O()}]);
2//# sourceMappingURL=register-your-email-4ac4f60f345b15fd.js.map

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.