PageSourceSearch

https://realty.com.au/_next/static/chunks/pages/forgot-password-c40b96db4cd7793e.js

js realty.com.au collected 2026-10-01 12:32:20 UTC 10,491 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9742],{60142:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ConsumerForgotPasswordMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"consumerForgotPassword"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}}],directives:[]}]}}],loc:{start:0,end:103}};t.loc.source={body:"mutation ConsumerForgotPasswordMutation($email: String!) {\n    consumerForgotPassword(email: $email)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function findOperation(e,t){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==t)return a}}t.definitions.forEach(function(e){if(e.name){var t=new Set;(function collectFragmentReferences(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){collectFragmentReferences(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){collectFragmentReferences(e,t)}),e.definitions&&e.definitions.forEach(function(e){collectFragmentReferences(e,t)})})(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.ConsumerForgotPasswordMutation=function(e,t){var a={kind:e.kind,definitions:[findOperation(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=n[t]||new Set,i=new Set,o=new Set;for(r.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){i.has(e)||(i.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return i.forEach(function(t){var n=findOperation(e,t);n&&a.definitions.push(n)}),a}(t,"ConsumerForgotPasswordMutation")},35324:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});
1var a,r,i,o,l=n(19517);n(89858);var s=n(51024);n(53294);var c=n(56697);n(29809);var d=n(97538),u=n(17674),f=n(67294),m=n(41664),p=n.n(m),h=n(50319),v=n(2962),g=n(87547);n(10803);var x=n(85995),y=n(86010),b=n(30653),w="";function loadCaptchaEngine(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"white",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"black",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r="",i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";"upper"===a?i="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789":"lower"===a?i="abcdefghijklmnopqrstuvwxyz0123456789":"numbers"===a?i="0123456789":"special_char"===a&&(i="~`!@#$%^&*()_+-=[]{}|:'<>,.?/");for(var o=0,l=i.length;o<e;++o)r+=i.charAt(Math.floor(Math.random()*l));var s=r;w=s;var c=document.getElementById("canv"),d=c.getContext("2d"),u=s.split("\n");d.canvas.width=25*e,d.canvas.height=30*u.length,d.fillStyle=t,d.fillRect(0,0,c.width,c.height),d.textBaseline="middle",d.font="italic 20px Arial",d.fillStyle=n;for(var f=0,m=0;m<e;m++){var p=20*(f+=1);d.fillText(r[m],p,Math.round(3*Math.random()+12))}document.getElementById("reload_href").onclick=function(){loadCaptchaEngine(e,t,n,a)}}var validateCaptcha=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e===w||(t&&loadCaptchaEngine(4,"","",""),!1)},LoadCanvasTemplateNoReload=function(){return(0,b.ZP)('<div><canvas id="canv"></canvas><div><a id="reload_href"  style="cursor: pointer; color: blue"></a></div></div>')},j=n(85893),CustomCaptcha_CustomCaptcha=function(e){var t=e.onValidCaptcha,n=e.captchaLength;(0,f.useEffect)(function(){loadCaptchaEngine(n)},[]);var a=(0,f.useState)(""),r=a[0],i=a[1];return(0,j.jsxs)("div",{className:"".concat((0,y.Z)({"mb-[1.35rem]":!r})," mb-0 w-full space-y-3"),children:[(0,j.jsx)("div",{className:" flex justify-center",children:(0,j.jsx)("div",{className:"rounded border bg-primary-500 p-1",children:(0,j.jsx)(LoadCanvasTemplateNoReload,{})})}),(0,j.jsxs)("div",{children:[(0,j.jsx)(s.default,{maxLength:n,size:"large",className:"w-full rounded  border p-2 text-center text-sm",placeholder:"Type the captcha here",onChange:function(e){var a,r,o,l=validateCaptcha(null==e?void 0:null===(a=e.target)||void 0===a?void 0:a.value,!1);i(l||(null==e?void 0:null===(r=e.target)||void 0===r?void 0:null===(o=r.value)||void 0===o?void 0:o.length)!==n?null:"error"),t(l)},status:r}),r?(0,j.jsx)("span",{className:"text-sm text-[#ff4d4f] ",children:" Invalid Captcha "}):null]})]})},S=n(60142),k=n.n(S);(a=i||(i={})).EMAIL_LINK_VERIFICATION_SENT="We already sent a verification link to your email",a.EMAIL_DOES_NOT_EXIST="not exist",(r=o||(o={})).TITLE="Forgot Password | Realty.com.au",r.META_DESCRIPTION="Reset your password in realty",r.URL="https://www.realty.com.au/forgot-password";var E=(0,l.Z)(function(){var e=(0,f.useState)(!1),t=e[0],n=e[1],a=d.Z.useForm(),r=(0,u.Z)(a,1)[0],l=r.resetFields,m=(0,h.D)(k()),y=(0,u.Z)(m,1)[0],b=(0,f.useState)(null),w=b[0],S=b[1],handleReset=function(){l(),S(!1),n(!1)};return(0,j.jsxs)(x.Z,{children:[(0,j.jsx)(v.PB,{title:o.TITLE,description:o.META_DESCRIPTION,canonical:o.URL,openGraph:{type:"website",title:o.TITLE,description:o.META_DESCRIPTION,locale:"en_US",url:o.URL}}),(0,j.jsx)("div",{className:"login-form-holder ConsumerForgotPasswordPage flex h-screen items-center justify-center ",children:(0,j.jsx)("div",{className:"relative w-full max-w-lg rounded border sm:px-8 sm:shadow-lg md:my-4 lg:my-0",children:(0,j.jsxs)("main",{className:" px-4 pb-6 pt-12",children:[(0,j.jsx)("h2",{className:"mb-8 text-center text-xl	 text-black",children:"Forgot your password ?"}),(0,j.jsxs)(d.Z,{onFinish:function(e){n(!0),y({variables:{email:e.email}}).then(function(){c.Z.success({title:"We already sent you a verification link. Please check your email.",onOk:function(){return handleReset()}})}).catch(function(e){var t,n,a=null==e?void 0:null===(t=e.toString())||void 0===t?void 0:t.includes(i.EMAIL_LINK_VERIFICATION_SENT),r=null==e?void 0:null===(n=e.toString())||void 0===n?void 0:n.includes(i.EMAIL_DOES_NOT_EXIST);a?c.Z.success({title:"We already sent you a verification link. Please check your email.",onOk:function(){return handleReset()}}):r?c.Z.error({title:"It seems that your email is not yet registered",content:(0,j.jsxs)("p",{children:["Please contact"," ",(0,j.jsx)("a",{className:"text-primary-500",rel:"noreferrer",href:"mailto:[email protected]",target:"_blank",children:"[email protected]."})]}),onOk:function(){return handleReset()}}):c.Z.error({title:"It seems that you have internet connection problem",content:(0,j.jsx)("p",{children:"Please contact your internet service provider."}),onOk:function(){return handleReset()}})}).finally(function(){return handleReset()})},className:"consumer-forgot-password-form",form:r,children:[(0,j.jsx)(d.Z.Item,{name:"email",rules:[{required:!0,message:"Your email is required"},{type:"email",message:"Please enter a valid email"}],children:(0,j.jsx)(s.default,{size:"large",prefix:(0,j.jsx)(g.Z,{style:{color:"rgba(0,0,0,.25)"}}),placeholder:"Email"})}),w?null:(0,j.jsx)("div",{className:"mb-3 flex justify-center",children:(0,j.jsx)(CustomCaptcha_CustomCaptcha,{captchaLength:6,onValidCaptcha:function(e){return S(e)}})}),(0,j.jsx)("div",{children:(0,j.jsx)("button",{className:"mb-4 w-full rounded border bg-primary-500 p-2 text-sm text-white",type:"submit",disabled:!w||t,children:t?"Resetting...":"Reset My Password"})}),(0,j.jsx)("div",{className:"flex justify-center",children:(0,j.jsx)("span",{children:(0,j.jsx)(p(),{href:"/login",as:"/login",style:{color:"#3b82f6"},children:"I remembered my password"})})})]})]})})})]})})},19517:function(e,t,n){"use strict";var a=n(50029),r=n(59499),i=n(4730),o=n(87794),l=n.n(o);n(67294);var s=n(53768),c=n(39424),d=n(50455),u=n(63025),f=n(458),m=n(85893),p=["apollo","apolloState"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}t.Z=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.ssr,h=void 0===o||o,WithApollo=function(t){var n=t.apollo,a=t.apolloState,r=(0,i.Z)(t,p),o=n||(0,f.ZP)(a);return(0,m.jsx)(s.e,{client:o,children:(0,m.jsx)(e,_objectSpread({},r))})};return(h||e.getInitialProps)&&(WithApollo.getInitialProps=(t=(0,a.Z)(l().mark(function _callee(t){var a,r,i,o,s,p;return l().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(a=t.AppTree,r=t.req,i=(0,f.ZP)(),t.apolloClient=i,t.req=r,o={},!e.getInitialProps){l.next=9;break}return l.next=8,e.getInitialProps(t);case 8:o=l.sent;case 9:if(u.jU){l.next=30;break}if(!(t.res&&t.res.finished)){l.next=12;break}return l.abrupt("return",o);case 12:if(!h){l.next=30;break}return l.prev=13,l.next=16,Promise.all([n.e(9774),n.e(2244)]).then(n.bind(n,52244));case 16:return s=l.sent.getDataFromTree,console.info("Starting SSR getDataFromTree "),l.next=21,s((0,m.jsx)(a,{pageProps:_objectSpread(_objectSpread({},o),{},{apollo:i})}));case 21:console.info("Success SSR getDataFromTree "),l.next=30;break;case 24:l.prev=24,l.t0=l.catch(13),console.warn("SSR error"),console.log(l.t0),console.warn(JSON.stringify(l.t0,null,2)),c.Tb(l.t0);case 30:return(p=_objectSpread({},o))[d.jn]=i.cache.extract(),l.abrupt("return",p);case 33:case"end":return l.stop()}},_callee,null,[[13,24]])})),function(e){return t.apply(this,arguments)})),WithApollo}},52036:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return n(35324)}])},50247:function(){}},function(e){e.O(0,[8199,1664,348,9819,1033,2959,4500,2177,6334,9755,6403,7412,3370,9328,6821,4e3,7496,6025,1899,4976,5984,2289,1645,536,6772,1029,5995,9774,2888,179],function(){return e(e.s=52036)}),_N_E=e.O()}]);
2//# sourceMappingURL=forgot-password-c40b96db4cd7793e.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.