PageSourceSearch

https://portal.foxtons.co.uk/assets/index-0e05afcf.js

js foxtons.co.uk collected 2026-09-24 18:14:52 UTC 6,044 bytes, 1 lines download raw bytes

1import{bt as _,bu as k,bG as I,q as b,r as t,_ as y,u as L,z as R,e as F,c as z,e2 as p,bv as M,j as e,b9 as A,bx as E,B as d,S as f,aP as w,b1 as x,e5 as N,p as O}from"./index-51b326a0.js";import{A as W}from"./index-36fbb2a5.js";import{g as $}from"./commonSchema-82af4d30.js";import"./link-41c641b4.js";import"./add-base-path-323a97fc.js";import"./router-context-00d20d5a.js";const D=_({newPassword:$("newPassword","New password"),confirmPassword:k().required("Confirm password is required").oneOf([I("newPassword")],"Password does not match")}),{palette:o}=b,s={formWrapper:{width:"100%",".registrationForm":{position:"relative",width:"100%"}},foxtonLogoContainerRight:{display:{xs:"flex",md:"none",lg:"none"},alignItems:"center",marginBottom:"1.25rem",marginTop:"6rem",marginLeft:"1.5rem"},foxtonLogoRight:{marginRight:"0.743rem",width:"3.711rem",height:"3.75rem"},foxtonLogoLeft:{marginRight:"0.743rem",width:"3.711rem",height:"3.75rem"},foxtonLabelLeft:{fontSize:"8rem"},foxtonLabelRight:{fontSize:"8rem"},formContainer:{display:"flex",justifyContent:"center",alignItems:"start",flexDirection:"column",marginTop:"1.5rem"},formBox:{height:"100vh",display:"flex",flexDirection:"column",justifyContent:{xs:"flex-start",md:"center"}},formHeading:{alignItem:"start",color:o.grey.main,fontStyle:"normal",fontWeight:"bold",fontSize:{xs:"1.5rem",md:"2rem",lg:"2rem"},lineHeight:"2.5rem",marginBottom:"1.25rem"},formSubheading:{alignItem:"start",color:o.grey.main,fontStyle:"normal",fontWeight:"400",fontSize:{xs:"none",md:"1rem",lg:"1rem"},marginBottom:"0.5rem"},heading:{fontSize:"1.5rem",fontWeight:"700",mb:"0.5rem",color:o.primary.main},fieldLabel:{mt:"1.5rem",mb:{sm:"0.75rem",xs:"0.5rem"},color:o.grey.main,fontSize:"1rem",fontWeight:400},formTextField:{backgroundColor:o.grey[50],borderRadius:"0.25rem",marginBottom:"1.25rem",width:"100%",fieldset:{border:`0.063rem solid ${o.primary[200]}`},"&:hover .Mui-error fieldset":{borderColor:o.brightRed.main},"& .MuiOutlinedInput-root":{"&:hover fieldset":{border:`0.063rem solid ${o.primary[200]}`},"&.Mui-focused fieldset":{borderColor:o.primary[200]},"&.Mui-error fieldset":{border:`0.063rem solid ${o.brightRed.main}`}},".MuiFormHelperText-root":{backgroundColor:{xs:o.primary[400],md:o.lightishAqua.main},margin:"0",paddingTop:"0.625rem",fontWeight:"700",fontSize:"0.875rem",lineHeight:"0.875rem"},svg:{fill:`${o.gradient.main}`},".MuiOutlinedInput-input":{backgroundColor:o.grey[50],"::-ms-reveal":{display:"none"}}},passwordCheckContainer:{mt:"0.5rem",width:"100%","> div":{bottom:"1rem"}},actionBtnContainer:{width:"100%",display:{sm:"flex",xs:"block"},justifyContent:"space-between"},actionBtn:{mt:"2rem",textTransform:"none",width:"100%"},backBtn:{mt:"2rem",textTransform:"none",pl:0,ml:"1.5rem",color:o.grey[600],fontWeight:700,fontSize:"1.25rem",":hover":{bgcolor:"transparent"},svg:{fill:o.grey[600],width:"1.88rem"}},infoIcon:{svg:{fill:b.palette.secondary.main}}},H="Your password reset has failed",V=t.lazy(()=>y(()=>import("./index-51b326a0.js").then(m=>m.jr),["assets/index-51b326a0.js","assets/index-8e4a60be.css"])),q=t.lazy(()=>y(()=>import("./index-17375d57.js"),["assets/index-17375d57.js","assets/index-51b326a0.js","assets/index-8e4a60be.css","assets/RadioButtonUncheckedRounded-e73efe6e.js"]));function X(){const m=L(),{passwordToken:P,verficationToken:S}=R(),n=F(),[C,u]=t.useState(!1),[v,g]=t.useState(!1),[h,T]=t.useState(!1),{error:l,isLoading:i,response:c}=z(a=>a.passwordReducer);t.useEffect(()=>{(c.status===200||c.status===204)&&!i&&!l&&(T(!0),n(p())),l&&!i&&(g(!0),n(p()))},[c,i,l,n]);const r=M({initialValues:{newPassword:"",confirmPassword:""},validationSchema:D,onSubmit:a=>{n(N({newPassword:a.newPassword,passwordToken:P,verificationToken:S}))}}),j=()=>r.touched.newPassword&&r.errors.newPassword?JSON.parse(r.errors.newPassword).require:"",B=()=>e.jsxs(d,{sx:s.formContainer,children:[e.jsx(f,{sx:s.formHeading,children:"Password Updated"}),e.jsx(f,{sx:s.formSubheading,children:"The password has been reset you can sign in again."}),e.jsx(d,{sx:s.actionBtnContainer,children:e.jsx(x,{color:"primary",variant:"primary",sx:s.actionBtn,onClick:()=>m(`${O.login}`),children:"Back to sign in"})})]});return e.jsxs(W,{backgroundImageSrc:"url('/images/bg_login.webp')",formTitle:h?null:"Reset Password",children:[e.jsx(V,{title:"My Foxtons: Forgot Password",description:"My Foxtons: Forgot Password"}),e.jsx(A,{open:v,severity:"warning",anchorOrigin:{vertical:"top",horizontal:"right"}
1,iconMapping:{warning:e.jsx(E,{sx:s.infoIcon})},onClose:()=>{g(!1)},children:e.jsx(e.Fragment,{children:H})}),e.jsx(d,{sx:s.formWrapper,children:e.jsx("form",{onSubmit:r.handleSubmit,noValidate:!0,className:"formStyle",children:h?B():e.jsxs(e.Fragment,{children:[e.jsx(f,{sx:s.formSubheading,children:"Your new password must be between 8 and 20 characters (and ideally include numbers and symbols for greater security)."}),e.jsx(w,{fullWidth:!0,name:"newPassword",type:"password",fieldType:"password",value:r.values.newPassword,inputProps:{"aria-label":"new password",maxLength:20},placeholder:"New Password *",onChange:r.handleChange,endAdornmentOption:!0,sx:s.formTextField,onBlur:a=>{u(!1),r.handleBlur(a)},onFocus:()=>u(!0),error:r.touched.newPassword&&!!r.errors.newPassword,helperText:j(),autoComplete:"off"}),e.jsx(q,{fieldValue:r.values.newPassword,isPasswordFocus:C,errorValue:r.errors.newPassword,containerStyles:s.passwordCheckContainer}),e.jsx(w,{onBlur:r.handleBlur,inputProps:{"aria-label":"confirm password",maxLength:20},type:"password",name:"confirmPassword",fieldType:"password",value:r.values.confirmPassword,placeholder:"Confirm New Password *",onChange:r.handleChange,error:r.touched.confirmPassword&&!!r.errors.confirmPassword,helperText:r.touched.confirmPassword&&r.errors.confirmPassword,endAdornmentOption:!0,sx:s.formTextField,autoComplete:"off"}),e.jsx(d,{sx:s.actionBtnContainer,children:e.jsx(x,{color:"primary",variant:"primary",type:"submit",disabled:i,sx:s.actionBtn,"aria-label":"submit",children:"Continue"})})]})})})]})}export{X as default};

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.