PageSourceSearch

https://www.healthdirect.gov.au/account/_next/static/chunks/pages/verify-email-code-8b918248f7461101.js

js healthdirect.gov.au collected 2026-09-24 08:26:22 UTC 5,604 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6289],{2894:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verify-email-code",function(){return c(4085)}])},4085:function(a,b,c){"use strict";c.r(b),c.d(b,{"default":function(){return z}});var d=c(4051),e=c.n(d),f=c(5893),g=c(8609),h=c(8527),i=c(9762),j=c(4322),k=c(5193),l=c(7294),m=c(7536),n=c(1163),o=c(3582),p=c(8821),q=c(6790),r=c(8164),s=c(5320),t=c(5509),u=c(2377);function v(a,b,c,d,e,f,g){try{var h=a[f](g),i=h.value}catch(j){c(j);return}h.done?b(i):Promise.resolve(i).then(d,e)}function w(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){var f=a.apply(b,c);function g(a){v(f,d,e,g,h,"next",a)}function h(a){v(f,d,e,g,h,"throw",a)}g(void 0)})}}function x(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function y(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{},d=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){x(a,b,c[b])})}return a}function z(){var a,b,c=o.Z.getInstance(),d=c.getEmail()||"",v=c.getSessionToken()||"",x=(0,g.pm)(),z=(0,m.cI)().handleSubmit,A=(0,n.useRouter)(),B=(0,l.useContext)(q.I),C=B.setAuth,D=B.setAppData,E=B.appData,F=(0,l.useState)(),G=F[0],H=F[1],I=(0,l.useState)(),J=I[0],K=I[1],L=(0,l.useState)(!1),M=L[0],N=L[1],O=(0,l.useState)(),P=O[0],Q=O[1],R=(a=w(e().mark(function a(){var b,f,g,h,i,j,k,l,m,n,o,q,r,u,w;return e().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(Q(!1),!J||J.length<6?H("Please enter 6 digit confirmation code."):H(""),!(J&&6===J.length)){a.next=29;break}return N(!0),a.next=7,(0,p.CN)(d,J,v);case 7:if(g=null,!(f=a.sent).success){a.next=26;break}if(i=(h=null==f?void 0:f.data.attributes).authenticationResult,j=h.challengeName,k=h.session,"CUSTOM_CHALLENGE"!==j){a.next=15;break}g=s.V.PinIncorrectErrorMessage,H(s.V.PinIncorrectErrorMessage),Q(!0),c.setSessionToken(k),N(!1),a.next=24;break;case 15:return l=i.accessToken,m=i.refreshToken,n=i.expiresIn,o=i.isFirstLogin,c.setAccessToken(l),c.setRefreshToken(m),C({accessToken:l,refreshToken:m,expiresIn:n}),a.next=21,(0,p.PR)();case 21:(q=a.sent).success&&(u=y({},null==q?void 0:null===(r=q.data)|| void 0===r?void 0:r.attributes),D(y({},E,{user:u}))),o?A.push("".concat(t.Z.WUA.SignUp.AddMobile)):A.push("".concat(t.Z.WUA.Root.Dashboard));case 24:a.next=27;break;case 26:g=(w=f.errors[0]).title,400==f.status&&"NotAuthorizedException"==w.code?(x({title:s.V.ExpiredSession,status:"error",duration:5e3,position:"top",isClosable:!0}),A.push("".concat(t.Z.WUA.Root.SignIn))):"ExpiredCodeException"===w.code?(Q(!0),H(s.V.PinExpiredErrorMessage)):400==f.status&&"Too many failed attempts"==w.title?(x({title:s.V.LimitExceededExceptionMessage,status:"error",duration:5e3,position:"top",isClosable:!0}),A.push("".concat(t.Z.WUA.Root.SignIn))):H(w.title),N(!1);case 27:null===(b=window.dataLayer)|| void 0===b||b.push({event:"UA_Email_Confirm_Event",success:!g,errorMessage:g}),N(!1);case 29:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)}),S=(b=w(e().mark(function a(){var b,f,g;return e().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,p.Ts)(d);case 2:(null==(b=a.sent)?void 0:b.success)?(g=null==b?void 0:null===(f=b.data)|| void 0===f?void 0:f.attributes.session,c.setSessionToken(g),x({title:s.V.SignInCodeNewSent,status:"success",position:"top",duration:5e3,isClosable:!0})):400==b.status&&"NotAuthorizedException"==b.code?(x({title:s.V.ExpiredSession,status:"error",position:"top",duration:5e3,isClosable:!0}),A.push("".concat(t.Z.WUA.Root.SignIn))):400==b.status&&"LimitExceededException"==b.code?(x({title:s.V.LimitExceededExceptionMessage,status:"error",position:"top",duration:5e3,isClosable:!0}),A.push("".concat(t.Z.WUA.Root.SignIn))):x({title:null==b?void 0:b.message,status:"error",position:"top",duration:5e3,isClosable:!0});case 4:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)});return(0,f.jsx)(h.xu,{children:(0,f.jsx)(h.xu,{maxWidth:"1030px",m:"0 auto",py:8,px:{mobile:"base",tablet:"0"},children:(0,f.jsxs)(h.xu,{width:{mobile:"full",tablet:"500px"},m:"0 auto",children:[(0,f.jsx)(h.X6,{as:"h1",variant:"h1",children:"Confirm email"}),(0,f.jsx)(r.WV,{children:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(h.xv,{children:["We've sent a confirmation code to: ",(0,f.jsx)("strong",{children:c.getEmail()})]}),(0,f.jsx)(h.xv,{children:"Keep this page open while getting your co
1de"}),(0,f.jsxs)("form",{onSubmit:z(R),children:[(0,f.jsxs)(i.NI,{id:"email",isInvalid:!!G,mb:"base","data-test-id":"txt-mfacode",children:[(0,f.jsx)(i.lX,{children:"Enter the 6 digit code"}),(0,f.jsxs)(j.ET,{isInvalid:!!G,autoFocus:!0,value:J,onChange:function(a){return K(a)},children:[(0,f.jsx)(j.xj,{}),(0,f.jsx)(j.xj,{}),(0,f.jsx)(j.xj,{}),(0,f.jsx)(j.xj,{}),(0,f.jsx)(j.xj,{}),(0,f.jsx)(j.xj,{})]}),(0,f.jsxs)(i.J1,{"data-test-id":"lbl-err-mfacode",children:[(0,f.jsx)(r.Tw,{className:"maya-icon_circle-cross",position:"relative",top:"2px",mr:"2"}),G&&(0,f.jsx)(f.Fragment,{children:G}),P?(0,f.jsx)(k.zx,{variant:"link",onClick:S,children:"get a new code"}):""]})]}),(0,f.jsx)(k.zx,{type:"submit",isLoading:M,loadingText:"Verifying code...","data-test-id":"btn-continue",children:"Continue"})]})]})}),(0,f.jsx)(u.IP,{regenerateCodeHandler:S})]})})})}}},function(a){a.O(0,[3714,8966,8806,1226,2739,9774,2888,179],function(){return a(a.s=2894)}),_N_E=a.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.